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 int
Identifies the addition of a new node.static final int
Identifies 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 TypeMethodDescriptionvoid
Invokes fireTableDataChanged after all the pending events have been processed.void
Invokes fireTableDataChanged after all the pending events have been processed.void
Invokes fireTableDataChanged after all the pending events have been processed.getColumnClass
(int column) Implements the TableModel interface.int
Implements the TableModel interface.getColumnName
(int column) Implements the TableModel interface.int
Implements the TableModel interface.getValueAt
(int row, int column) Implements the TableModel interface.boolean
isCellEditable
(int row, int column) Implements the TableModel interface.nodeForRow
(int row) Implements the TableModel interface.void
setValueAt
(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:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
- See Also:
-
getColumnClass
Implements the TableModel interface.- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in 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:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
- See Also:
-
setValueAt
Implements the TableModel interface.- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in 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.
-