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.voidcollapse()Collapse this node.booleanvoidexpand()Expand this node.Get the caption of this node.com.vaadin.flow.component.ComponentGet the component associated with this node.getData()Get the ad-hoc data associated with this node.getNodes()Get child nodes.inthashCode()protected Breadcrumbsbooleanremove(BreadcrumbsTree.Node node) Remove a child node from this node or from one of its descendants.voidAssociate some ad-hoc data with this node.voidsetVisible(boolean visible) Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods 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, setIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Method Details
-
initContent
- Overrides:
initContentin classcom.vaadin.flow.component.Composite<Breadcrumbs>
-
getNodes
-
setVisible
public void setVisible(boolean visible) - Overrides:
setVisiblein 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. Ifnullis 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.
-