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.SimplePanel |
Known Direct Subclasses |
Known Indirect Subclasses |
Base class for panels that contain only one widget.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.UIObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an empty panel that uses a DIV for its contents.
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an empty panel that uses the specified browser element for its
contents.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a widget to this panel.
| |||||||||||
Gets the panel's child widget.
| |||||||||||
Removes a child widget.
| |||||||||||
Set the only widget of the receiver, replacing the previous
widget if there was one.
| |||||||||||
Sets this panel's widget.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Override this method to specify that an element other than the root element
be the container for the panel's child widget.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.Panel
| |||||||||||
From class
com.google.gwt.user.client.ui.Widget
| |||||||||||
From class
com.google.gwt.user.client.ui.UIObject
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface com.google.gwt.event.logical.shared.HasAttachHandlers | |||||||||||
From interface com.google.gwt.event.shared.HasHandlers | |||||||||||
From interface
com.google.gwt.user.client.EventListener
| |||||||||||
From interface
com.google.gwt.user.client.ui.AcceptsOneWidget
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasOneWidget
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasWidgets
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
| |||||||||||
From interface
com.google.gwt.user.client.ui.IsWidget
| |||||||||||
From interface
java.lang.Iterable
|
Creates an empty panel that uses a DIV for its contents.
Creates an empty panel that uses the specified browser element for its contents.
elem | the browser element to use |
---|
Gets the panel's child widget.
null
if none is present
Removes a child widget.
How to Override this Method
There are several important things that must take place in the correct order to properly remove a Widget from a Panel. Not all of these steps will be relevant to every Panel, but all of the steps must be considered.
false
if it is not.orphan(Widget)
first while the child
Widget is still attached.WidgetCollection
.w | the widget to be removed |
---|
true
if the child was present
Set the only widget of the receiver, replacing the previous widget if there was one.
w | the widget, or null to remove the widget |
---|
Sets this panel's widget. Any existing child widget will be removed.
w | the panel's new widget, or null to clear the panel
|
---|
Override this method to specify that an element other than the root element
be the container for the panel's child widget. This can be useful when you
want to create a simple panel that decorates its contents.
Note that this method continues to return the
Element
class defined in the
User
module to maintain backwards compatibility.