Package com.portal.pfc.ui
Class TreeTableModelAdapter
java.lang.Object
javax.swing.table.AbstractTableModel
com.portal.pfc.ui.TreeTableModelAdapter
- All Implemented Interfaces:
Serializable,TableModel
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.
original TreeTableModelAdapter class taken from:
Sun Microsystems, Inc.
Copyright 1997, 1998 by Sun Microsystems, Inc.
- Author:
- lruslen
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifies the addition of a new node.static final intIdentifies a change in the ordering of the existing data.Fields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvokes fireTableDataChanged after all the pending events have been processed.voidInvokes fireTableDataChanged after all the pending events have been processed.voidInvokes fireTableDataChanged after all the pending events have been processed.getColumnClass(int column) Implements the TableModel interface.intImplements the TableModel interface.getColumnName(int column) Implements the TableModel interface.intImplements the TableModel interface.getValueAt(int row, int column) Implements the TableModel interface.booleanisCellEditable(int row, int column) Implements the TableModel interface.nodeForRow(int row) Implements the TableModel interface.voidsetValueAt(Object value, int row, int column) Implements the TableModel interface.Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
SORT
public static final int SORTIdentifies a change in the ordering of the existing data.- See Also:
-
NODE_INSERT
public static final int NODE_INSERTIdentifies the addition of a new node.- See Also:
-
-
Constructor Details
-
TreeTableModelAdapter
-
-
Method Details
-
getColumnCount
public int getColumnCount()Implements the TableModel interface.- See Also:
-
getColumnName
Implements the TableModel interface.- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel- See Also:
-
getColumnClass
Implements the TableModel interface.- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel- See Also:
-
getRowCount
public int getRowCount()Implements the TableModel interface.- See Also:
-
nodeForRow
Implements the TableModel interface.- See Also:
-
getValueAt
Implements the TableModel interface.- See Also:
-
isCellEditable
public boolean isCellEditable(int row, int column) Implements the TableModel interface.- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel- See Also:
-
setValueAt
Implements the TableModel interface.- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel- See Also:
-
delayedFireTableDataChanged
public void delayedFireTableDataChanged()Invokes fireTableDataChanged after all the pending events have been processed. SwingUtilities.invokeLater is used to handle this. -
delayedFireTreeSorted
public void delayedFireTreeSorted()Invokes fireTableDataChanged after all the pending events have been processed. SwingUtilities.invokeLater is used to handle this. -
delayedFireNodesInserted
public void delayedFireNodesInserted()Invokes fireTableDataChanged after all the pending events have been processed. SwingUtilities.invokeLater is used to handle this.
-