1 package pl.polidea.treeview;
4 * Information about the node.
7 * type of the id for the tree
9 public class TreeNodeInfo<T> {
11 private final int level;
12 private final boolean withChildren;
13 private final boolean visible;
14 private final boolean expanded;
17 * Creates the node information.
24 * whether the node has children.
26 * whether the tree node is visible.
28 * whether the tree node is expanded
31 public TreeNodeInfo(final T id, final int level,
32 final boolean withChildren, final boolean visible,
33 final boolean expanded) {
37 this.withChildren = withChildren;
38 this.visible = visible;
39 this.expanded = expanded;
46 public boolean isWithChildren() {
50 public boolean isVisible() {
54 public boolean isExpanded() {
58 public int getLevel() {
63 public String toString() {
64 return "TreeNodeInfo [id=" + id + ", level=" + level
65 + ", withChildren=" + withChildren + ", visible=" + visible
66 + ", expanded=" + expanded + "]";