| java.lang.Object com.google.gwt.user.client.ui.UIObject com.google.gwt.user.client.ui.Widget com.google.gwt.user.client.ui.Panel com.google.gwt.user.client.ui.ComplexPanel
All known Subclasses: com.google.gwt.user.client.ui.CellPanel, com.google.gwt.user.client.ui.StackPanel, com.google.gwt.user.client.ui.HTMLPanel, com.google.gwt.user.client.ui.DeckPanel, com.google.gwt.user.client.ui.FlowPanel, com.google.gwt.user.client.ui.AbsolutePanel,
ComplexPanel | abstract public class ComplexPanel extends Panel implements IndexedPanel(Code) | | Abstract base class for panels that can contain multiple child widgets.
|
Method Summary | |
protected void | add(Widget child, Element container) Adds a new child widget to the panel, attaching its Element to the
specified container Element. | protected int | adjustIndex(Widget child, int beforeIndex) Adjusts beforeIndex to account for the possibility that the given widget is
already a child of this panel. | protected void | checkIndexBoundsForAccess(int index) Checks that index is in the range [0, getWidgetCount()),
which is the valid range on accessible indexes. | protected void | checkIndexBoundsForInsertion(int index) Checks that index is in the range [0, getWidgetCount()],
which is the valid range for indexes on an insertion. | protected WidgetCollection | getChildren() Gets the list of children contained in this panel. | public Widget | getWidget(int index) | public int | getWidgetCount() | public int | getWidgetIndex(Widget child) | protected void | insert(Widget child, Element container, int beforeIndex) This method was used by subclasses to insert a new child Widget. | protected void | insert(Widget child, Element container, int beforeIndex, boolean domInsert) Insert a new child Widget into this Panel at a specified index, attaching
its Element to the specified container Element. | public Iterator<Widget> | iterator() | public boolean | remove(int index) | public boolean | remove(Widget w) |
add | protected void add(Widget child, Element container)(Code) | | Adds a new child widget to the panel, attaching its Element to the
specified container Element.
Parameters: child - the child widget to be added Parameters: container - the element within which the child will be contained |
adjustIndex | protected int adjustIndex(Widget child, int beforeIndex)(Code) | | Adjusts beforeIndex to account for the possibility that the given widget is
already a child of this panel.
Parameters: child - the widget that might be an existing child Parameters: beforeIndex - the index at which it will be added to this panel the modified index |
checkIndexBoundsForAccess | protected void checkIndexBoundsForAccess(int index)(Code) | | Checks that index is in the range [0, getWidgetCount()),
which is the valid range on accessible indexes.
Parameters: index - the index being accessed |
checkIndexBoundsForInsertion | protected void checkIndexBoundsForInsertion(int index)(Code) | | Checks that index is in the range [0, getWidgetCount()],
which is the valid range for indexes on an insertion.
Parameters: index - the index where insertion will occur |
getChildren | protected WidgetCollection getChildren()(Code) | | Gets the list of children contained in this panel.
a collection of child widgets |
getWidgetCount | public int getWidgetCount()(Code) | | |
insert | protected void insert(Widget child, Element container, int beforeIndex, boolean domInsert)(Code) | | Insert a new child Widget into this Panel at a specified index, attaching
its Element to the specified container Element. The child Element will
either be attached to the container at the same index, or simply appended
to the container, depending on the value of domInsert .
Parameters: child - the child Widget to be added Parameters: container - the Element within which child will becontained Parameters: beforeIndex - the index before which child will beinserted Parameters: domInsert - if true , insert child intocontainer at beforeIndex ; otherwiseappend child to the end of container . |
remove | public boolean remove(int index)(Code) | | |
|
|