public class UIConditional extends com.vaadin.ui.CssLayout implements UIComponentWithCustomVisibility, UIRefreshHandler, UIComponentListeningOnRefresh
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandlercom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListenercom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener| Constructor and Description |
|---|
UIConditional(UIComponentData componentData)
Full constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
attachContent(UIComponent content)
Attaches the content component to the component tree.
|
protected RecordHolder |
getChildDefinition() |
UIComponentData |
getComponentData()
Returns the component definition (LSPS RecordHolder instance which is
subtype of "ui::Component") associated with this Vaadin component.
|
Set<UIComponent> |
getRefreshedComponents() |
com.vaadin.ui.AbstractComponent |
getWidget()
Returns the Vaadin widget which implements the UI part of this component.
|
void |
initChildren(boolean isFirstLoad)
Should initialize all visible child components.
|
boolean |
isShown()
Returns true if the LSPS UI component represented by this Vaadin
component is visible.
|
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 |
registerChildren()
Should register all child components in the screen.
|
String |
toString() |
void |
unregisterChildren()
Should unregister all child components in the screen.
|
protected void |
updateContentVisibility()
Updates the visibility of the content component.
|
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, addListener, beforeClientResponse, getComponent, getComponentCount, getComponentIndex, getCss, getState, iterator, readDesign, removeComponent, removeLayoutClickListener, removeListener, replaceComponent, writeDesignaddComponentAttachListener, addComponentDetachListener, addComponents, addListener, addListener, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, removeListener, removeListener, setHeight, setWidthaddContextClickListener, addListener, addShortcutListener, addStyleName, attach, detach, 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, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidthUndefinedaddAttachListener, 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, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResourceclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddComponents, addListener, addListener, getComponentIterator, moveComponentsFrom, removeAllComponents, removeListener, removeListeneraddListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisibleaddAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefinedforEach, spliteratorpublic UIConditional(UIComponentData componentData)
componentData - protected void attachContent(UIComponent content)
refresh() method.content - the content. May be null if the conditional has no child modeled.protected RecordHolder getChildDefinition()
public void initChildren(boolean isFirstLoad)
UIRefreshHandlerUIComponents.initChildren(java.util.List, boolean).initChildren in interface UIRefreshHandlerisFirstLoad - value of field UIFieldNames.IS_FIRST_LOAD
of the created init eventpublic void registerChildren()
UIRefreshHandlerUIScreen.registerUIComponent(UIComponent).registerChildren in interface UIRefreshHandlerpublic void unregisterChildren()
UIRefreshHandlerUIScreen.unregisterUIComponent(UIComponent).unregisterChildren in interface UIRefreshHandlerpublic void refresh()
UIComponentUIComponentData.getHints().refresh in interface UIComponentprotected void updateContentVisibility()
refresh().public void onChildRefresh(UIComponent child)
UIComponentListeningOnRefreshonChildRefresh in interface UIComponentListeningOnRefreshpublic boolean isShown()
UIComponentWithCustomVisibilityUIComponents.isShown(UIComponent).isShown in interface UIComponentWithCustomVisibilitypublic Set<UIComponent> getRefreshedComponents()
getRefreshedComponents in interface UIRefreshHandlerpublic UIComponentData getComponentData()
UIComponentgetComponentData in interface UIComponentpublic com.vaadin.ui.AbstractComponent getWidget()
UIComponentgetWidget in interface UIComponentCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.