public class IlvMapDataSourceNode extends DefaultMutableTreeNode implements IlvPersistentObject
DefaultMutableTreeNode to encapsulate an IlvMapDataSource
in order to display it in a tree. The class is intended to be used as nodes to be
inserted in an IlvMapDataSourceModel.allowsChildren, children, EMPTY_ENUMERATION, userObject| Constructor and Description |
|---|
IlvMapDataSourceNode(IlvInputStream stream)
Reads an
IlvMapDataSourceNode from an IlvInputStream |
IlvMapDataSourceNode(Object o)
Creates a node with the object o.
|
| Modifier and Type | Method and Description |
|---|---|
IlvMapDataSource |
getDataSource()
Returns the data source associated with this node, or null.
|
void |
write(IlvOutputStream stream)
Writes this node into an
IlvOutputStream |
add, 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, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toStringpublic IlvMapDataSourceNode(IlvInputStream stream) throws IlvReadFileException
IlvMapDataSourceNode from an IlvInputStreamstream - The stream to read from.IlvReadFileExceptionpublic IlvMapDataSourceNode(Object o)
IlvMapDataSource, this
node is associated with the data source.o - The object to attach.public IlvMapDataSource getDataSource()
public void write(IlvOutputStream stream) throws IOException
IlvOutputStreamwrite in interface IlvPersistentObjectstream - The stream to write to.IOException© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.