|
|||||||||||
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.SimplePanel
Abstract base class for panels that contain only one widget.
Field Summary |
Fields inherited from class java.lang.Object |
typeId, typeName |
Constructor Summary | |
protected |
SimplePanel()
Creates an empty panel that uses a DIV for its contents. |
protected |
SimplePanel(Element elem)
Creates an empty panel that uses the specified browser element for its contents. |
Method Summary | |
boolean |
add(Widget w)
Adds a new child widget to the panel. |
void |
clear()
Removes all widgets from this panel. |
protected Element |
getContainerElement()
Override this method to specify that an element other than the root element be the container for the panel's child widget. |
Widget |
getWidget(int index)
|
int |
getWidgetCount()
|
int |
getWidgetIndex(Widget child)
|
Iterator |
iterator()
Gets an iterator for the contained widgets. |
boolean |
remove(Widget w)
Removes a widget from the panel. |
protected void |
setWidget(Widget w)
|
Methods inherited from class com.google.gwt.user.client.ui.Panel |
adopt, disown, onAttach, onDetach |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
getParent, isAttached, onBrowserEvent, onLoad |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
equals, finalize, hashCode |
Constructor Detail |
protected SimplePanel()
protected SimplePanel(Element elem)
Method Detail |
public boolean add(Widget w)
Panel
add
in class Panel
w
- the child widget to be added
true
on success (some panels place restrictions on
how children may be added or inserted)public void clear()
Panel
clear
in class Panel
public Widget getWidget(int index)
public int getWidgetCount()
public int getWidgetIndex(Widget child)
public Iterator iterator()
HasWidgets
public boolean remove(Widget w)
Panel
remove
in class Panel
w
- the widget to be removed
true
if the widget was presentprotected Element getContainerElement()
protected void setWidget(Widget w)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |