Package com.storedobject.vaadin
Class BreadcrumbsTree.Node
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<Breadcrumbs>
com.storedobject.vaadin.BreadcrumbsTree.Node
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasStyle
,Serializable
- Enclosing class:
BreadcrumbsTree
The node of the breadcrumb tree.
- Author:
- Syam
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionAdd a new node under this node.void
collapse()
Collapse this node.boolean
void
expand()
Expand this node.Get the caption of this node.com.vaadin.flow.component.Component
Get the component associated with this node.getData()
Get the ad-hoc data associated with this node.getNodes()
Get child nodes.int
hashCode()
protected Breadcrumbs
boolean
remove
(BreadcrumbsTree.Node node) Remove a child node from this node or from one of its descendants.void
Associate some ad-hoc data with this node.void
setVisible
(boolean visible) Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Method Details
-
initContent
- Overrides:
initContent
in classcom.vaadin.flow.component.Composite<Breadcrumbs>
-
getNodes
-
setVisible
public void setVisible(boolean visible) - Overrides:
setVisible
in classcom.vaadin.flow.component.Component
-
expand
public void expand()Expand this node. -
collapse
public void collapse()Collapse this node. -
add
Add a new node under this node.- Parameters:
caption
- Caption of the new node.component
- Component associated with the new node. Ifnull
is passed, no associated component will be displayed when the node is selected.- Returns:
- The newly added node.
-
remove
Remove a child node from this node or from one of its descendants.- Parameters:
node
- Node to remove.- Returns:
- True if removed. Otherwise, false.
-
equals
-
hashCode
-
getCaption
-
getComponent
public com.vaadin.flow.component.Component getComponent()Get the component associated with this node.- Returns:
- Associated component. The associated component will be displayed when the node is displayed, otherwise, it will be hidden.
-
getData
-
setData
Associate some ad-hoc data with this node.- Parameters:
data
- Data to keep.
-