public class TreeTableModelAdapter
extends javax.swing.table.AbstractTableModel
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.
Constructor and Description |
---|
TreeTableModelAdapter(TreeTableModel treeTableModel,
javax.swing.JTree tree) |
Modifier and Type | Method and Description |
---|---|
protected void |
delayedFireTableDataChanged()
Invokes fireTableDataChanged after all the pending events have been
processed.
|
java.lang.Class |
getColumnClass(int column) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int column) |
int |
getRowCount() |
TreeTableModel |
getTreeTableModel() |
java.lang.Object |
getValueAt(int row,
int column) |
boolean |
isCellEditable(int row,
int column) |
boolean |
isCoalescingEnabled()
Gets whether this model should coalesce delayed table changed events into
a single event.
|
protected java.lang.Object |
nodeForRow(int row) |
void |
setCoalescingEnabled(boolean coalesce)
Sets whether this model should coalesce delayed table changed events into
a single event.
|
void |
setValueAt(java.lang.Object value,
int row,
int column) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public TreeTableModelAdapter(TreeTableModel treeTableModel, javax.swing.JTree tree)
public int getColumnCount()
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public java.lang.Class getColumnClass(int column)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public int getRowCount()
protected java.lang.Object nodeForRow(int row)
public java.lang.Object getValueAt(int row, int column)
public boolean isCellEditable(int row, int column)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public void setValueAt(java.lang.Object value, int row, int column)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
protected void delayedFireTableDataChanged()
coalescingEnabled
property is true, then only one pending
invoke later is allowed to be queued. Since both this method and the
run method execute on the Swing thread, no synchronization is done.public TreeTableModel getTreeTableModel()
public void setCoalescingEnabled(boolean coalesce)
public boolean isCoalescingEnabled()