public class VPopupView extends com.google.gwt.user.client.ui.HTML implements com.google.gwt.user.client.ui.HasEnabled, Iterable<com.google.gwt.user.client.ui.Widget>, DeferredWorker
| Modifier and Type | Class and Description |
|---|---|
class |
VPopupView.CustomPopup
This class is only public to enable overriding showPopup, and is
currently not intended to be extended or otherwise used directly.
|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSNAME
Default classname for this widget.
|
ApplicationConnection |
client
For internal use only.
|
boolean |
hostPopupVisible
Helps to communicate popup visibility to the server.
|
VPopupView.CustomPopup |
popup
For internal use only.
|
String |
uidlId
For server-client communication.
|
| Constructor and Description |
|---|
VPopupView()
Loading constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addVisibilityChangeHandler(VisibilityChangeHandler visibilityChangeHandler)
Adds the given visibility change handler to this widget.
|
void |
center()
For internal use only.
|
boolean |
isEnabled()
Returns true if the popup is enabled, false if not.
|
boolean |
isWorkPending()
Checks whether there are operations pending for this widget that must be
executed before reaching a steady state.
|
Iterator<com.google.gwt.user.client.ui.Widget> |
iterator() |
protected void |
onDetach()
Make sure that we remove the popup when the main widget is removed.
|
void |
preparePopup(VPopupView.CustomPopup popup)
For internal use only.
|
void |
setEnabled(boolean enabled)
Sets whether this popup is enabled.
|
void |
showPopup(VPopupView.CustomPopup popup)
Determines the correct position for a popup and displays the popup at
that position.
|
getHTML, getTextOrHtml, setHTML, setHTML, setHTML, setHTML, wrapaddClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, asEditor, getDirection, getText, getTextDirection, removeClickListener, removeMouseListener, removeMouseWheelListener, setDirection, setText, setTextgetAutoHorizontalAlignment, getDirectionEstimator, getHorizontalAlignment, getWordWrap, setAutoHorizontalAlignment, setDirectionEstimator, setDirectionEstimator, setHorizontalAlignment, setWordWrap, updateHorizontalAlignmentaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, 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, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final String CLASSNAME
public String uidlId
For internal use only. May be removed or replaced in the future.
public ApplicationConnection client
public boolean hostPopupVisible
For internal use only. May be removed or replaced in the future.
public final VPopupView.CustomPopup popup
public void preparePopup(VPopupView.CustomPopup popup)
popup - the popup that should be shownpublic void showPopup(VPopupView.CustomPopup popup)
popup - the popup whose position should be updatedpublic void center()
protected void onDetach()
onDetach in class com.google.gwt.user.client.ui.WidgetWidget.onUnload()public boolean isEnabled()
isEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic void setEnabled(boolean enabled)
setEnabled in interface com.google.gwt.user.client.ui.HasEnabledenabled - true to enable the popup, false to
disable itpublic com.google.gwt.event.shared.HandlerRegistration addVisibilityChangeHandler(VisibilityChangeHandler visibilityChangeHandler)
visibilityChangeHandler - the handler that should be triggered when visibility changespublic Iterator<com.google.gwt.user.client.ui.Widget> iterator()
public boolean isWorkPending()
isWorkPending in interface DeferredWorkerCopyright © 2023 Vaadin Ltd. All rights reserved.