swingx
Version 2005-08-19

org.jdesktop.swingx.treetable
Class FileSystemModel

java.lang.Object
  extended by org.jdesktop.swingx.treetable.AbstractTreeTableModel
      extended by org.jdesktop.swingx.treetable.DefaultTreeTableModel
          extended by org.jdesktop.swingx.treetable.FileSystemModel
All Implemented Interfaces:
TreeModel, TreeTableModel

public class FileSystemModel
extends DefaultTreeTableModel

FileSystemModel


Field Summary
protected  boolean asksAllowsChildren
           
 
Fields inherited from class org.jdesktop.swingx.treetable.AbstractTreeTableModel
hierarchicalColumnClass, listenerList, root
 
Constructor Summary
FileSystemModel()
           
FileSystemModel(TreeNode root)
           
FileSystemModel(TreeNode root, boolean asksAllowsChildren)
           
 
Method Summary
 Object getChild(Object parent, int index)
          Returns the child of parent at index index in the parent's child array.
 int getChildCount(Object parent)
          Returns the number of children in the specified parent node.
 int getColumnCount()
          
 String getColumnName(int column)
          
 Object getValueAt(Object node, int column)
           
 
Methods inherited from class org.jdesktop.swingx.treetable.DefaultTreeTableModel
asksAllowsChildren, getPathToRoot, getPathToRoot, isLeaf, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, setAsksAllowsChildren, setRoot, setValueAt
 
Methods inherited from class org.jdesktop.swingx.treetable.AbstractTreeTableModel
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getColumnClass, getIndexOfChild, getListeners, getRoot, getTreeModelListeners, isCellEditable, removeTreeModelListener, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

asksAllowsChildren

protected boolean asksAllowsChildren
Constructor Detail

FileSystemModel

public FileSystemModel()

FileSystemModel

public FileSystemModel(TreeNode root)

FileSystemModel

public FileSystemModel(TreeNode root,
                       boolean asksAllowsChildren)
Method Detail

getChild

public Object getChild(Object parent,
                       int index)
Description copied from class: AbstractTreeTableModel
Returns the child of parent at index index in the parent's child array. parent must be a node previously obtained from this data source. This should not return null if index is a valid index for parent (that is index >= 0 && index < getChildCount(parent)).

Specified by:
getChild in interface TreeModel
Overrides:
getChild in class AbstractTreeTableModel
Parameters:
parent - a node in the tree, obtained from this data source
Returns:
the child of parent at index index, or null if the specified parent node is not a TreeNode.

getChildCount

public int getChildCount(Object parent)
Description copied from class: AbstractTreeTableModel
Returns the number of children in the specified parent node.

Specified by:
getChildCount in interface TreeModel
Overrides:
getChildCount in class AbstractTreeTableModel
Parameters:
parent - node whose child count is being requested
Returns:
the number of children in the specified parent node

getColumnCount

public int getColumnCount()
Description copied from class: AbstractTreeTableModel

Specified by:
getColumnCount in interface TreeTableModel
Overrides:
getColumnCount in class AbstractTreeTableModel

getColumnName

public String getColumnName(int column)
Description copied from class: AbstractTreeTableModel

Specified by:
getColumnName in interface TreeTableModel
Overrides:
getColumnName in class AbstractTreeTableModel

getValueAt

public Object getValueAt(Object node,
                         int column)
Specified by:
getValueAt in interface TreeTableModel
Overrides:
getValueAt in class DefaultTreeTableModel

swingx
Version 2005-08-19