public class EDRTreeTableNode extends DefaultTreeTableNode
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.
EDRFieldMap
,
Serialized FormDefaultTreeTableNode.DefaultComparator
Modifier and Type | Field and Description |
---|---|
protected EDRFieldMap |
mFM
FieldMap reference
|
protected Node |
mNode
W3C DOM node containing data to display
|
userData
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
DEFAULT_TREE_COLUMN
Constructor and Description |
---|
EDRTreeTableNode(Node node,
EDRFieldMap fm)
Create an EDRTreeTableNode.
|
Modifier and Type | Method and Description |
---|---|
protected EDRTreeTableNode |
createNewNode(Node node,
EDRFieldMap fm)
Factory method to create a new node.
|
protected String |
getFieldID()
Retrieves id representing field name from the DOM node.
|
protected String |
getFieldName()
Retrieves field name from FieldMap.
|
protected String |
getFieldValue()
Reads the actual node value and returns it.
|
Object |
getValueAt(int columnIndex)
Overrides superclass.
|
add, convertToArrayList, getIndexForNewChild, getTreeColumn, insert, isSorted, setTreeColumn, setUserData, setUserData, setUserObject, setValueAt, sort, sort, sort, sort
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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
remove, remove, removeFromParent, setParent
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
protected Node mNode
protected EDRFieldMap mFM
public EDRTreeTableNode(Node node, EDRFieldMap fm)
node
- W3C DOM Node object containing data to displayfm
- FieldMap that maps field ids to field namespublic Object getValueAt(int columnIndex)
getValueAt
in interface TreeTableNode
getValueAt
in class DefaultTreeTableNode
columnIndex
- Value should be 0 or 1. Field name should be returned
when columnIndex == 0. Field value should be returned for columnIndex 1.protected String getFieldValue()
protected String getFieldName()
protected String getFieldID()
protected EDRTreeTableNode createNewNode(Node node, EDRFieldMap fm)
node
- W3C DOM Node object containing data to displayfm
- FieldMap that maps field ids to field namesCopyright © 2003, 2023, Oracle and/or its affiliates.