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 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 byCustomColumn
when its renderer changes.void
setDataSource(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:AbstractComponentConnector
Returns the widget associated with this paintable. The widget returned by this method must not changed during the life time of the paintable.- Specified by:
getWidget
in interfaceHasWidget
- Overrides:
getWidget
in classGridConnector
- Returns:
- The widget associated with this paintable
-
getState
public TreeGridState getState()
Description copied from class:AbstractConnector
Returns the shared state object for this connector. Override this method to define the shared state type for your connector.- Specified by:
getState
in interfaceComponentConnector
- Specified by:
getState
in interfaceServerConnector
- Overrides:
getState
in classGridConnector
- Returns:
- the current shared state (never null)
-
init
protected void init()
Description copied from class:AbstractConnector
Called when the connector has been initialized. Override this method to perform initialization of the connector.- Overrides:
init
in classGridConnector
-
setDataSource
public void setDataSource(DataSource<elemental.json.JsonObject> dataSource)
Description copied from interface:HasDataSource
Sets the data source for this Connector.- Specified by:
setDataSource
in interfaceHasDataSource
- Overrides:
setDataSource
in 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:
true
if the item is allowed to be collapsed,false
otherwise.
-
onColumnRendererChanged
public void onColumnRendererChanged(ColumnConnector.CustomColumn column)
Description copied from class:GridConnector
Method called byCustomColumn
when its renderer changes. This method is used to maintain hierarchical renderer wrap inTreeGrid
.- Overrides:
onColumnRendererChanged
in classGridConnector
- Parameters:
column
- the column which now has a new renderer
-
-