Package com.portal.pfc.ui
Class AbstractTreeTableModel
java.lang.Object
com.portal.pfc.ui.AbstractTreeTableModel
- All Implemented Interfaces:
TreeTableModel
,TreeModel
- Direct Known Subclasses:
CreditLimitAdjModel
,CreditLimitModel
,DynamicTreeTableModel
,NonCurrencyModel
,PBillinfoDetailsModel
,PostPaidBillChargesModel
An abstract implementation of the TreeTableModel interface, handling the list
of listeners.
original AbstractTreeTableModel component taken from:
Sun Microsystems, Inc.
Copyright 1997, 1998 by Sun Microsystems, Inc.
- Author:
- lruslen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EventListenerList
Listeners that have registered interest for notification on this event type.protected Object
Root of tree model. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Default implmentation for method in the TreeModel interface.protected void
fireTreeNodesChanged
(Object source, Object[] path, int[] childIndices, Object[] children) Notify all listeners that have registered interest for notification on this event type.protected void
fireTreeNodesInserted
(Object source, Object[] path, int[] childIndices, Object[] children) Notify all listeners that have registered interest for notification on this event type.protected void
fireTreeNodesRemoved
(Object source, Object[] path, int[] childIndices, Object[] children) Notify all listeners that have registered interest for notification on this event type.protected void
fireTreeStructureChanged
(Object source, Object[] path, int[] childIndices, Object[] children) Notify all listeners that have registered interest for notification on this event type.getColumnClass
(int column) Default implmentation for method in the TreeModel interface.int
getIndexOfChild
(Object parent, Object child) This is not called in the JTree's default mode: use a naive implementation.getRoot()
Default implmentation for method in the TreeModel interface.boolean
isCellEditable
(Object node, int column) By default, make the column with the Tree in it the only editable one.boolean
Default implmentation for method in the TreeModel interface.void
Default implmentation for method in the TreeModel interface.void
setValueAt
(Object aValue, Object node, int row, int column) Default implmentation for method in the TreeModel interface.void
valueForPathChanged
(TreePath path, Object newValue) Default implmentation for method in the TreeModel interface.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.tree.TreeModel
getChild, getChildCount
Methods inherited from interface com.portal.pfc.ui.TreeTableModel
getColumnCount, getColumnName, getValueAt
-
Field Details
-
root
Root of tree model. -
listenerList
Listeners that have registered interest for notification on this event type.
-
-
Constructor Details
-
AbstractTreeTableModel
Creates a new AbstractTreeTableModel.- Type Parameters:
em
- root root of tree model
-
-
Method Details
-
getRoot
Default implmentation for method in the TreeModel interface. -
isLeaf
Default implmentation for method in the TreeModel interface. -
valueForPathChanged
Default implmentation for method in the TreeModel interface.- Specified by:
valueForPathChanged
in interfaceTreeModel
-
getIndexOfChild
This is not called in the JTree's default mode: use a naive implementation.- Specified by:
getIndexOfChild
in interfaceTreeModel
-
addTreeModelListener
Default implmentation for method in the TreeModel interface.- Specified by:
addTreeModelListener
in interfaceTreeModel
-
removeTreeModelListener
Default implmentation for method in the TreeModel interface.- Specified by:
removeTreeModelListener
in interfaceTreeModel
-
fireTreeNodesChanged
protected void fireTreeNodesChanged(Object source, Object[] path, int[] childIndices, Object[] children) Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.- See Also:
-
fireTreeNodesInserted
protected void fireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children) Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.- See Also:
-
fireTreeNodesRemoved
protected void fireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children) Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.- See Also:
-
fireTreeStructureChanged
protected void fireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children) Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.- See Also:
-
getColumnClass
Default implmentation for method in the TreeModel interface.- Specified by:
getColumnClass
in interfaceTreeTableModel
-
isCellEditable
By default, make the column with the Tree in it the only editable one. Making this column editable causes the JTable to forward mouse and keyboard events in the Tree column to the underlying JTree.- Specified by:
isCellEditable
in interfaceTreeTableModel
-
setValueAt
Default implmentation for method in the TreeModel interface.- Specified by:
setValueAt
in interfaceTreeTableModel
-