|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.ui.treetable.AbstractTreeTableModel
org.jppf.ui.treetable.FileSystemModel
public class FileSystemModel
FileSystemModel is a TreeTableModel representing a hierarchical file system. Nodes in the FileSystemModel are FileNodes which, when they are directory nodes, cache their children to avoid repeatedly querying the real file system.
| Field Summary | |
|---|---|
static Integer |
ZERO
The the returned file length for directories. |
| Fields inherited from class org.jppf.ui.treetable.AbstractTreeTableModel |
|---|
listenerList, root |
| Constructor Summary | |
|---|---|
FileSystemModel()
Default constructor. |
|
| Method Summary | |
|---|---|
Object |
getChild(Object node,
int i)
|
int |
getChildCount(Object node)
|
protected Object[] |
getChildren(Object node)
Get the children of the specified node. |
Class |
getColumnClass(int column)
Returns the type for column number column. |
int |
getColumnCount()
Returns the number ofs available columns. |
String |
getColumnName(int column)
Returns the name for column number column. |
protected File |
getFile(Object node)
Get the file a node points to. |
Object |
getValueAt(Object node,
int column)
Returns the value to be displayed for node node, at column number column. |
boolean |
isLeaf(Object node)
|
| Methods inherited from class org.jppf.ui.treetable.AbstractTreeTableModel |
|---|
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getRoot, isCellEditable, removeTreeModelListener, setValueAt, valueForPathChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jppf.ui.treetable.TreeTableModel |
|---|
isCellEditable, setValueAt |
| Methods inherited from interface javax.swing.tree.TreeModel |
|---|
addTreeModelListener, getIndexOfChild, getRoot, removeTreeModelListener, valueForPathChanged |
| Field Detail |
|---|
public static final Integer ZERO
| Constructor Detail |
|---|
public FileSystemModel()
| Method Detail |
|---|
protected File getFile(Object node)
node - the node to get the file from.
File instance.protected Object[] getChildren(Object node)
node - the node to get the children of.
public int getChildCount(Object node)
getChildCount in interface TreeModel
public Object getChild(Object node,
int i)
getChild in interface TreeModelpublic boolean isLeaf(Object node)
isLeaf in interface TreeModelisLeaf in class AbstractTreeTableModelpublic int getColumnCount()
getColumnCount in interface TreeTableModelpublic String getColumnName(int column)
column.
getColumnName in interface TreeTableModelcolumn - the column number.
public Class getColumnClass(int column)
column.
getColumnClass in interface TreeTableModelgetColumnClass in class AbstractTreeTableModelcolumn - the column number.
public Object getValueAt(Object node,
int column)
node, at column number column.
getValueAt in interface TreeTableModelnode - the nodefor which to get the value.column - the comumn whzere the value is.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||