org.jdesktop.swingx
Class JXTreeTable.TreeTableDataAdapter
java.lang.Object
org.jdesktop.swingx.decorator.ComponentAdapter
org.jdesktop.swingx.JXTable.TableAdapter
org.jdesktop.swingx.JXTreeTable.TreeTableDataAdapter
- Enclosing class:
- JXTreeTable
protected static class JXTreeTable.TreeTableDataAdapter
- extends JXTable.TableAdapter
Method Summary |
int |
getDepth()
Returns the depth of this row in the hierarchy where the root is 0. |
JXTreeTable |
getTreeTable()
|
boolean |
isExpanded()
Returns true if the cell identified by this adapter is currently expanded;
Otherwise, it returns false. |
boolean |
isHierarchical()
Returns true if the cell identified by this adapter displays the hierarchical node;
Otherwise, it returns false. |
boolean |
isLeaf()
Returns true if the cell identified by this adapter is a leaf node;
Otherwise, it returns false. |
Methods inherited from class org.jdesktop.swingx.JXTable.TableAdapter |
getColumnByModelIndex, getColumnCount, getColumnIdentifier, getColumnName, getFilteredValueAt, getRowCount, getTable, getValue, getValueAt, hasFocus, isCellEditable, isEditable, isSelected, isTestable, modelToView, setValueAt, viewToModel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JXTreeTable.TreeTableDataAdapter
public JXTreeTable.TreeTableDataAdapter(JXTreeTable component)
- Constructs a
TreeTableDataAdapter
for the specified
target component.
- Parameters:
component
- the target component
getTreeTable
public JXTreeTable getTreeTable()
isExpanded
public boolean isExpanded()
- Returns true if the cell identified by this adapter is currently expanded;
Otherwise, it returns false. For components that do not support
hierarchical data, this method always returns true because the cells in
such components can never be collapsed.
- Overrides:
isExpanded
in class ComponentAdapter
- Returns:
- true if the cell identified by this adapter is currently expanded;
Otherwise, return false
getDepth
public int getDepth()
- Returns the depth of this row in the hierarchy where the root is 0. For
components that do not contain hierarchical data, this method returns 1.
- Overrides:
getDepth
in class ComponentAdapter
- Returns:
- the depth for this adapter
isLeaf
public boolean isLeaf()
- Returns true if the cell identified by this adapter is a leaf node;
Otherwise, it returns false. For components that do not support
hierarchical data, this method always returns true because the cells in
such components can never have children.
- Overrides:
isLeaf
in class ComponentAdapter
- Returns:
- true if the cell identified by this adapter is a leaf node;
Otherwise, return false
isHierarchical
public boolean isHierarchical()
- Description copied from class:
ComponentAdapter
- Returns true if the cell identified by this adapter displays the hierarchical node;
Otherwise, it returns false. For components that do not support
hierarchical data, this method always returns false because the cells in
such components can never have children.
- Overrides:
isHierarchical
in class ComponentAdapter
- Returns:
- true if the cell identified by this adapter displays hierarchical
nodes; false otherwise