Changeset 835 for trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/guimodel/JFCGUIElement.java
- Timestamp:
- 09/20/12 10:36:09 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/guimodel/JFCGUIElement.java
r778 r835 1 1 2 package de.ugoe.cs.quest.plugin.jfc.guimodel; 2 3 … … 5 6 6 7 /** 7 * TODO comment 8 * <p> 9 * Base class for all JFC GUI elements. 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 class JFCGUIElement extends AbstractDefaultGUIElement { 13 16 14 17 /** 15 18 * <p> … … 19 22 private static final long serialVersionUID = 1L; 20 23 21 /** the specification of the GUI Element */ 24 /** 25 * <p> 26 * Specification of the GUI Element 27 * </p> 28 */ 22 29 private JFCGUIElementSpec specification; 23 30 24 31 /** 25 * @param name 26 * @param id 27 * @param isModal 32 * <p> 33 * Constructor. Creates a new JFCGUIElement. 34 * </p> 35 * 36 * @param specification 37 * specification of created GUI element 38 * @param parent 39 * parent of the created GUI element; null means that the element is a top-level 40 * window 28 41 */ 29 42 public JFCGUIElement(JFCGUIElementSpec specification, JFCGUIElement parent) { … … 32 45 } 33 46 34 /* (non-Javadoc) 47 /* 48 * (non-Javadoc) 49 * 35 50 * @see de.ugoe.cs.quest.eventcore.IEventTarget#getPlatform() 36 51 */ … … 41 56 42 57 /** 43 * TODO: comment 58 * <p> 59 * Returns the type of the GUI element, i.e., the name of its Java class. 60 * </p> 44 61 * 45 * @return 62 * @return the Java class name 46 63 */ 47 64 public String getJavaType() { … … 50 67 51 68 /** 52 * @return Returns the name. 69 * <p> 70 * Returns the name of the GUI element. 71 * </p> 72 * 73 * @return the name 53 74 */ 54 75 String getName() { … … 57 78 58 79 /** 80 * <p> 81 * Returns the icon of the GUI element. 82 * </p> 83 * 59 84 * @return the icon 60 85 */ … … 64 89 65 90 /** 91 * <p> 92 * Returns the index of the GUI element. 93 * </p> 94 * 66 95 * @return the index 67 96 */ … … 71 100 72 101 /** 73 * @return the hashCode 102 * <p> 103 * Returns the object hash of the GUI element. 104 * </p> 105 * 106 * @return the object hash 74 107 */ 75 108 int getElementHash() { … … 77 110 } 78 111 79 /** 80 * <p> 81 * TODO comment 82 * </p> 112 /* 113 * (non-Javadoc) 114 * 115 * @see 116 * de.ugoe.cs.quest.eventcore.guimodel.IGUIElement#updateSpecification(de.ugoe.cs.quest.eventcore 117 * .guimodel.IGUIElementSpec) 83 118 */ 84 119 @Override … … 88 123 } 89 124 } 90 125 91 126 /* 92 127 * (non-Javadoc) … … 97 132 public String getStringIdentifier() { 98 133 String str = this.toString(); 99 if ( getParent()!=null) {134 if (getParent() != null) { 100 135 return getParent().getStringIdentifier() + "->" + str; 101 136 } 102 137 return str; 103 138 } 104 139 105 140 /* 106 141 * (non-Javadoc) … … 110 145 @Override 111 146 public String toString() { 112 String str = getElementDescriptor() + "(" + getName() + "," + getElementHash() + "," + 113 getIcon() + "," + getIndex() +")"; 147 String str = 148 getElementDescriptor() + "(" + getName() + "," + getElementHash() + "," + getIcon() + 149 "," + getIndex() + ")"; 114 150 return str; 115 151 } 116 152 153 /** 154 * <p> 155 * A short string describing the GUI element, e.g., Button, Canvas, or ScrollBar. 156 * </p> 157 * 158 * @return short element descriptor 159 */ 117 160 protected String getElementDescriptor() { 118 161 return "Default";
Note: See TracChangeset
for help on using the changeset viewer.