public abstract class AbstractHasComponentsConnector extends AbstractComponentConnector implements HasComponentsConnector, ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler
SIGNIFICANT_MOVE_THRESHOLD
Constructor and Description |
---|
AbstractHasComponentsConnector()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addConnectorHierarchyChangeHandler(ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler handler)
Adds a handler that is called whenever the child hierarchy of this
connector has been updated by the server.
|
List<ComponentConnector> |
getChildComponents()
Returns the child components for this connector.
|
void |
setChildComponents(List<ComponentConnector> childComponents)
Sets the children for this connector.
|
createWidget, delegateCaptionHandling, flush, getIcon, getIconUri, getLayoutManager, getState, getTooltipInfo, getWidget, hasTooltip, isReadOnly, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onStateChanged, onUnregister, registerTouchHandlers, sendContextClickEvent, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, shouldHandleLongTap, unregisterTouchHandlers, updateComponentSize, updateComponentSize, updateEnabledState, updateWidgetSize, updateWidgetStyleNames
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, hasEventListener, init, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, unregisterRpc
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
updateCaption
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, getState, hasEventListener, isEnabled, onUnregister, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, updateEnabledState
getConnectorId
onConnectorHierarchyChange
public AbstractHasComponentsConnector()
public List<ComponentConnector> getChildComponents()
HasComponentsConnector
The children for this connector are defined as all HasComponents
s
whose parent is this HasComponentsConnector
.
Note that the method ServerConnector.getChildren()
can return a
larger list of children including both the child components and any
extensions registered for the connector.
getChildComponents
in interface HasComponentsConnector
public void setChildComponents(List<ComponentConnector> childComponents)
HasComponentsConnector
Note that calling this method does not call
ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler.onConnectorHierarchyChange(ConnectorHierarchyChangeEvent)
. The event method is called only when the hierarchy has been updated for
all connectors.
Note that this method is separate from
ServerConnector.setChildren(List)
and contains only child
components. Both methods are called separately by the framework if the
connector implements HasComponentsConnector
.
setChildComponents
in interface HasComponentsConnector
childComponents
- The new child connectors (components only)public com.google.gwt.event.shared.HandlerRegistration addConnectorHierarchyChangeHandler(ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler handler)
HasComponentsConnector
addConnectorHierarchyChangeHandler
in interface HasComponentsConnector
handler
- The handler that should be added.Copyright © 2016 Vaadin Ltd. All rights reserved.