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 | |||||
↳ | com.google.gwt.user.client.ui.PopupPanel | |||||
↳ | com.google.gwt.user.client.ui.DecoratedPopupPanel |
Known Direct Subclasses |
A PopupPanel
that wraps its content in a 3x3 grid, which allows users
to add rounded corners.
If you set the width or height of the DecoratedPopupPanel
, you need
to set the height and width of the middleCenter cell to 100% so that the
middleCenter cell takes up all of the available space. If you do not set the
width and height of the DecoratedPopupPanel
, it will wrap its
contents tightly.
.gwt-DecoratedPopupPanel .popupMiddleCenter { height: 100%; width: 100%; }
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.UIObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an empty decorated popup panel.
| |||||||||||
Creates an empty decorated popup panel, specifying its "auto-hide"
property.
| |||||||||||
Creates an empty decorated popup panel, specifying its "auto-hide" and
"modal" properties.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Removes all child widgets.
| |||||||||||
Gets the panel's child widget.
| |||||||||||
Removes a child widget.
| |||||||||||
Sets this panel's widget.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
If a widget contains one or more child widgets that are not in the logical
widget hierarchy (the child is physically connected only on the DOM level),
it must override this method and call
onAttach() for each of its
child widgets. | |||||||||||
If a widget contains one or more child widgets that are not in the logical
widget hierarchy (the child is physically connected only on the DOM level),
it must override this method and call
onDetach() for each of its
child widgets. | |||||||||||
Get a specific Element from the panel.
|
Creates an empty decorated popup panel. A child widget must be added to it before it is shown.
Creates an empty decorated popup panel, specifying its "auto-hide" property.
autoHide | true if the popup should be automatically
hidden when the user clicks outside of it
|
---|
Creates an empty decorated popup panel, specifying its "auto-hide" and "modal" properties.
autoHide | true if the popup should be automatically
hidden when the user clicks outside of it |
---|---|
modal | true if keyboard or mouse events that do not
target the PopupPanel or its children should be ignored
|
Removes all child widgets.
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
Sets this panel's widget. Any existing child widget will be removed.
w | the panel's new widget, or null to clear the panel
|
---|
If a widget contains one or more child widgets that are not in the logical
widget hierarchy (the child is physically connected only on the DOM level),
it must override this method and call onAttach()
for each of its
child widgets.
If a widget contains one or more child widgets that are not in the logical
widget hierarchy (the child is physically connected only on the DOM level),
it must override this method and call onDetach()
for each of its
child widgets.
Get a specific Element from the panel.
row | the row index |
---|---|
cell | the cell index |