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 EventListenerListListeners that have registered interest for notification on this event type.protected ObjectRoot of tree model. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDefault implmentation for method in the TreeModel interface.protected voidfireTreeNodesChanged(Object source, Object[] path, int[] childIndices, Object[] children) Notify all listeners that have registered interest for notification on this event type.protected voidfireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children) Notify all listeners that have registered interest for notification on this event type.protected voidfireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children) Notify all listeners that have registered interest for notification on this event type.protected voidfireTreeStructureChanged(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.intgetIndexOfChild(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.booleanisCellEditable(Object node, int column) By default, make the column with the Tree in it the only editable one.booleanDefault implmentation for method in the TreeModel interface.voidDefault implmentation for method in the TreeModel interface.voidsetValueAt(Object aValue, Object node, int row, int column) Default implmentation for method in the TreeModel interface.voidvalueForPathChanged(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, waitMethods inherited from interface javax.swing.tree.TreeModel
getChild, getChildCountMethods 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:
valueForPathChangedin interfaceTreeModel
-
getIndexOfChild
This is not called in the JTree's default mode: use a naive implementation.- Specified by:
getIndexOfChildin interfaceTreeModel
-
addTreeModelListener
Default implmentation for method in the TreeModel interface.- Specified by:
addTreeModelListenerin interfaceTreeModel
-
removeTreeModelListener
Default implmentation for method in the TreeModel interface.- Specified by:
removeTreeModelListenerin 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:
getColumnClassin 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:
isCellEditablein interfaceTreeTableModel
-
setValueAt
Default implmentation for method in the TreeModel interface.- Specified by:
setValueAtin interfaceTreeTableModel
-