Changeset 1040 for trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/tasktree/filter/EventTargetFilter.java
- Timestamp:
- 01/16/13 17:51:51 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/tasktree/filter/EventTargetFilter.java
r1030 r1040 1 // Copyright 2012 Georg-August-Universität Göttingen, Germany 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 1 15 package de.ugoe.cs.autoquest.usability.tasktree.filter; 2 16 … … 11 25 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode; 12 26 27 /** 28 * <p> 29 * TODO comment 30 * </p> 31 * 32 * @author Alexander Deicke 33 */ 13 34 public enum EventTargetFilter implements TaskTreeNodeFilter<IEventTarget> { 14 35 15 36 TEXT_FIELD(ITextField.class), 16 37 17 38 TEXT_AREA(ITextArea.class); 18 39 19 40 private Class<? extends IEventTarget> eventTargetClazz; 20 41 21 42 private EventTargetFilter(Class<? extends IEventTarget> eventTargetClazz) { 22 43 this.eventTargetClazz = eventTargetClazz; … … 37 58 return Predicates.and(instanceOfIEventTaskPredicate, nodeHoldsInstanceOfFilterArgument); 38 59 } 39 60 40 61 private Function<ITaskTreeNode, IEventTarget> nodeExtractionFunction() { 41 62 return new Function<ITaskTreeNode, IEventTarget>() { 42 63 43 64 @Override 44 65 public IEventTarget apply(ITaskTreeNode treeNode) { … … 47 68 }; 48 69 } 49 70 50 71 }
Note: See TracChangeset
for help on using the changeset viewer.