public class CubaTree<T>
extends com.vaadin.ui.Tree<T>
implements com.vaadin.event.Action.ShortcutNotifier
com.vaadin.ui.Tree.ItemClick<T>, com.vaadin.ui.Tree.ItemClickListener<T>, com.vaadin.ui.Tree.TreeContextClickEvent<T>, com.vaadin.ui.Tree.TreeMultiSelectionModel<T>, com.vaadin.ui.Tree.TreeRenderer
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, 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
com.vaadin.server.Sizeable.Unit
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
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
debugId |
Constructor and Description |
---|
CubaTree() |
Modifier and Type | Method and Description |
---|---|
void |
collapseAll() |
void |
collapseItemWithChildren(T item) |
protected com.vaadin.ui.TreeGrid<T> |
createTreeGrid() |
void |
deselectAll() |
void |
expandAll() |
void |
expandItemWithParents(T item) |
void |
expandUpTo(int level) |
java.util.Collection<T> |
getChildren(T item) |
CubaTreeGrid<T> |
getCompositionRoot() |
java.lang.String |
getId() |
java.util.stream.Stream<T> |
getItems() |
protected T |
getParentItem(T item) |
protected com.vaadin.ui.Grid.SelectionMode |
getSelectionMode() |
boolean |
hasChildren(T item) |
void |
repaint() |
void |
setCubaId(java.lang.String cubaId) |
void |
setDataProvider(com.vaadin.data.provider.DataProvider<T,?> dataProvider) |
void |
setGridSelectionModel(com.vaadin.ui.components.grid.GridSelectionModel<T> model) |
void |
setId(java.lang.String id) |
addCollapseListener, addContextClickListener, addExpandListener, addItemClickListener, addSelectionListener, addStyleName, asMultiSelect, asSingleSelect, collapse, collapse, collapseRecursively, deselect, deserializeDeclarativeRepresentation, expand, expand, expandRecursively, fireCollapseEvent, fireExpandEvent, focus, getCaption, getComponentError, getContentMode, getDataProvider, getErrorMessage, getIcon, getItemCaptionGenerator, getItemCollapseAllowedProvider, getItemDescriptionGenerator, getItemIconGenerator, getPrimaryStyleName, getSelectedItems, getSelectionModel, getStyleGenerator, getStyleName, getTabIndex, isAutoRecalculateWidth, isCaptionAsHtml, isExpanded, readDesign, removeContextClickListener, removeStyleName, scrollTo, scrollTo, scrollToEnd, scrollToStart, select, serializeDeclarativeRepresentation, setAutoRecalculateWidth, setCaption, setCaptionAsHtml, setComponentError, setContentMode, setDescription, setDescription, setIcon, setItemCaptionGenerator, setItemCollapseAllowedProvider, setItemDescriptionGenerator, setItemDescriptionGenerator, setItemIconGenerator, setPrimaryStyleName, setRowHeight, setSelectionMode, setStyleGenerator, setStyleName, setStyleName, setTabIndex, writeDesign
beforeClientResponse, getDebugId, getDescription, getHeight, getHeightUnits, getState, getState, getWidth, getWidthUnits, isEnabled, iterator, setCompositionRoot, setDebugId, setEnabled, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined
addContextHelpIconClickListener, addListener, addShortcutListener, attach, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, getActionManager, getComponentErrorProvider, getContextHelpText, getCubaId, getCustomAttributes, getData, getLocale, getParent, getRequiredError, isConnectorEnabled, isContextHelpTextHtmlEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeListener, removeShortcutListener, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setData, setHeightFull, setLocale, setParent, setReadOnly, setRequiredError, setRequiredIndicatorVisible, setResponsive, setVisible, setWidthFull
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addShortcutListener, removeShortcutListener
getTreeData, setItems, setItems, setItems, setItems, setItems, setTreeData
addListener, addStyleNames, attach, getCubaId, getDescription, getLocale, getParent, getUI, isEnabled, isVisible, removeListener, removeStyleNames, setEnabled, setParent, setVisible
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected com.vaadin.ui.TreeGrid<T> createTreeGrid()
createTreeGrid
in class com.vaadin.ui.Tree<T>
public void setCubaId(java.lang.String cubaId)
setCubaId
in interface com.vaadin.ui.Component
setCubaId
in class com.vaadin.ui.AbstractComponent
public void setId(java.lang.String id)
setId
in interface com.vaadin.ui.Component
setId
in class com.vaadin.ui.Tree<T>
public java.lang.String getId()
getId
in interface com.vaadin.ui.Component
getId
in class com.vaadin.ui.Tree<T>
public CubaTreeGrid<T> getCompositionRoot()
getCompositionRoot
in class com.vaadin.ui.Composite
public void setGridSelectionModel(com.vaadin.ui.components.grid.GridSelectionModel<T> model)
protected com.vaadin.ui.Grid.SelectionMode getSelectionMode()
getSelectionMode
in class com.vaadin.ui.Tree<T>
public void setDataProvider(com.vaadin.data.provider.DataProvider<T,?> dataProvider)
public boolean hasChildren(T item)
public java.util.stream.Stream<T> getItems()
public void expandAll()
public void expandItemWithParents(T item)
public void collapseAll()
public void collapseItemWithChildren(T item)
public void expandUpTo(int level)
public void deselectAll()
public void repaint()