Class EDRTreeTableNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
com.portal.pfc.ui.DefaultTreeTableNode
com.portal.pfc.infranetui.edrviewer.EDRTreeTableNode
- All Implemented Interfaces:
TreeTableNode
,Serializable
,Cloneable
,MutableTreeNode
,TreeNode
EDRTreeTableNode displays a single node of a serialized EDR in a JTreeTable.
It takes as input a W3C DOM Node object and a FieldMap object. The DOM node
contains the serialzed EDR data that the node displays.
FieldMap: The serialized EDR format stores ids for field information. To display the actual field names, it is necessary to look them up in the provided FieldMap. The the fieldmap isn't in the fieldmap, its ID will be displayed.
Subclassing: EDRTreeTableNode is designed to be subclassed. Subclasses
should override createNewNode()
factory method. They can also
override getFieldID()
, getFieldName()
and
getFieldNodeValue()
methods to provide customized processing.
- Since:
- 6.5FP3
- Author:
- Max Spivak
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.portal.pfc.ui.DefaultTreeTableNode
DefaultTreeTableNode.DefaultComparator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EDRFieldMap
FieldMap referenceprotected Node
W3C DOM node containing data to displayFields inherited from class com.portal.pfc.ui.DefaultTreeTableNode
userData
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Fields inherited from interface com.portal.pfc.ui.TreeTableNode
DEFAULT_TREE_COLUMN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EDRTreeTableNode
createNewNode
(Node node, EDRFieldMap fm) Factory method to create a new node.protected String
Retrieves id representing field name from the DOM node.protected String
Retrieves field name from FieldMap.protected String
Reads the actual node value and returns it.getValueAt
(int columnIndex) Overrides superclass.Methods inherited from class com.portal.pfc.ui.DefaultTreeTableNode
add, convertToArrayList, getIndexForNewChild, getTreeColumn, insert, isSorted, setTreeColumn, setUserData, setUserData, setUserObject, setValueAt, sort, sort, sort, sort
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.swing.tree.MutableTreeNode
remove, remove, removeFromParent, setParent
Methods inherited from interface javax.swing.tree.TreeNode
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
-
Field Details
-
mNode
W3C DOM node containing data to display -
mFM
FieldMap reference
-
-
Constructor Details
-
EDRTreeTableNode
Create an EDRTreeTableNode.- Parameters:
node
- W3C DOM Node object containing data to displayfm
- FieldMap that maps field ids to field names
-
-
Method Details
-
getValueAt
Overrides superclass. Provides data to display.- Specified by:
getValueAt
in interfaceTreeTableNode
- Overrides:
getValueAt
in classDefaultTreeTableNode
- Parameters:
columnIndex
- Value should be 0 or 1. Field name should be returned when columnIndex == 0. Field value should be returned for columnIndex 1.
-
getFieldValue
Reads the actual node value and returns it. May be subclassed to override default behavior. For example, a subclass can check if values have been updated and return those. -
getFieldName
Retrieves field name from FieldMap. Returns fully-qualified field name. -
getFieldID
Retrieves id representing field name from the DOM node. -
createNewNode
Factory method to create a new node. Called primarily when creating nodes to display contents of a composite field. May be overridden to create subclassed nodes for specialized processing.- Parameters:
node
- W3C DOM Node object containing data to displayfm
- FieldMap that maps field ids to field names
-