Java 类com.google.gwt.user.client.ui.AttachDetachException 实例源码

项目:ahome-touch    文件:ComplexContainer.java   
void doLogicalClear() {
    if (orphanCommand == null) {
        orphanCommand = new AttachDetachException.Command() {
            public void execute(Widget w) {
                orphan(w);
            }
        };
    }
    try {
        AttachDetachException.tryCommand(this, orphanCommand);
    } finally {
        children = new WidgetCollection(this);
    }
}
项目:touch4j    文件:ComplexContainer.java   
void doLogicalClear() {
    if (orphanCommand == null) {
        orphanCommand = new AttachDetachException.Command() {
            public void execute(Widget w) {
                orphan(w);
            }
        };
    }
    try {
        AttachDetachException.tryCommand(this, orphanCommand);
    } finally {
        children = new WidgetCollection(this);
    }
}
项目:gwt-dynamic-plugins    文件:WrapPanel.java   
private static void detachWidgets() {
    // When the window is closing, detach all widgets that need to be
    // cleaned up. This will cause all of their event listeners
    // to be unhooked, which will avoid potential memory leaks.
    try {
        AttachDetachException.tryCommand(widgetsToDetach, maybeDetachCommand);
    } finally {
        widgetsToDetach.clear();
    }
}