Changeset 837 for trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/guimodel/MFCGUIElement.java
- Timestamp:
- 09/20/12 12:03:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/guimodel/MFCGUIElement.java
r681 r837 1 1 2 package de.ugoe.cs.quest.plugin.mfc.guimodel; 2 3 … … 5 6 6 7 /** 7 * TODO comment 8 * <p> 9 * Base class that represents GUI element in MFC GUIs. 10 * </p> 8 11 * 9 * @version $Revision: $ $Date: $10 * @author 2011, last modified by $Author: $12 * @version 1.0 13 * @author Patrick Harms 11 14 */ 12 15 public abstract class MFCGUIElement extends AbstractDefaultGUIElement { 13 14 /** */ 16 17 /** 18 * <p> 19 * Id for object serialization. 20 * </p> 21 */ 15 22 private static final long serialVersionUID = 1L; 16 23 17 24 /** 18 * @param name 19 * @param id 20 * @param isModal 25 * <p> 26 * Constructor. Creates a new MFCGUIElement. 27 * </p> 28 * 29 * @param specification 30 * specification of created GUI element 31 * @param parent 32 * parent of the created GUI element; null means that the element is a top-level 33 * window 21 34 */ 22 35 public MFCGUIElement(MFCGUIElementSpec specification, MFCGUIElement parent) { … … 24 37 } 25 38 26 /* (non-Javadoc) 39 /* 40 * (non-Javadoc) 41 * 27 42 * @see de.ugoe.cs.quest.eventcore.IEventTarget#getPlatform() 28 43 */ … … 33 48 34 49 /** 35 * @return Returns the id. 50 * <p> 51 * Returns the HWND (Id) of the GUI element. 52 * </p> 53 * 54 * @return the HWND (Id) 36 55 */ 37 56 public String getId() { … … 40 59 41 60 /** 42 * @return Returns the name. 61 * <p> 62 * Returns the type of the GUI element. 63 * </p> 64 * 65 * @return the type 43 66 */ 44 67 public String getType() { … … 47 70 48 71 /** 49 * @return Returns the name. 72 * <p> 73 * Returns the name of the GUI element. 74 * </p> 75 * 76 * @return the name 50 77 */ 51 78 public String getName() { … … 54 81 55 82 /** 56 * @return Returns the isModal. 83 * <p> 84 * Returns the modality of the GUI element. 85 * </p> 86 * 87 * @return the modality 57 88 */ 58 89 public boolean isModal() { … … 62 93 /** 63 94 * <p> 64 * TODO: comment95 * Returns the resource Id of the GUI element. 65 96 * </p> 66 * 67 * @return 97 * 98 * @return the resource Id 68 99 */ 69 100 public int getResourceId() { … … 71 102 } 72 103 73 /* (non-Javadoc) 74 * @see de.ugoe.cs.quest.eventcore.guimodel.IGUIElement#updateSpecification(de.ugoe.cs.quest.eventcore.guimodel.IGUIElementSpec) 104 /* 105 * (non-Javadoc) 106 * 107 * @see 108 * de.ugoe.cs.quest.eventcore.guimodel.IGUIElement#updateSpecification(de.ugoe.cs.quest.eventcore 109 * .guimodel.IGUIElementSpec) 75 110 */ 76 111 @Override … … 78 113 ((MFCGUIElementSpec) super.getSpecification()).update(furtherSpec); 79 114 } 80 115 116 /* 117 * (non-Javadoc) 118 * 119 * @see de.ugoe.cs.quest.eventcore.IEventTarget#getStringIdentifier() 120 */ 81 121 @Override 82 122 public String getStringIdentifier() { 83 123 String str = this.toString(); 84 if ( getParent()!=null) {124 if (getParent() != null) { 85 125 return getParent().getStringIdentifier() + "->" + str; 86 126 } … … 88 128 } 89 129 90 /* (non-Javadoc) 130 /* 131 * (non-Javadoc) 132 * 91 133 * @see java.lang.Object#toString() 92 134 */ … … 98 140 /** 99 141 * <p> 100 * TODO: comment142 * Returns the XML representation of the GUI element. 101 143 * </p> 144 * 145 * @return the XML representation 102 146 */ 103 147 public String toXML() { 104 148 if (getParent() != null) { 105 return 106 ((MFCGUIElement) getParent()).toXML() + 149 return ((MFCGUIElement) getParent()).toXML() + 107 150 ((MFCGUIElementSpec) super.getSpecification()).toXML(); 108 151 }
Note: See TracChangeset
for help on using the changeset viewer.