org.jdesktop.swingx.treetable
Class FileSystemModel
java.lang.Object
org.jdesktop.swingx.treetable.AbstractTreeTableModel
org.jdesktop.swingx.treetable.DefaultTreeTableModel
org.jdesktop.swingx.treetable.FileSystemModel
- All Implemented Interfaces:
- TreeModel, TreeTableModel
public class FileSystemModel
- extends DefaultTreeTableModel
FileSystemModel
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 |
asksAllowsChildren
protected boolean asksAllowsChildren
FileSystemModel
public FileSystemModel()
FileSystemModel
public FileSystemModel(TreeNode root)
FileSystemModel
public FileSystemModel(TreeNode root,
boolean asksAllowsChildren)
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