Top Description Methods
sun.jvm.hotspot.ui.treetable

public Interface TreeTableModel

extends TreeModel
Known Direct Implementers
sun.jvm.hotspot.ui.treetable.AbstractTreeTableModel, sun.jvm.hotspot.ui.treetable.SimpleTreeTableModel
Imports
javax.swing.tree.TreeModel

TreeTableModel is the model used by a JTreeTable. It extends TreeModel to add methods for getting information about the set of columns each node in the TreeTableModel may have. Each column, like a column in a TableModel, has a name and a type associated with it. Each node in the TreeTableModel can return a value for each of the columns and set that value if isCellEditable() returns true.
Authors
Philip Milne, Scott Violet

Method Summary

Modifier and TypeMethod and Description
public Class<T>
getColumnClass(int column)

Returns the type for column number column.

public int
getColumnCount()

Returns the number of available columns.

public String
getColumnName(int column)

Returns the name for column number column.

public Object
getValueAt(Object node, int column)

Returns the value to be displayed for node node, at column number column.

public boolean
isCellEditable(Object node, int column)

Indicates whether the value for node node, at column number column is editable.

public void
setValueAt(Object aValue, Object node, int column)

Sets the value for node node, at column number column.

Inherited from javax.swing.tree.TreeModel:
addTreeModelListenergetChildgetChildCountgetIndexOfChildgetRootisLeafremoveTreeModelListenervalueForPathChanged

Method Detail

getColumnClassback to summary
public Class<T> getColumnClass(int column)

Returns the type for column number column.

getColumnCountback to summary
public int getColumnCount()

Returns the number of available columns.

getColumnNameback to summary
public String getColumnName(int column)

Returns the name for column number column.

getValueAtback to summary
public Object getValueAt(Object node, int column)

Returns the value to be displayed for node node, at column number column.

isCellEditableback to summary
public boolean isCellEditable(Object node, int column)

Indicates whether the value for node node, at column number column is editable.

setValueAtback to summary
public void setValueAt(Object aValue, Object node, int column)

Sets the value for node node, at column number column.