InsertPanel abstract class
Implemented by IndexedPanels that also allow insertions.
abstract class InsertPanel extends IndexedPanel { /** * Adds a child widget to this panel. * * @param w the child widget to be added */ void add(Widget w); /** * Inserts a child widget before the specified index. If the widget is already * a child of this panel, it will be moved to the specified index. * * @param w the child widget to be inserted * @param beforeIndex the index before which it will be inserted * @throws IndexOutOfBoundsException if <code>beforeIndex</code> is out of * range */ void insertAt(Widget w, int beforeIndex); }
Extends
IndexedPanel > InsertPanel
Subclasses
Methods
abstract void add(Widget w) #
Adds a child widget to this panel.
@param w the child widget to be added
abstract Widget getWidgetAt(int index) #
Gets the child widget at the specified index.
@param index the child widget's index @return the child widget
abstract int getWidgetCount() #
Gets the number of child widgets in this panel.
@return the number of children
abstract int getWidgetIndex(Widget child) #
Gets the index of the specified child widget.
@param child the widget to be found @return the widget's index, or <code>-1</code> if it is not a child of this
panel
abstract void insertAt(Widget w, int beforeIndex) #
Inserts a child widget before the specified index. If the widget is already a child of this panel, it will be moved to the specified index.
@param w the child widget to be inserted @param beforeIndex the index before which it will be inserted @throws IndexOutOfBoundsException if <code>beforeIndex</code> is out of
range
abstract bool removeAt(int index) #
Removes the widget at the specified index.
@param index the index of the widget to be removed @return <code>false</code> if the widget is not present