Ignore:
Timestamp:
07/25/13 14:42:19 (11 years ago)
Author:
pharms
Message:
  • added support for changing the parent of a GUI element and, therefore, for restructuring GUI models
File:
1 edited

Legend:

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

    r1121 r1259  
    4747     * </p> 
    4848     */ 
    49     private final IGUIElement parent; 
     49    private IGUIElement parent; 
    5050     
    5151    /** 
     
    7575    public AbstractDefaultGUIElement(IGUIElementSpec specification, IGUIElement parent) { 
    7676        this.specification = specification; 
    77         this.parent = parent; 
    7877        this.usageObserved = false; 
     78        setParent(parent); 
    7979    } 
    8080 
     
    218218    /** 
    219219     * <p> 
     220     * updates the parent node of this node if required due to model restructuring 
     221     * </p> 
     222     */ 
     223    void setParent(IGUIElement newParent) { 
     224        this.parent = newParent; 
     225    } 
     226 
     227    /** 
     228     * <p> 
    220229     * Adds an {@link AbstractDefaultGUIElement} as equal to a list of 
    221230     * {@link AbstractDefaultGUIElement}s if and only if it is not already contained. 
Note: See TracChangeset for help on using the changeset viewer.