Package com.vaadin.client.ui.treegrid
Class TreeGridConnector
-
- All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler,StateChangeEvent.StateChangeHandler,ComponentConnector,HasDataSource,DeferredWorker,HasComponentsConnector,HasWidget,ServerConnector,HasErrorIndicator,HasRequiredIndicator,ManagedLayout,SimpleManagedLayout,Connector,Serializable
public class TreeGridConnector extends GridConnector
A connector class for the TreeGrid component.- Since:
- 8.1
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.vaadin.client.ui.AbstractComponentConnector
SIGNIFICANT_MOVE_THRESHOLD
-
-
Constructor Summary
Constructors Constructor Description TreeGridConnector()Constructs a connector for a TreeGrid component.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TreeGridStategetState()Returns the shared state object for this connector.TreeGridgetWidget()Returns the widget associated with this paintable.protected voidinit()Called when the connector has been initialized.static booleanisCollapseAllowed(elemental.json.JsonObject row)Checks if the item can be collapsed.voidonColumnRendererChanged(ColumnConnector.CustomColumn column)Method called byCustomColumnwhen its renderer changes.voidsetDataSource(DataSource<elemental.json.JsonObject> dataSource)Sets the data source for this Connector.-
Methods inherited from class com.vaadin.client.connectors.grid.GridConnector
addColumn, addConnectorHierarchyChangeHandler, detailsRefreshed, getChildComponents, getColumn, getColumnId, getTooltipInfo, hasTooltip, isReadOnly, isWorkPending, layout, onStateChanged, onUnregister, removeColumnMapping, sendContextClickEvent, setChildComponents, singleDetailsOpened, updateCaption, updateColumns
-
Methods inherited from class com.vaadin.client.connectors.AbstractListingConnector
getDataSource, getRowData, getRowKey, isRowSelected
-
Methods inherited from class com.vaadin.client.ui.AbstractFieldConnector
isRequiredIndicatorVisible, updateWidgetStyleNames
-
Methods inherited from class com.vaadin.client.ui.AbstractComponentConnector
createWidget, delegateCaptionHandling, flush, getIcon, getIconUri, getLayoutManager, isErrorIndicatorVisible, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onDragSourceAttached, onDragSourceDetached, onDropTargetAttached, onDropTargetDetached, registerTouchHandlers, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, shouldHandleLongTap, unregisterTouchHandlers, updateComponentSize, updateComponentSize, updateEnabledState, updateWidgetSize
-
Methods inherited from class com.vaadin.client.ui.AbstractConnector
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, getTag, hasEventListener, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, unregisterRpc
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.client.ComponentConnector
delegateCaptionHandling, flush, getLayoutManager, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, setWidgetEnabled
-
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
-
Methods inherited from interface com.vaadin.client.ServerConnector
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, getTag, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, updateEnabledState
-
-
-
-
Method Detail
-
getWidget
public TreeGrid getWidget()
Description copied from class:AbstractComponentConnectorReturns the widget associated with this paintable. The widget returned by this method must not changed during the life time of the paintable.- Specified by:
getWidgetin interfaceHasWidget- Overrides:
getWidgetin classGridConnector- Returns:
- The widget associated with this paintable
-
getState
public TreeGridState getState()
Description copied from class:AbstractConnectorReturns the shared state object for this connector. Override this method to define the shared state type for your connector.- Specified by:
getStatein interfaceComponentConnector- Specified by:
getStatein interfaceServerConnector- Overrides:
getStatein classGridConnector- Returns:
- the current shared state (never null)
-
init
protected void init()
Description copied from class:AbstractConnectorCalled when the connector has been initialized. Override this method to perform initialization of the connector.- Overrides:
initin classGridConnector
-
setDataSource
public void setDataSource(DataSource<elemental.json.JsonObject> dataSource)
Description copied from interface:HasDataSourceSets the data source for this Connector.- Specified by:
setDataSourcein interfaceHasDataSource- Overrides:
setDataSourcein classGridConnector- Parameters:
dataSource- the new data source, not null
-
isCollapseAllowed
public static boolean isCollapseAllowed(elemental.json.JsonObject row)
Checks if the item can be collapsed.- Parameters:
row- the item row- Returns:
trueif the item is allowed to be collapsed,falseotherwise.
-
onColumnRendererChanged
public void onColumnRendererChanged(ColumnConnector.CustomColumn column)
Description copied from class:GridConnectorMethod called byCustomColumnwhen its renderer changes. This method is used to maintain hierarchical renderer wrap inTreeGrid.- Overrides:
onColumnRendererChangedin classGridConnector- Parameters:
column- the column which now has a new renderer
-
-