|
|||||||||
| 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
com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.DecoratedPopupPanel
public class DecoratedPopupPanel
A PopupPanel that wraps its content in a 3x3 grid, which allows users
to add rounded corners.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel |
|---|
PopupPanel.PositionCallback |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
DecoratedPopupPanel()
Creates an empty decorated popup panel. |
|
DecoratedPopupPanel(boolean autoHide)
Creates an empty decorated popup panel, specifying its "auto-hide" property. |
|
DecoratedPopupPanel(boolean autoHide,
boolean modal)
Creates an empty decorated popup panel, specifying its "auto-hide" and "modal" properties. |
|
| Method Summary | |
|---|---|
void |
clear()
Removes all child widgets. |
protected Element |
getCellElement(int row,
int cell)
Get a specific Element from the panel. |
Widget |
getWidget()
Gets the panel's child widget. |
java.util.Iterator<Widget> |
iterator()
Gets an iterator for the contained widgets. |
boolean |
remove(Widget w)
Removes a child widget. |
void |
setWidget(Widget w)
Sets this panel's widget. |
| Methods inherited from class com.google.gwt.user.client.ui.PopupPanel |
|---|
addPopupListener, center, getContainerElement, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getTitle, hide, isAnimationEnabled, onDetach, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, removePopupListener, setAnimationEnabled, setHeight, setPopupPosition, setPopupPositionAndShow, setTitle, setVisible, setWidth, show |
| Methods inherited from class com.google.gwt.user.client.ui.SimplePanel |
|---|
add |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
adopt, adopt, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
getParent, isAttached, onAttach, onBrowserEvent, removeFromParent |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkEvents, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DecoratedPopupPanel()
public DecoratedPopupPanel(boolean autoHide)
autoHide - true if the popup should be automatically
hidden when the user clicks outside of it
public DecoratedPopupPanel(boolean autoHide,
boolean modal)
autoHide - true if the popup should be automatically
hidden when the user clicks outside of itmodal - true if keyboard or mouse events that do not
target the PopupPanel or its children should be ignored| Method Detail |
|---|
public void clear()
HasWidgets
clear in interface HasWidgetsclear in class Panelpublic Widget getWidget()
SimplePanel
getWidget in class SimplePanelnull if none is presentpublic java.util.Iterator<Widget> iterator()
HasWidgetsIterator.remove().
iterator in interface HasWidgetsiterator in interface java.lang.Iterable<Widget>iterator in class SimplePanelpublic boolean remove(Widget w)
PanelHow 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.Panel.orphan(Widget) first while the child
Widget is still attached.WidgetCollection.
remove in interface HasWidgetsremove in class SimplePanelw - the widget to be removed
true if the child was presentpublic void setWidget(Widget w)
SimplePanel
setWidget in class PopupPanelw - the panel's new widget, or null to clear the panel
protected Element getCellElement(int row,
int cell)
row - the row indexcell - the cell index
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||