Ignore:
Timestamp:
03/04/14 12:19:00 (10 years ago)
Author:
pharms
Message:
  • added support to retrieve the GUI model to which a GUI element belongs from the GUI element itself
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/AbstractDefaultGUIElement.java

    r1385 r1433  
    6565    /** 
    6666     * <p> 
     67     * the reference to the GUI model to which this GUI element belongs. 
     68     * </p> 
     69     */ 
     70    private GUIModel guiModel; 
     71 
     72    /** 
     73     * <p> 
    6774     * Constructor. Creates a new AbstractDefaultGUIElement. 
    6875     * </p> 
     
    97104    public IGUIElement getParent() { 
    98105        return parent; 
     106    } 
     107 
     108    /* (non-Javadoc) 
     109     * @see de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement#getGUIModel() 
     110     */ 
     111    @Override 
     112    public GUIModel getGUIModel() { 
     113       return guiModel; 
    99114    } 
    100115 
     
    233248            } 
    234249        } 
    235  
     250    } 
     251 
     252    /** 
     253     * <p> 
     254     * used to set the GUI model to which this GUI element belongs. Will be set automatically, if 
     255     * used in combination with {@link GUIModel}; 
     256     * </p> 
     257     * 
     258     * @param guiModel 
     259     */ 
     260    void setGUIModel(GUIModel guiModel) { 
     261        this.guiModel = guiModel; 
    236262    } 
    237263 
Note: See TracChangeset for help on using the changeset viewer.