public class TreeGridConnector extends GridConnector
SIGNIFICANT_MOVE_THRESHOLD| Constructor and Description |
|---|
TreeGridConnector()
Constructs a connector for a TreeGrid component.
|
| Modifier and Type | Method and Description |
|---|---|
TreeGridState |
getState()
Returns the shared state object for this connector.
|
TreeGrid |
getWidget()
Returns the widget associated with this paintable.
|
protected void |
init()
Called when the connector has been initialized.
|
static boolean |
isCollapseAllowed(elemental.json.JsonObject row)
Checks if the item can be collapsed.
|
void |
onColumnRendererChanged(ColumnConnector.CustomColumn column)
Method called by
CustomColumn when its renderer changes. |
void |
setDataSource(DataSource<elemental.json.JsonObject> dataSource)
Sets the data source for this Connector.
|
addColumn, addConnectorHierarchyChangeHandler, detailsRefreshed, getChildComponents, getColumn, getColumnId, getTooltipInfo, hasTooltip, isWorkPending, layout, onStateChanged, onUnregister, removeColumnMapping, sendContextClickEvent, setChildComponents, singleDetailsOpened, updateCaption, updateColumnsgetDataSource, getRowData, getRowKey, isRowSelectedisReadOnly, isRequiredIndicatorVisible, updateWidgetStyleNamescreateWidget, delegateCaptionHandling, flush, getIcon, getIconUri, getLayoutManager, isErrorIndicatorVisible, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onDragSourceAttached, onDragSourceDetached, onDropTargetAttached, onDropTargetDetached, registerTouchHandlers, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, shouldHandleLongTap, unregisterTouchHandlers, updateComponentSize, updateComponentSize, updateEnabledState, updateWidgetSizeaddStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, getTag, hasEventListener, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, unregisterRpcclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelegateCaptionHandling, flush, getLayoutManager, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, setWidgetEnabledaddStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getRpcImplementations, getTag, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, updateEnabledStategetConnectorIdpublic TreeGridConnector()
public TreeGrid getWidget()
AbstractComponentConnectorgetWidget in interface HasWidgetgetWidget in class GridConnectorpublic TreeGridState getState()
AbstractConnectorgetState in interface ComponentConnectorgetState in interface ServerConnectorgetState in class GridConnectorprotected void init()
AbstractConnectorinit in class GridConnectorpublic void setDataSource(DataSource<elemental.json.JsonObject> dataSource)
HasDataSourcesetDataSource in interface HasDataSourcesetDataSource in class GridConnectordataSource - the new data source, not nullpublic static boolean isCollapseAllowed(elemental.json.JsonObject row)
row - the item rowtrue if the item is allowed to be collapsed,
false otherwise.public void onColumnRendererChanged(ColumnConnector.CustomColumn column)
GridConnectorCustomColumn when its renderer changes. This
method is used to maintain hierarchical renderer wrap in
TreeGrid.onColumnRendererChanged in class GridConnectorcolumn - the column which now has a new rendererCopyright © 2021 Vaadin Ltd. All rights reserved.