|
GWT 2.7.0 | |||||||
| 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.
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%;
}
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel |
|---|
PopupPanel.AnimationType, PopupPanel.PositionCallback, PopupPanel.ResizeAnimation |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
HasWidgets.ForIsWidget |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.SimplePanel |
|---|
widget |
| Fields inherited from class com.google.gwt.user.client.ui.Widget |
|---|
eventsToSink |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX, MISSING_ELEMENT_ERROR, SETELEMENT_TWICE_ERROR |
| 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. |
|
DecoratedPopupPanel(boolean autoHide,
boolean modal,
java.lang.String prefix)
Creates an empty decorated popup panel using the specified style names. |
|
| Method Summary | |
|---|---|
void |
clear()
Removes all child widgets. |
protected void |
doAttachChildren()
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 Widget.onAttach() for each of its
child widgets. |
protected void |
doDetachChildren()
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 Widget.onDetach() for each of its
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.SimplePanel |
|---|
add, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
add, adopt, orphan, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, ensureHandlers, fireEvent, getHandlerCount, getHandlerManager, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, removeFromParent, replaceElement, setLayoutData, setParent, sinkEvents, unsinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| 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
DecoratedPopupPanel(boolean autoHide,
boolean modal,
java.lang.String prefix)
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 ignoredprefix - the prefix applied to child style names| Method Detail |
|---|
public void clear()
HasWidgets
clear in interface HasWidgetsclear in class Panelpublic Widget getWidget()
SimplePanel
getWidget in interface HasOneWidgetgetWidget 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 interface HasOneWidgetsetWidget in class PopupPanelw - the panel's new widget, or null to clear the panelprotected void doAttachChildren()
WidgetWidget.onAttach() for each of its
child widgets.
doAttachChildren in class PanelWidget.onAttach()protected void doDetachChildren()
WidgetWidget.onDetach() for each of its
child widgets.
doDetachChildren in class PanelWidget.onDetach()
protected Element getCellElement(int row,
int cell)
row - the row indexcell - the cell index
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||