Class Node
java.lang.Object
org.eclipse.nebula.widgets.nattable.columnCategories.Node
- All Implemented Interfaces:
Serializable
Represents a node of the Tree class.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a child to the list of children for this Node.addChildCategory(String categoryName) voidaddChildColumnIndexes(int... columnIndexes) Return the children of Node.getData()intReturns the number of immediate children of this Node.getType()voidinsertChildAt(int index, Node child) Inserts a Node at the specified position in the child list.voidremoveChildAt(int index) Remove the Node element at index index of the List<Node>.voidvoidvoidtoString()
-
Constructor Details
-
Node
-
Node
-
-
Method Details
-
getParent
-
setParent
-
setType
-
getType
-
getChildren
Return the children of Node. The Tree is represented by a single root Node whose children are represented by a List<Node>. Each of these Node elements in the List can have children. The getChildren() method will return the children of a Node.- Returns:
- the children of Node
-
getNumberOfChildren
public int getNumberOfChildren()Returns the number of immediate children of this Node.- Returns:
- the number of immediate children.
-
addChild
Adds a child to the list of children for this Node. The addition of the first child will create a new List<Node>.- Parameters:
child- a Node object to set.- Returns:
- Child node just added
-
addChildCategory
-
addChildColumnIndexes
public void addChildColumnIndexes(int... columnIndexes) -
insertChildAt
Inserts a Node at the specified position in the child list. Will throw an ArrayIndexOutOfBoundsException if the index does not exist.- Parameters:
index- the position to insert at.child- the Node object to insert.
-
removeChildAt
public void removeChildAt(int index) Remove the Node element at index index of the List<Node>.- Parameters:
index- the index of the element to delete.
-
getData
-
setData
-
toString
-