Changeset 576 for trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/guimodel/AbstractDefaultGUIElement.java
- Timestamp:
- 08/17/12 16:15:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/guimodel/AbstractDefaultGUIElement.java
r565 r576 18 18 public static final long serialVersionUID = 1L; 19 19 20 /** the information about the original type before the mapping*/21 private String originalTypeInfo;20 /** the specification of the GUI element */ 21 private IGUIElementSpec specification; 22 22 23 /* (non-Javadoc) 24 * @see de.ugoe.cs.quest.eventcore.guimodel.IGUIElement#getParent() 23 /** 24 * <p> 25 * TODO: comment 26 * </p> 27 * 28 * @param specification 25 29 */ 26 @Override 27 public IGUIElement getParent() { 28 // TODO remove getParent Stuff 29 return null; 30 public AbstractDefaultGUIElement(IGUIElementSpec specification) { 31 this.specification = specification; 30 32 } 31 33 … … 33 35 * (non-Javadoc) 34 36 * 35 * @see de.ugoe.cs.tasktree.guimodel.GUIElement#get OriginalTypeInfo()37 * @see de.ugoe.cs.tasktree.guimodel.GUIElement#getSpecification() 36 38 */ 37 39 @Override 38 public String getOriginalTypeInfo() {39 return originalTypeInfo;40 public IGUIElementSpec getSpecification() { 41 return specification; 40 42 } 41 43 … … 43 45 * (non-Javadoc) 44 46 * 45 * @see GUIElement# setOriginalTypeInfo(String)47 * @see GUIElement#equals(GUIElement) 46 48 */ 47 void setOriginalTypeInfo(String originalTypeInfo) { 48 this.originalTypeInfo = originalTypeInfo; 49 public boolean equals(IGUIElement other) { 50 if (this == other) 51 { 52 return true; 53 } 54 55 if (!this.getClass().isInstance(other)) { 56 return false; 57 } 58 59 AbstractDefaultGUIElement otherElem = (AbstractDefaultGUIElement) other; 60 61 return 62 ((otherElem.specification == specification) || 63 ((specification != null) && specification.equals(otherElem.specification))); 49 64 } 50 65
Note: See TracChangeset
for help on using the changeset viewer.