|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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
Abstract base class for panels that can contain multiple child widgets.
Constructor Summary | |
ComplexPanel()
|
Method Summary | |
protected int |
add(Widget w,
Element container)
Adds a new child widget to the panel. |
protected WidgetCollection |
getChildren()
Gets the list of children contained in this panel. |
Widget |
getWidget(int index)
Gets the child widget at the specified index. |
int |
getWidgetCount()
Gets the number of child widgets in this panel. |
int |
getWidgetIndex(Widget child)
Gets the index of the specified child widget. |
protected int |
insert(Widget w,
Element container,
int beforeIndex)
Inserts a new child widget into the panel. |
java.util.Iterator |
iterator()
Gets an iterator for the contained widgets. |
boolean |
remove(int index)
Removes the widget at the specified index. |
boolean |
remove(Widget w)
Removes a child widget. |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
add, adopt, clear, disown, onAttach, onDetach |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
getParent, isAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setElement |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getTitle, isVisible, isVisible, removeStyleName, resetStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ComplexPanel()
Method Detail |
public Widget getWidget(int index)
IndexedPanel
getWidget
in interface IndexedPanel
index
- the child widget's index
public int getWidgetCount()
IndexedPanel
getWidgetCount
in interface IndexedPanel
public int getWidgetIndex(Widget child)
IndexedPanel
getWidgetIndex
in interface IndexedPanel
child
- the widget to be found
-1
if it is not a child of
this panelpublic java.util.Iterator iterator()
HasWidgets
Iterator.remove()
.
iterator
in interface HasWidgets
public boolean remove(int index)
IndexedPanel
remove
in interface IndexedPanel
index
- the index of the widget to be removed
false
if the widget is not presentpublic boolean remove(Widget w)
HasWidgets
remove
in interface HasWidgets
w
- the widget to be removed
true
if the widget was presentprotected int add(Widget w, Element container)
w
- the child widget to be addedcontainer
- the element within which the child will be contained
protected WidgetCollection getChildren()
protected int insert(Widget w, Element container, int beforeIndex)
w
- the child widget to be addedcontainer
- the element within which the child will be containedbeforeIndex
- the index before which the widget will be added
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |