Package org.bgerp.model.base.tree
Class TreeItem<T,C extends TreeItem<T,C>>
java.lang.Object
org.bgerp.model.base.tree.TreeItem<T,C>
- Direct Known Subclasses:
IdStringTitleTreeItem
,IdTitleTreeItem
,InetDevice
,InetService
,ProcessType
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionFinds node by ID over the node itself and all the children recursively.int
Deprecated.getIcon()
getId()
getTitle()
protected boolean
protected abstract boolean
protected boolean
isRootNodeWithIntegerId
(Integer id, Integer parentId) void
setChildren
(List<C> children) void
void
setParentId
(T parentId) void
-
Field Details
-
id
-
parentId
-
title
-
children
-
-
Constructor Details
-
TreeItem
public TreeItem()
-
-
Method Details
-
getId
-
setId
-
getParentId
-
setParentId
-
getTitle
-
setTitle
-
getChildren
-
getChilds
Deprecated. -
setChildren
-
addChild
-
getChild
-
getById
Finds node by ID over the node itself and all the children recursively.- Parameters:
id
- the ID.- Returns:
- found node or
null
.
-
getChildCount
public int getChildCount() -
getChildIds
-
isInSet
-
getAllChildIds
- Returns:
- set with the node ID and all child IDs from all levels.
-
getIcon
- Returns:
- icon HTML.
-
isRootNode
protected abstract boolean isRootNode() -
isRootNodeWithIntegerId
-
getTextStyle
- Returns:
- style attribute for text span.
-