public class SimpleTreeTableModel extends SimpleTreeModel implements TreeTableModel
Constructor and Description |
---|
SimpleTreeTableModel() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getColumnClass(int column)
Returns the type for column number
column . |
int |
getColumnCount()
Returns the number ofs availible column.
|
java.lang.String |
getColumnName(int column)
Returns the name for column number
column . |
java.lang.Object |
getValueAt(java.lang.Object node,
int column)
Returns the value to be displayed for node
node ,
at column number column . |
boolean |
getValuesEditable()
Defaults to true
|
boolean |
isCellEditable(java.lang.Object node,
int column)
Indicates whether the the value for node
node ,
at column number column is editable. |
void |
setValueAt(java.lang.Object aValue,
java.lang.Object node,
int column)
Sets the value for node
node ,
at column number column . |
void |
setValuesEditable(boolean val)
Defaults to true
|
addTreeModelListener, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, setRoot, valueForPathChanged
public int getColumnCount()
TreeTableModel
getColumnCount
in interface TreeTableModel
public java.lang.String getColumnName(int column)
TreeTableModel
column
.getColumnName
in interface TreeTableModel
public java.lang.Class getColumnClass(int column)
TreeTableModel
column
.getColumnClass
in interface TreeTableModel
public java.lang.Object getValueAt(java.lang.Object node, int column)
TreeTableModel
node
,
at column number column
.getValueAt
in interface TreeTableModel
public boolean isCellEditable(java.lang.Object node, int column)
TreeTableModel
node
,
at column number column
is editable.isCellEditable
in interface TreeTableModel
public void setValueAt(java.lang.Object aValue, java.lang.Object node, int column)
TreeTableModel
node
,
at column number column
.setValueAt
in interface TreeTableModel
public boolean getValuesEditable()
public void setValuesEditable(boolean val)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.