|
|||||||||||
| 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
Abstract base class for all panels, which are widgets that can contain other widgets.
| Field Summary |
| Fields inherited from class java.lang.Object |
typeId, typeName |
| Constructor Summary | |
Panel()
|
|
| Method Summary | |
abstract boolean |
add(Widget w)
Adds a new child widget to the panel. |
protected void |
adopt(Widget w)
This method must be called as part of the add method of any panel. |
abstract void |
clear()
Removes all widgets from this panel. |
protected void |
disown(Widget w)
This method must be called whenever a Widget is removed. |
protected void |
onAttach()
This method is called when a widget is attached to the browser's document. |
protected void |
onDetach()
This method is called when a widget is detached from the browser's document. |
abstract boolean |
remove(Widget w)
Removes a widget from the panel. |
| 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 |
| Methods inherited from interface com.google.gwt.user.client.ui.HasWidgets |
iterator |
| Constructor Detail |
public Panel()
| Method Detail |
public abstract boolean add(Widget w)
w - the child widget to be added
true on success (some panels place restrictions on
how children may be added or inserted)public abstract void clear()
protected void disown(Widget w)
protected void adopt(Widget w)
public abstract boolean remove(Widget w)
w - the widget to be removed
true if the widget was presentprotected final void onAttach()
WidgetPanel. To receive
notification when a widget is attached to the document, override the
Widget.onLoad() method.
onAttach in class Widgetprotected final void onDetach()
WidgetPanel.
onDetach in class Widget
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||