public final class TreeTableModelAdapter extends AbstractTableModel
Module: swing-util-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>swing-util-api</artifactId> </dependency>
listenerList
Constructor and Description |
---|
TreeTableModelAdapter(TreeTableModel treeTableModel,
JTree tree)
Creates a new TreeTableModelAdapter object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
delayedFireTableDataChanged()
Invokes fireTableDataChanged after all the pending events have been
processed.
|
Class |
getColumnClass(int column)
Returns the class of the column at the given column number.
|
int |
getColumnCount()
Returns the number of columns in the TreeTabelModel.
|
String |
getColumnName(int column)
Returns the column name at the given column number.
|
int |
getRowCount()
Returns the number of rows in the
JTree . |
Object |
getValueAt(int row,
int column)
Returns the value at the given row and column.
|
boolean |
isCellEditable(int row,
int column)
Returns whether the cell at the given location is editable.
|
void |
setValueAt(Object value,
int row,
int column)
Sets the value at the given row and column..
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public TreeTableModelAdapter(TreeTableModel treeTableModel, JTree tree)
treeTableModel
- The tree table model.tree
- The tree itself.public int getColumnCount()
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- The column number.public Class getColumnClass(int column)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
column
- The column number.public int getRowCount()
JTree
.public Object getValueAt(int row, int column)
row
- The row number.column
- The column number.public boolean isCellEditable(int row, int column)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
row
- The row number.column
- The column number.public void setValueAt(Object value, int row, int column)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
value
- The value to set to.row
- The row number.column
- The column number.protected void delayedFireTableDataChanged()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.