Examples of ParentChangedEventArgs


Examples of com.eagerlogic.cubee.client.events.ParentChangedEventArgs

        if (component != null) {
            if (component.getParent() != null) {
                throw new IllegalStateException("The component is already a child of a layout.");
            }
            component.setParent(parent);
            component.onParentChangedEvent().fireEvent(new ParentChangedEventArgs(parent, component));
        }

        children.add(component);
        parent.onChildAdded(component);
    }
View Full Code Here

Examples of com.eagerlogic.cubee.client.events.ParentChangedEventArgs

   
    public void remove(int index, boolean destroy) {
        AComponent removedComponent = children.remove(index);
        if (removedComponent != null) {
            removedComponent.setParent(null);
            removedComponent.onParentChangedEvent().fireEvent(new ParentChangedEventArgs(null, removedComponent));
            if (destroy) {
                removedComponent.destroy();
            }
        }
        parent.onChildRemoved(removedComponent, index);
View Full Code Here

Examples of com.eagerlogic.cubee.client.events.ParentChangedEventArgs

   
    public void clear(boolean destroy) {
        for (AComponent component : children) {
            if (component != null) {
                component.setParent(null);
                component.onParentChangedEvent().fireEvent(new ParentChangedEventArgs(null, component));
                if (destroy) {
                    component.destroy();
                }
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.