com.vaadin.client.ui.
Class VPopupView.CustomPopup
- java.lang.Object
-
- com.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.vaadin.client.widgets.Overlay
-
- com.vaadin.client.ui.VOverlay
-
- com.vaadin.client.ui.VPopupView.CustomPopup
-
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>
,com.google.gwt.event.shared.EventHandler
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.EventPreview
,com.google.gwt.user.client.ui.AcceptsOneWidget
,com.google.gwt.user.client.ui.HasAnimation
,com.google.gwt.user.client.ui.HasOneWidget
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.HasWidgets
,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
,com.google.gwt.user.client.ui.IsWidget
,com.google.gwt.user.client.ui.SourcesPopupEvents
,StateChangeEvent.StateChangeHandler
,Serializable
,Iterable<com.google.gwt.user.client.ui.Widget>
Enclosing class:
public class VPopupView.CustomPopup extends VOverlay implements StateChangeEvent.StateChangeHandler
This class is only public to enable overriding showPopup, and is currently not intended to be extended or otherwise used directly. Its API (other than it being a VOverlay) is to be considered private and potentially subject to change.
See Also:
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.client.widgets.Overlay
Overlay.PositionAndSize, Overlay.ResizeAnimation
-
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback
-
-
Field Summary
Fields Modifier and Type Field Description VCaptionWrapper
captionWrapper
For internal use only.
com.google.gwt.user.client.ui.Widget
popupComponentWidget
For internal use only.
-
Fields inherited from class com.vaadin.client.widgets.Overlay
ADDITIONAL_CLASSNAME_ANIMATE_IN, ADDITIONAL_CLASSNAME_ANIMATE_OUT, CLASSNAME_CONTAINER, CLASSNAME_SHADOW, current, Z_INDEX
-
-
Constructor Summary
Constructors Constructor Description CustomPopup()
Constructs a popup widget for VPopupView.
-
Method Summary
All Methods Modifier and Type Method 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.
-
Methods inherited from class com.vaadin.client.ui.VOverlay
getApplicationConnection, getOverlayContainer, getOverlayContainer, setApplicationConnection, setOverlayContainerLabel
-
Methods inherited from class com.vaadin.client.widgets.Overlay
center, getOwner, hide, hide, isFitInWindow, isShimElementEnabled, needsShimElement, onAttach, onDetach, positionOrSizeUpdated, setFitInWindow, setHeight, setOwner, setPopupPosition, setVisible, setWidth, setZIndex, updateShadowSizeAndPosition
-
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addAutoHidePartner, 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, showRelativeTo
-
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getWidget, iterator, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, removeFromParent, setLayoutData, 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 java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
popupComponentWidget
public com.google.gwt.user.client.ui.Widget popupComponentWidget
For internal use only. May be removed or replaced in the future.
-
captionWrapper
public VCaptionWrapper captionWrapper
For internal use only. May be removed or replaced in the future.
-
-
Method Detail
-
onEventPreview
public boolean onEventPreview(com.google.gwt.user.client.Event event)
Specified by:
onEventPreview
in interfacecom.google.gwt.user.client.EventPreview
Overrides:
onEventPreview
in classcom.google.gwt.user.client.ui.PopupPanel
-
syncChildren
public void syncChildren()
Try to sync all known active child widgets to server.
-
remove
public boolean remove(com.google.gwt.user.client.ui.Widget w)
Specified by:
remove
in interfacecom.google.gwt.user.client.ui.HasWidgets
Overrides:
remove
in classcom.google.gwt.user.client.ui.SimplePanel
-
setPopupConnector
public void setPopupConnector(ComponentConnector newPopupComponent)
Sets the connector of the popup content widget. Should not be
null
.Parameters:
newPopupComponent
- the connector to set
-
setHideOnMouseOut
public 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. The default istrue
.Parameters:
hideOnMouseOut
-true
if this popup should hide when mouse is moved away,false
otherwise
-
getContainerElement
public com.google.gwt.user.client.Element getContainerElement()
Overrides:
getContainerElement
in classcom.google.gwt.user.client.ui.PopupPanel
-
onStateChanged
public void onStateChanged(StateChangeEvent stateChangeEvent)
Description copied from interface:
StateChangeEvent.StateChangeHandler
Notifies the event handler that the state has changed.
Specified by:
onStateChanged
in interfaceStateChangeEvent.StateChangeHandler
Parameters:
stateChangeEvent
- the state change event with details about the change
-
-