Changeset 1876 for trunk/autoquest-plugin-jfc/src/main
- Timestamp:
- 02/13/15 10:31:00 (10 years ago)
- Location:
- trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel/JFCDialog.java
r927 r1876 16 16 17 17 import de.ugoe.cs.autoquest.eventcore.guimodel.IFrame; 18 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView; 18 19 19 20 /** … … 25 26 * @author Patrick Harms 26 27 */ 27 public class JFCDialog extends JFCGUIElement implements IFrame {28 public class JFCDialog extends JFCGUIElement implements IFrame, IGUIView { 28 29 29 30 /** … … 59 60 } 60 61 62 /* (non-Javadoc) 63 * @see de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView#isModal() 64 */ 65 @Override 66 public boolean isModal() { 67 return true; 68 } 69 61 70 } -
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel/JFCFrame.java
r927 r1876 16 16 17 17 import de.ugoe.cs.autoquest.eventcore.guimodel.IFrame; 18 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView; 18 19 19 20 /** … … 25 26 * @author Patrick Harms 26 27 */ 27 public class JFCFrame extends JFCGUIElement implements IFrame {28 public class JFCFrame extends JFCGUIElement implements IFrame, IGUIView { 28 29 29 30 /** … … 59 60 } 60 61 62 /* (non-Javadoc) 63 * @see de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView#isModal() 64 */ 65 @Override 66 public boolean isModal() { 67 return false; 68 } 69 61 70 } -
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel/JFCGUIElement.java
r1722 r1876 18 18 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement; 19 19 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementSpec; 20 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView; 20 21 21 22 /** … … 186 187 } 187 188 189 /* (non-Javadoc) 190 * @see de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement#getView() 191 */ 192 @Override 193 public IGUIView getView() { 194 IGUIElement element = this; 195 196 while ((element != null) && (!(element instanceof IGUIView))) { 197 if (!(element.getParent() instanceof JFCTabbedPane)) { 198 element = element.getParent(); 199 } 200 else { 201 // break, as all children of a tabbed pane are always views 202 break; 203 } 204 } 205 206 return (IGUIView) element; 207 } 208 188 209 /* 189 210 * (non-Javadoc)
Note: See TracChangeset
for help on using the changeset viewer.