ilog.views.maps.datasource
Class IlvMapDataSourceNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by ilog.views.maps.datasource.IlvMapDataSourceNode
All Implemented Interfaces:
IlvPersistentObject, Serializable, Cloneable, MutableTreeNode, TreeNode

public class IlvMapDataSourceNode
extends DefaultMutableTreeNode
implements IlvPersistentObject

a DefaultMutableTreeNode to encapsulate a IlvMapDataSource in order to display it in a tree. The class is intended to be used as nodes to be inserted in a IlvMapDataSourceModel.

Since:
JViews 7.5
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, userObject
 
Constructor Summary
IlvMapDataSourceNode(IlvInputStream stream)
          Reads an IlvMapDataSourceNode from an IlvInputStream
IlvMapDataSourceNode(Object o)
          Creates a node with the object o.
 
Method Summary
 IlvMapDataSource getDataSource()
          Returns the data source associated with this node, or null.
 void write(IlvOutputStream stream)
          Writes this node into an IlvOutputStream
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
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, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvMapDataSourceNode

public IlvMapDataSourceNode(IlvInputStream stream)
                     throws IlvReadFileException
Reads an IlvMapDataSourceNode from an IlvInputStream

Parameters:
stream - The stream to read from.
Throws:
IlvReadFileException

IlvMapDataSourceNode

public IlvMapDataSourceNode(Object o)
Creates a node with the object o. If the object is a IlvMapDataSource, this node is affected to the data source.

Parameters:
o - The object to attach.
Method Detail

getDataSource

public IlvMapDataSource getDataSource()
Returns the data source associated with this node, or null.

Returns:
Returns the data source associated with this node, or null.

write

public void write(IlvOutputStream stream)
           throws IOException
Writes this node into an IlvOutputStream

Specified by:
write in interface IlvPersistentObject
Parameters:
stream - The stream to write to.
Throws:
IOException


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.