public class SimplePopup extends com.google.gwt.user.client.ui.SimplePanel implements com.google.gwt.event.logical.shared.HasCloseHandlers<SimplePopup>
| Modifier and Type | Class and Description |
|---|---|
class |
SimplePopup.Position |
static interface |
SimplePopup.PositionCallback
A callback that is used to set the position of a
SimplePopup right before it is shown. |
| Modifier and Type | Field and Description |
|---|---|
protected VerticalPanel |
panel |
| Constructor and Description |
|---|
SimplePopup() |
SimplePopup(com.google.gwt.user.client.ui.Widget[] widgets) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget w) |
com.google.gwt.event.shared.HandlerRegistration |
addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<SimplePopup> handler) |
void |
clear() |
void |
hide() |
void |
hide(boolean autoClosed) |
protected void |
onHide() |
protected void |
onShow() |
void |
setAutoHide(boolean autoHide) |
void |
setGlassEnabled(boolean enabled)
When enabled, the background will be blocked with a semi-transparent pane the next time it is shown.
|
void |
setVisible(boolean visible) |
void |
show(SimplePopup.PositionCallback cb) |
void |
showCentered(boolean glassEffect) |
void |
showRelativeTo(com.google.gwt.user.client.ui.UIObject target)
Normally, the popup is positioned directly below the relative target, with its left edge aligned with the left
edge of the target.
|
getContainerElement, getWidget, iterator, remove, setWidget, setWidgetadd, adopt, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setWidth, sinkBitlessEvent, toStringprotected final VerticalPanel panel
public SimplePopup()
public SimplePopup(com.google.gwt.user.client.ui.Widget[] widgets)
public void add(com.google.gwt.user.client.ui.Widget w)
add in interface com.google.gwt.user.client.ui.HasWidgetsadd in class com.google.gwt.user.client.ui.SimplePanelpublic void clear()
clear in interface com.google.gwt.user.client.ui.HasWidgetsclear in class com.google.gwt.user.client.ui.Panelpublic void setAutoHide(boolean autoHide)
public void show(SimplePopup.PositionCallback cb)
protected void onShow()
protected void onHide()
public void hide()
public void hide(boolean autoClosed)
public void showCentered(boolean glassEffect)
public void showRelativeTo(com.google.gwt.user.client.ui.UIObject target)
target - the target to show the popup belowpublic void setVisible(boolean visible)
setVisible in interface com.google.gwt.user.client.ui.HasVisibilitysetVisible in class com.google.gwt.user.client.ui.UIObjectpublic com.google.gwt.event.shared.HandlerRegistration addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<SimplePopup> handler)
addCloseHandler in interface com.google.gwt.event.logical.shared.HasCloseHandlers<SimplePopup>public void setGlassEnabled(boolean enabled)
enabled - true to enable, false to disableCopyright © 2011–2015 SWM. All rights reserved.