public class UIPopup extends UIConditional implements UIComponentWithHints2, UIComponentListeningOnRefresh, UIComponentWithWrappers
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandler
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
Modifier and Type | Field and Description |
---|---|
boolean |
forceVisible
INTERNAL API, do not use.
|
protected com.vaadin.ui.Window |
uiWindow
Window instance associated with this popup
|
Constructor and Description |
---|
UIPopup(UIComponentData componentData) |
Modifier and Type | Method and Description |
---|---|
boolean |
applyHint(String hintName,
Variant<Object> newValue,
Variant<Object> oldValue)
Applies the given hint to this component.
|
void |
attach() |
protected void |
attachContent(UIComponent content)
Attaches the content component to the component tree.
|
protected com.vaadin.ui.Window |
createWindow() |
void |
detach() |
com.vaadin.ui.Window |
getWindow()
Gets the popup window.
|
com.vaadin.ui.Component |
getWrapper()
Returns the wrapper component.
|
protected boolean |
isModal() |
boolean |
isShown()
Returns true if the LSPS UI component represented by this Vaadin
component is visible.
|
void |
markAsDirty() |
void |
onChildRefresh(UIComponent child)
Invoked when a child UI component is refreshed, or when this method is called on child.
|
void |
refresh()
This method is called from LSPS rendering engine.
|
void |
removeWindow()
Used by dynamic popups when they are being destroyed.
|
void |
setId(String id) |
boolean |
unapplyHint(String hintName,
Variant<Object> oldValue)
The hint has been removed from the hint map.
|
protected void |
updateContentVisibility()
Updates the visibility of the content component.
|
getChildDefinition, getComponentData, getRefreshedComponents, getWidget, initChildren, registerChildren, toString, unregisterChildren
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, addListener, beforeClientResponse, getComponent, getComponentCount, getComponentIndex, getCss, getState, iterator, readDesign, removeComponent, removeLayoutClickListener, removeListener, replaceComponent, writeDesign
addComponentAttachListener, addComponentDetachListener, addComponents, addListener, addListener, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, removeListener, removeListener, setHeight, setWidth
addContextClickListener, addListener, addShortcutListener, addStyleName, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidthUndefined
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getComponentData, getWidget
addComponents, addListener, addListener, getComponentIterator, moveComponentsFrom, removeAllComponents, removeListener, removeListener
addListener, addStyleName, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined
forEach, spliterator
protected final com.vaadin.ui.Window uiWindow
public boolean forceVisible
public UIPopup(UIComponentData componentData)
componentData
- public void setId(String id)
setId
in interface com.vaadin.ui.Component
setId
in class com.vaadin.ui.AbstractComponent
protected com.vaadin.ui.Window createWindow()
protected void attachContent(UIComponent content)
UIConditional
UIConditional.refresh()
method.attachContent
in class UIConditional
content
- the content. May be null if the conditional has no child modeled.public void attach()
attach
in interface com.vaadin.server.ClientConnector
attach
in interface com.vaadin.ui.Component
attach
in class com.vaadin.ui.AbstractComponent
public void removeWindow()
public void detach()
detach
in interface com.vaadin.server.ClientConnector
detach
in class com.vaadin.ui.AbstractComponent
public void refresh()
UIComponent
UIComponentData.getHints()
.refresh
in interface UIComponent
refresh
in class UIConditional
public void markAsDirty()
markAsDirty
in interface com.vaadin.server.ClientConnector
markAsDirty
in class com.vaadin.server.AbstractClientConnector
protected void updateContentVisibility()
UIConditional
UIConditional.refresh()
.updateContentVisibility
in class UIConditional
protected boolean isModal()
public boolean applyHint(String hintName, Variant<Object> newValue, Variant<Object> oldValue)
UIComponentWithHints2
applyHint
in interface UIComponentWithHints2
hintName
- the hint name, not null.newValue
- variant containing the new hint value, never null, may contain null value.oldValue
- variant containing the previous hint value, never null, may contain null value if the hint was missing or the old value was null.public boolean unapplyHint(String hintName, Variant<Object> oldValue)
UIComponentWithHints2
unapplyHint
in interface UIComponentWithHints2
hintName
- the the hint name, not null.oldValue
- variant containing the previous hint value, never null, may contain null value if the old value was null.public void onChildRefresh(UIComponent child)
UIComponentListeningOnRefresh
onChildRefresh
in interface UIComponentListeningOnRefresh
onChildRefresh
in class UIConditional
public boolean isShown()
UIComponentWithCustomVisibility
UIComponents.isShown(UIComponent)
.isShown
in interface UIComponentWithCustomVisibility
isShown
in class UIConditional
public com.vaadin.ui.Component getWrapper()
UIComponentWithWrappers
getWrapper
in interface UIComponentWithWrappers
public com.vaadin.ui.Window getWindow()
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.