swingx
Version 2005-08-19

org.jdesktop.swingx
Class JXTreeTable.TreeTableDataAdapter

java.lang.Object
  extended by org.jdesktop.swingx.decorator.ComponentAdapter
      extended by org.jdesktop.swingx.JXTable.TableAdapter
          extended by org.jdesktop.swingx.JXTreeTable.TreeTableDataAdapter
Enclosing class:
JXTreeTable

protected static class JXTreeTable.TreeTableDataAdapter
extends JXTable.TableAdapter


Field Summary
 
Fields inherited from class org.jdesktop.swingx.decorator.ComponentAdapter
column, row, target
 
Constructor Summary
JXTreeTable.TreeTableDataAdapter(JXTreeTable component)
          Constructs a TreeTableDataAdapter for the specified target component.
 
Method Summary
 JXTreeTable getTreeTable()
           
 boolean hasFocus()
          Returns true if the cell identified by this adapter currently has focus; Otherwise, it returns false.
 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, getValueAt, isCellEditable, isSelected, isTestable, modelToView, setValueAt, viewToModel
 
Methods inherited from class org.jdesktop.swingx.decorator.ComponentAdapter
getComponent, getValue, refresh
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JXTreeTable.TreeTableDataAdapter

public JXTreeTable.TreeTableDataAdapter(JXTreeTable component)
Constructs a TreeTableDataAdapter for the specified target component.

Parameters:
component - the target component
Method Detail

getTreeTable

public JXTreeTable getTreeTable()

isExpanded

public boolean isExpanded()
Description copied from class: ComponentAdapter
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

hasFocus

public boolean hasFocus()
Description copied from class: JXTable.TableAdapter
Returns true if the cell identified by this adapter currently has focus; Otherwise, it returns false.

Overrides:
hasFocus in class JXTable.TableAdapter
Returns:
true if the cell identified by this adapter currently has focus; Otherwise, return false

isLeaf

public boolean isLeaf()
Description copied from class: ComponentAdapter
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

swingx
Version 2005-08-19