Example usage for com.google.gwt.user.client.ui LayoutPanel remove

List of usage examples for com.google.gwt.user.client.ui LayoutPanel remove

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui LayoutPanel remove.

Prototype

@Override
    public boolean remove(Widget w) 

Source Link

Usage

From source file:org.rstudio.core.client.widget.SlideLabel.java

License:Open Source License

public static Command show(String label, boolean asHtml, boolean showProgressSpinner, final LayoutPanel panel) {
    final SlideLabel slideLabel = showInternal(label, asHtml, showProgressSpinner, panel);
    slideLabel.show();/*ww  w  . j a  v a2 s . c  om*/
    return new Command() {
        public void execute() {
            panel.remove(slideLabel);
        }
    };
}

From source file:org.rstudio.core.client.widget.SlideLabel.java

License:Open Source License

public static void show(String label, boolean asHtml, boolean showProgressSpinner, int autoHideMillis,
        final LayoutPanel panel) {
    final SlideLabel slideLabel = showInternal(label, asHtml, showProgressSpinner, panel);
    slideLabel.show(autoHideMillis, new Command() {
        public void execute() {
            panel.remove(slideLabel);
        }// www.j  a va 2 s  .  c om
    });
}