Changeset 699 for trunk/quest-core-usability/src/main/java
- Timestamp:
- 08/29/12 16:12:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-usability/src/main/java/de/ugoe/cs/quest/usability/TextInputStatisticsRule.java
r655 r699 7 7 import java.util.Map; 8 8 9 import de.ugoe.cs.quest.eventcore.gui.TextInput; 9 10 import de.ugoe.cs.quest.eventcore.guimodel.ITextArea; 10 11 import de.ugoe.cs.quest.eventcore.guimodel.ITextField; 12 import de.ugoe.cs.quest.tasktrees.treeifc.IEventTask; 11 13 import de.ugoe.cs.quest.tasktrees.treeifc.ITaskTree; 12 14 import de.ugoe.cs.quest.tasktrees.treeifc.ITaskTreeNode; 13 import de.ugoe.cs.quest.tasktrees.treeifc.ITextInputEventTask;14 15 15 16 /** … … 216 217 */ 217 218 private void calculateStatistics(ITaskTreeNode node, TextInputStatistics statistics) { 218 if (node instanceof ITextInputEventTask) { 219 calculateStatistics((ITextInputEventTask) node, statistics); 219 if ((node instanceof IEventTask) && 220 (((IEventTask) node).getEventType() instanceof TextInput)) 221 { 222 calculateStatistics((IEventTask) node, statistics); 220 223 } 221 224 else { … … 237 240 * @param statistics 238 241 */ 239 private void calculateStatistics(ITextInputEventTask node, TextInputStatistics statistics) { 240 String[] fragments = determineTextFragments(node.getEnteredText()); 242 private void calculateStatistics(IEventTask node, TextInputStatistics statistics) { 243 String[] fragments = 244 determineTextFragments(((TextInput) node.getEventType()).getEnteredText()); 241 245 242 246 if (node.getEventTarget() instanceof ITextField) { … … 322 326 * 323 327 */ 324 public void addTextFieldInput(I TextInputEventTask node, String[] fragments) {328 public void addTextFieldInput(IEventTask node, String[] fragments) { 325 329 textFieldInputs.add(new Object[] { node, fragments }); 326 330 } … … 333 337 * 334 338 */ 335 public void addTextAreaInput(I TextInputEventTask node, String[] fragments) {339 public void addTextAreaInput(IEventTask node, String[] fragments) { 336 340 textAreaInputs.add(new Object[] { node, fragments }); 337 341 }
Note: See TracChangeset
for help on using the changeset viewer.