Changeset 2146 for trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/GUIElementTree.java
- Timestamp:
- 05/19/17 11:31:29 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/GUIElementTree.java
r1084 r2146 20 20 import java.util.Map; 21 21 22 import de.ugoe.cs.autoquest.eventcore.EventTargetModelException; 23 import de.ugoe.cs.autoquest.eventcore.IEventTargetFactory; 22 24 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementFactory; 23 25 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModel; 24 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModelException;25 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementFactory;26 26 27 27 /** … … 30 30 * </p> 31 31 * <p> 32 * The GUIElementTree represents the hierarchical structure of the GUI elements "as it is" currently during 33 * a session. It may change during the session due to creation and destruction of GUI elements. The parameter 34 * T represents the id type of the GUI elements that are handled internally. 32 * The GUIElementTree represents the hierarchical structure of the GUI elements "as it is" 33 * currently during a session. It may change during the session due to creation and destruction 34 * of GUI elements. The parameter T represents the id type of the GUI elements that are handled 35 * internally. 35 36 * </p> 36 37 * … … 84 85 * </p> 85 86 */ 86 private IGUIElementFactory guiElementFactory = GUIElementFactory.getInstance(); 87 88 87 private IEventTargetFactory guiElementFactory = GUIElementFactory.getInstance(); 89 88 90 89 /** … … 127 126 * the GUI element specification 128 127 * 129 * @throws GUIModelException if the GUI element can not be added to the underlying GUI model128 * @throws EventTargetModelException if the GUI element can not be added to the underlying GUI model 130 129 */ 131 130 public void add(T guiElementID, 132 131 T parentID, 133 132 IGUIElementSpec guiElementSpec) 134 throws GUIModelException133 throws EventTargetModelException 135 134 { 136 135 IGUIElement guiElement = guiElements.get(guiElementID); … … 161 160 } 162 161 163 guiElement = guiModel.integratePath(guiElementPath, guiElementFactory);162 guiElement = (IGUIElement) guiModel.integratePath(guiElementPath, guiElementFactory); 164 163 guiElements.put(guiElementID, guiElement); 165 164 }
Note: See TracChangeset
for help on using the changeset viewer.