gate.swing
Class TestJTreeTable.FileTTModel

java.lang.Object
  extended by gate.swing.AbstractTreeTableModel
      extended by gate.swing.TestJTreeTable.FileTTModel
All Implemented Interfaces:
TreeTableModel, TreeModel
Enclosing class:
TestJTreeTable

private class TestJTreeTable.FileTTModel
extends AbstractTreeTableModel


Field Summary
private  String[] columnNames
           
private static int DATE_COLUMN
           
private static int NAME_COLUMN
           
private  File root
           
private static int SIZE_COLUMN
           
 
Fields inherited from class gate.swing.AbstractTreeTableModel
listenerList
 
Constructor Summary
TestJTreeTable.FileTTModel(File root)
           
 
Method Summary
 Object getChild(Object parent, int index)
           
 int getChildCount(Object parent)
           
 Class getColumnClass(int column)
          Returns the type for column number column.
 int getColumnCount()
          Returns the number ofs availible column.
 String getColumnName(int column)
          Returns the name for column number column.
 Object getValueAt(Object node, int column)
          Returns the value to be displayed for node node, at column number column.
 boolean isCellEditable(Object node, int column)
          Indicates whether the the value for node node, at column number column is editable.
 
Methods inherited from class gate.swing.AbstractTreeTableModel
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, setValueAt, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

private File root

columnNames

private String[] columnNames

NAME_COLUMN

private static final int NAME_COLUMN
See Also:
Constant Field Values

SIZE_COLUMN

private static final int SIZE_COLUMN
See Also:
Constant Field Values

DATE_COLUMN

private static final int DATE_COLUMN
See Also:
Constant Field Values
Constructor Detail

TestJTreeTable.FileTTModel

public TestJTreeTable.FileTTModel(File root)
Method Detail

getChild

public Object getChild(Object parent,
                       int index)
Specified by:
getChild in interface TreeModel
Specified by:
getChild in class AbstractTreeTableModel

getChildCount

public int getChildCount(Object parent)
Specified by:
getChildCount in interface TreeModel
Specified by:
getChildCount in class AbstractTreeTableModel

getColumnClass

public Class getColumnClass(int column)
Description copied from interface: TreeTableModel
Returns the type for column number column.

Specified by:
getColumnClass in interface TreeTableModel
Specified by:
getColumnClass in class AbstractTreeTableModel

getColumnCount

public int getColumnCount()
Description copied from interface: TreeTableModel
Returns the number ofs availible column.

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

getColumnName

public String getColumnName(int column)
Description copied from interface: TreeTableModel
Returns the name for column number column.

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

getValueAt

public Object getValueAt(Object node,
                         int column)
Description copied from interface: TreeTableModel
Returns the value to be displayed for node node, at column number column.

Specified by:
getValueAt in interface TreeTableModel
Specified by:
getValueAt in class AbstractTreeTableModel

isCellEditable

public boolean isCellEditable(Object node,
                              int column)
Description copied from interface: TreeTableModel
Indicates whether the the value for node node, at column number column is editable.

Specified by:
isCellEditable in interface TreeTableModel
Specified by:
isCellEditable in class AbstractTreeTableModel