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

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

Introduction

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

Prototype

public void remove(Widget w) 

Source Link

Document

Removes the specified widget.

Usage

From source file:rocket.widget.client.Panel.java

License:Apache License

/**
 * Removes the widget at the given slot.
 * //from ww  w.  ja  va 2s  . c o m
 * @param index
 */
public boolean remove(final int index) {
    final WidgetCollection widgets = this.getWidgetCollection();

    final Widget widget = widgets.get(index);
    this.remove0(widget.getElement(), index);// cleanup opportunity
    this.orphan(widget);
    widgets.remove(index);

    return true;
}