|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.jppf.ui.treetable.TreeTableModelAdapter
public class TreeTableModelAdapter
This is a wrapper class takes a TreeTableModel and implements the table model interface. The implementation is trivial, with all of the event dispatching support provided by the superclass: the AbstractTableModel.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
TreeTableModelAdapter(TreeTableModel treeTableModel,
JTree tree)
Initialize this model adapter with the specified tree table model and JTree. |
|
| Method Summary | |
|---|---|
protected void |
delayedFireTableDataChanged()
Invokes fireTableDataChanged after all the pending events have been processed. |
String |
dumpTreePaths(TreePath[] paths)
Dump the specified tree paths to a string. |
Class |
getColumnClass(int column)
Returns Object.class regardless of columnIndex. |
int |
getColumnCount()
Get the number of columns in the model. |
String |
getColumnName(int column)
Get the name of the column at the specified index. |
int |
getRowCount()
Get the number of rows in the model. |
TreePath[] |
getSelectedPaths()
Get the currently selected paths in the tree. |
TreeTableModel |
getTreeTableModel()
Get the tree table model wrapped by this class. |
Object |
getValueAt(int row,
int column)
Get the value of the cell at the specified coordinates. |
boolean |
isCellEditable(int row,
int column)
Determine whether the cell at the specified coordinates is editable. |
protected Object |
nodeForRow(int row)
Get the node for the specified row. |
void |
setSelectedPaths(TreePath[] paths)
Set the currently selected paths in the tree. |
void |
setValueAt(Object value,
int row,
int column)
Set the value of the cell at the specified coordinates. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeTableModelAdapter(TreeTableModel treeTableModel,
JTree tree)
treeTableModel - the tree table model.tree - the underlying JTree.| Method Detail |
|---|
public int getColumnCount()
TableModel.getColumnCount()public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumn - the index of the column.
AbstractTableModel.getColumnName(int)public Class getColumnClass(int column)
Object.class regardless of columnIndex.
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelcolumn - the column being queried.
Object.class object.AbstractTableModel.getColumnClass(int)public int getRowCount()
TableModel.getRowCount()protected Object nodeForRow(int row)
row - the row index.
public Object getValueAt(int row,
int column)
row - the row coordinate.column - the column coordinate.
TableModel.getValueAt(int, int)
public boolean isCellEditable(int row,
int column)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelrow - the row coordinate.column - the column coordinate.
AbstractTableModel.isCellEditable(int, int)
public void setValueAt(Object value,
int row,
int column)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelvalue - the value to set on the specified cell.row - the row coordinate.column - the column coordinate.AbstractTableModel.setValueAt(java.lang.Object, int, int)protected void delayedFireTableDataChanged()
public TreePath[] getSelectedPaths()
TreePath objects.public void setSelectedPaths(TreePath[] paths)
paths - an array of TreePath objects.public String dumpTreePaths(TreePath[] paths)
paths - the paths to dump.
TreePath objects.public TreeTableModel getTreeTableModel()
TreeTableModel instance.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||