THIS
- Self-referential generic THISITEM
- the item object type in the listingpublic interface FluentTreeGrid<THIS extends FluentTreeGrid<THIS,ITEM>,ITEM> extends FluentGrid<THIS,ITEM>, FluentHasHierarchicalDataProvider<THIS,ITEM>
TreeGrid
TreeGrid
FluentHasComponents.FluentComponentAttachDetachNotifier<THIS extends FluentHasComponents<THIS>>
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
FluentComponent.FluentFocusable<C extends FluentComponent.FluentFocusable<C>>
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
Modifier and Type | Method and Description |
---|---|
default THIS |
withCollapseListener(com.vaadin.event.CollapseEvent.CollapseListener<ITEM> listener)
Adds a CollapseListener to this TreeGrid.
|
default THIS |
withDataProvider(com.vaadin.data.provider.DataProvider<ITEM,?> dataProvider)
Sets the data provider for the tree grid.
|
default THIS |
withExpandListener(com.vaadin.event.ExpandEvent.ExpandListener<ITEM> listener)
Adds an ExpandListener to this TreeGrid.
|
default THIS |
withHierarchyColumn(com.vaadin.ui.Grid.Column<ITEM,?> column)
Set the column that displays the hierarchy of this grid's data.
|
default THIS |
withHierarchyColumn(String id)
Set the column that displays the hierarchy of this grid's data.
|
default THIS |
withItemCollapseAllowedProvider(com.vaadin.ui.ItemCollapseAllowedProvider<ITEM> provider)
Sets the item collapse allowed provider for this TreeGrid.
|
withColumnOrder, withColumnOrder, withColumnReorderingAllowed, withColumnResizeMode, withColumns, withDataProvider, withDefaultHeaderRow, withDescriptionGenerator, withDetailsGenerator, withFooterVisible, withFrozenColumnCount, withHeaderVisible, withHeightByRows, withItemClickListener, withRowHeight, withSelectionListener, withSelectionMode, withSort, withSort, withSort, withSort, withSortOrder, withSortOrder, withStyleGenerator
withCaption, withCaptionAsHtml, withComponentError, withData, withDescription, withDescription, withLocale, withResponsive, withShortcutListener, withStyleName
withAttachListener, withDetachListener
withContextClickListener
addContextClickListener, removeContextClickListener
withTabIndex
forEach, spliterator
withSortListener
withItems, withItems, withItems, withItems, withItems, withTreeData
getTreeData, setItems, setItems, setItems, setItems, setItems, setTreeData
withCaption, withEnabled, withIcon, withId, withParent, withPrimaryStyleName, withStyleName, withStyleName, withVisible
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
withFullHeight, withFullSize, withFullWidth, withHeight, withHeight, withSize, withUndefinedHeight, withUndefinedSize, withUndefinedWidth, withWidth, withWidth
default THIS withCollapseListener(com.vaadin.event.CollapseEvent.CollapseListener<ITEM> listener)
listener
- the listener to addCollapseEvent
,
TreeGrid.addCollapseListener(CollapseEvent.CollapseListener)
default THIS withExpandListener(com.vaadin.event.ExpandEvent.ExpandListener<ITEM> listener)
listener
- the listener to addExpandEvent
,
TreeGrid.addExpandListener(ExpandEvent.ExpandListener)
default THIS withDataProvider(com.vaadin.data.provider.DataProvider<ITEM,?> dataProvider)
withDataProvider
in interface FluentHasDataProvider<THIS extends FluentTreeGrid<THIS,ITEM>,ITEM>
dataProvider
- the data provider, not nullTreeGrid.setDataProvider(DataProvider)
default THIS withHierarchyColumn(com.vaadin.ui.Grid.Column<ITEM,?> column)
Setting a hierarchy column by calling this method also sets the column to be visible and not hidable.
Note: Changing the Renderer of the hierarchy column is not supported.
column
- the column to use for displaying hierarchyTreeGrid.setHierarchyColumn(Grid.Column)
default THIS withHierarchyColumn(String id)
Setting a hierarchy column by calling this method also sets the column to be visible and not hidable.
Note: Changing the Renderer of the hierarchy column is not supported.
id
- id of the column to use for displaying hierarchyGrid.Column.setId(String)
,
TreeGrid.setHierarchyColumn(String)
default THIS withItemCollapseAllowedProvider(com.vaadin.ui.ItemCollapseAllowedProvider<ITEM> provider)
true
for any item that the user can collapse.
Note: This callback will be accessed often when sending data to the client. The callback should not do any costly operations.
This method is a shortcut to method with the same name in
HierarchicalDataCommunicator
.
provider
- the item collapse allowed provider, not null
TreeGrid.setItemCollapseAllowedProvider(ItemCollapseAllowedProvider)
,
HierarchicalDataCommunicator.setItemCollapseAllowedProvider(ItemCollapseAllowedProvider)
Copyright © 2017 Jean-Christophe Fortier. All rights reserved.