|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel oracle.ide.controls.TreeTableModelAdapter
The code in this class is derived from the source from the JTreeTable article that can be found at: http://java.sun.com/products/jfc/tsc/articles/treetable2/index.html.
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,
javax.swing.JTree tree)
|
Method Summary | |
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()
|
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)
|
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, javax.swing.JTree tree)
Method Detail |
public int getColumnCount()
public java.lang.String getColumnName(int column)
public java.lang.Class getColumnClass(int column)
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)
public void setValueAt(java.lang.Object value, int row, int column)
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 void setCoalescingEnabled(boolean coalesce)
public boolean isCoalescingEnabled()
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.