Package io.deephaven.web.client.api.tree
Class JsTreeTable.TreeSubscription.TreeRowImpl
java.lang.Object
io.deephaven.web.client.api.subscription.AbstractTableSubscription.SubscriptionRow
io.deephaven.web.client.api.tree.JsTreeTable.TreeSubscription.TreeRowImpl
- All Implemented Interfaces:
TableData.Row
,TreeViewportData.TreeRow
- Enclosing class:
- JsTreeTable.TreeSubscription
public class JsTreeTable.TreeSubscription.TreeRowImpl
extends AbstractTableSubscription.SubscriptionRow
implements TreeViewportData.TreeRow
-
Field Summary
Fields inherited from class io.deephaven.web.client.api.subscription.AbstractTableSubscription.SubscriptionRow
index, indexCached
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendKeyData
(Object[][] keyTableData, double action) int
depth()
The number of levels above this node; zero for top level nodes.jsinterop.base.Any
boolean
True if this node has children and can be expanded; false otherwise.boolean
True if this node is currently expanded to show its children; false otherwise.Methods inherited from class io.deephaven.web.client.api.subscription.AbstractTableSubscription.SubscriptionRow
getIndex
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.web.client.api.TableData.Row
getIndex
-
Constructor Details
-
TreeRowImpl
-
-
Method Details
-
isExpanded
public boolean isExpanded()Description copied from interface:TreeViewportData.TreeRow
True if this node is currently expanded to show its children; false otherwise. Those children will be the rows below this one with a greater depth than this one.- Specified by:
isExpanded
in interfaceTreeViewportData.TreeRow
- Returns:
- boolean
-
hasChildren
public boolean hasChildren()Description copied from interface:TreeViewportData.TreeRow
True if this node has children and can be expanded; false otherwise. Note that this value may change when the table updates, depending on the table's configuration.- Specified by:
hasChildren
in interfaceTreeViewportData.TreeRow
- Returns:
- boolean
-
depth
public int depth()Description copied from interface:TreeViewportData.TreeRow
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.- Specified by:
depth
in interfaceTreeViewportData.TreeRow
- Returns:
- int
-
appendKeyData
-
get
- Specified by:
get
in interfaceTableData.Row
- Overrides:
get
in classAbstractTableSubscription.SubscriptionRow
-
getFormat
- Specified by:
getFormat
in interfaceTableData.Row
- Overrides:
getFormat
in classAbstractTableSubscription.SubscriptionRow
-