classes
protected ArrayList classes
headers
protected List headers
listener
protected EventListenerList listener
objects
protected ArrayList objects
readFunctors
protected ArrayList readFunctors
rootNode
protected TreeNode rootNode
writeFunctors
protected ArrayList writeFunctors
AbstractTreeTableModel
public AbstractTreeTableModel(String[] headers,
Functor[] readFunctors,
Functor[] writeFunctors,
Class[] editorClasses)
AbstractTreeTableModel
public AbstractTreeTableModel(TreeNode root)
AbstractTreeTableModel
public AbstractTreeTableModel(TreeNode root,
boolean editable)
addTableModelListener
public void addTableModelListener(TableModelListener l)
clearData
public void clearData()
fireTreeNodesChanged
public void fireTreeNodesChanged(TreeNode source,
Object[] path,
int[] indexes,
Object[] children)
getChild
public Object getChild(Object parent,
int index)
getChildCount
public int getChildCount(Object parent)
getColumnClass
public Class getColumnClass(int arg0)
getColumnCount
public int getColumnCount()
The implementation is exactly the same as ObjectTableModel.getColumnCount.
getColumnName
public String getColumnName(int columnIndex)
getRootNode
public Object getRootNode()
The root node for the TreeTable
getRowCount
public int getRowCount()
The implementation is exactly the same as ObjectTableModel.getRowCount.
getValueAt
public Object getValueAt(int rowIndex,
int columnIndex)
Subclasses need to implement the logic for the method and
return the value at the specific cell.
isCellEditable
public boolean isCellEditable(int rowIndex,
int columnIndex)
By default the abstract class returns true. It is up to subclasses
to override the implementation.
isLeaf
public boolean isLeaf(Object node)
the implementation checks if the Object is a treenode. If it is,
it returns isLeaf(), otherwise it returns false.
- whether object is a leaf node or not
nodeStructureChanged
public void nodeStructureChanged(TreeNode node)
removeTableModelListener
public void removeTableModelListener(TableModelListener l)
setValueAt
public void setValueAt(Object aValue,
int rowIndex,
int columnIndex)