Changeset 1876 for trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs
- Timestamp:
- 02/13/15 10:31:00 (10 years ago)
- Location:
- trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLDocument.java
r1490 r1876 17 17 import de.ugoe.cs.autoquest.eventcore.guimodel.IDialog; 18 18 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement; 19 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView; 19 20 20 21 /** … … 68 69 protected String getElementDescriptor() { 69 70 return "Document"; 71 } 72 73 /* (non-Javadoc) 74 * @see de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement#getView() 75 */ 76 @Override 77 public IGUIView getView() { 78 return (HTMLDocumentSpec) this.getSpecification(); 70 79 } 71 80 -
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLDocumentSpec.java
r1436 r1876 16 16 17 17 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementSpec; 18 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView; 18 19 19 20 /** … … 27 28 * @author Patrick Harms 28 29 */ 29 public class HTMLDocumentSpec extends HTMLGUIElementSpec implements IGUIElementSpec {30 public class HTMLDocumentSpec extends HTMLGUIElementSpec implements IGUIElementSpec, IGUIView { 30 31 31 32 /** … … 123 124 124 125 /* (non-Javadoc) 126 * @see java.lang.Object#equals(java.lang.Object) 127 */ 128 @Override 129 public boolean equals(Object obj) { 130 if (obj instanceof HTMLDocumentSpec) { 131 return getSimilarity((HTMLDocumentSpec) obj); 132 } 133 else { 134 return false; 135 } 136 } 137 138 /* (non-Javadoc) 125 139 * @see java.lang.Object#toString() 126 140 */ 127 141 @Override 128 142 public String toString() { 129 return "Document(" + getPath() + ", \"" + getTitle() + "\")"; 143 return "Document(" + getPath() + (getQuery() != null ? getQuery() : "") + 144 ", \"" + getTitle() + "\")"; 145 } 146 147 /* (non-Javadoc) 148 * @see de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView#isModal() 149 */ 150 @Override 151 public boolean isModal() { 152 return true; 130 153 } 131 154 … … 148 171 * @return the path in the URL of the document 149 172 */ 150 String getPath() {173 public String getPath() { 151 174 return path; 152 175 } … … 159 182 * @return the query in the URL of the document 160 183 */ 161 String getQuery() {184 public String getQuery() { 162 185 return query; 163 186 } … … 170 193 * @return the title of the document 171 194 */ 172 String getTitle() {195 public String getTitle() { 173 196 return title; 174 197 } -
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLPageElement.java
r1496 r1876 16 16 17 17 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement; 18 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView; 18 19 19 20 /** … … 78 79 public int getIndex() { 79 80 return ((HTMLPageElementSpec) super.getSpecification()).getIndex(); 81 } 82 83 /* (non-Javadoc) 84 * @see de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement#getView() 85 */ 86 @Override 87 public IGUIView getView() { 88 return ((HTMLPageElementSpec) super.getSpecification()).getPage(); 80 89 } 81 90 -
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/guimodel/HTMLServer.java
r1490 r1876 17 17 import de.ugoe.cs.autoquest.eventcore.guimodel.IFrame; 18 18 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement; 19 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView; 19 20 20 21 /** … … 88 89 89 90 /* (non-Javadoc) 91 * @see de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement#getView() 92 */ 93 @Override 94 public IGUIView getView() { 95 return null; 96 } 97 98 /* (non-Javadoc) 90 99 * @see de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement#getDistanceTo(IGUIElement) 91 100 */
Note: See TracChangeset
for help on using the changeset viewer.