public class VPopupView.CustomPopup extends VOverlay implements StateChangeEvent.StateChangeHandler
Overlay.PositionAndSize, Overlay.ResizeAnimationcom.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback| Modifier and Type | Field and Description |
|---|---|
VCaptionWrapper |
captionWrapper
For internal use only.
|
com.google.gwt.user.client.ui.Widget |
popupComponentWidget
For internal use only.
|
ADDITIONAL_CLASSNAME_ANIMATE_IN, ADDITIONAL_CLASSNAME_ANIMATE_OUT, CLASSNAME_CONTAINER, CLASSNAME_SHADOW, current, Z_INDEX| Constructor and Description |
|---|
CustomPopup()
Constructs a popup widget for VPopupView.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.user.client.Element |
getContainerElement() |
void |
hide(boolean autoClosed) |
boolean |
onEventPreview(com.google.gwt.user.client.Event event) |
void |
onStateChanged(StateChangeEvent stateChangeEvent)
Notifies the event handler that the state has changed.
|
boolean |
remove(com.google.gwt.user.client.ui.Widget w) |
void |
setHideOnMouseOut(boolean hideOnMouseOut)
Should this popup automatically hide when the user takes the mouse
cursor out of the popup area? If this is
false, the user must
click outside the popup to close it. |
void |
setPopupConnector(ComponentConnector newPopupComponent)
Sets the connector of the popup content widget.
|
void |
show() |
void |
syncChildren()
Try to sync all known active child widgets to server.
|
getApplicationConnection, getOverlayContainer, getOverlayContainer, setApplicationConnection, setOverlayContainerLabelcenter, getOwner, hide, hide, isFitInWindow, isShimElementEnabled, needsShimElement, onAttach, onDetach, positionOrSizeUpdated, setFitInWindow, setHeight, setOwner, setPopupPosition, setVisible, setWidth, setZIndex, updateShadowSizeAndPositionaddAutoHidePartner, addCloseHandler, addPopupListener, getAnimationType, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onPreviewNativeEvent, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAnimationType, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setModal, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setWidget, showRelativeToadd, getWidget, iterator, setWidgetadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic com.google.gwt.user.client.ui.Widget popupComponentWidget
public VCaptionWrapper captionWrapper
public CustomPopup()
VPopupView.CustomPopuppublic boolean onEventPreview(com.google.gwt.user.client.Event event)
onEventPreview in interface com.google.gwt.user.client.EventPreviewonEventPreview in class com.google.gwt.user.client.ui.PopupPanelpublic void syncChildren()
public boolean remove(com.google.gwt.user.client.ui.Widget w)
remove in interface com.google.gwt.user.client.ui.HasWidgetsremove in class com.google.gwt.user.client.ui.SimplePanelpublic void setPopupConnector(ComponentConnector newPopupComponent)
null.newPopupComponent - the connector to setpublic void setHideOnMouseOut(boolean hideOnMouseOut)
false, the user must
click outside the popup to close it. The default is true.hideOnMouseOut - true if this popup should hide when mouse is moved
away, false otherwisepublic com.google.gwt.user.client.Element getContainerElement()
getContainerElement in class com.google.gwt.user.client.ui.PopupPanelpublic void onStateChanged(StateChangeEvent stateChangeEvent)
StateChangeEvent.StateChangeHandleronStateChanged in interface StateChangeEvent.StateChangeHandlerstateChangeEvent - the state change event with details about the changeCopyright © 2023 Vaadin Ltd. All rights reserved.