Package io.deephaven.web.client.api.tree
Interface TreeViewportData.TreeRow
- All Superinterfaces:
TableData.Row
- All Known Implementing Classes:
JsTreeTable.TreeSubscription.TreeRowImpl
- Enclosing interface:
TreeViewportData
Row implementation that also provides additional read-only properties. Represents visible rows in the table, but
with additional properties to reflect the tree structure.
-
Method Summary
Modifier and TypeMethodDescriptionintdepth()The number of levels above this node; zero for top level nodes.booleantrueif this node has children and can be expanded;falseotherwise.booleantrueif this node is currently expanded to show its children;falseotherwise.Methods inherited from interface io.deephaven.web.client.api.TableData.Row
get, getFormat, getIndex
-
Method Details
-
isExpanded
@JsProperty(name="isExpanded") boolean isExpanded()trueif this node is currently expanded to show its children;falseotherwise. Those children will be the rows below this one with a greater depth than this one.- Returns:
- boolean
-
hasChildren
@JsProperty(name="hasChildren") boolean hasChildren()trueif this node has children and can be expanded;falseotherwise. Note that this value may change when the table updates, depending on the table's configuration.- Returns:
- boolean
-
depth
@JsProperty(name="depth") int depth()The number of levels above this node; zero for top level nodes. Generally used by the UI to indent the row and its expand/collapse icon.- Returns:
- int
-