ilog.views.appframe.docview.project
Class DataContainerEvent

java.lang.Object
  extended by java.util.EventObject
      extended by ilog.views.appframe.docview.project.DataContainerEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NodePropertyChangeEvent

public class DataContainerEvent
extends EventObject

Event that indicates that the content of a data container has changed because a node has been added or removed or because a node attribute has changed.

See Also:
Serialized Form

Field Summary
static int NODE_ADDED
          This event indicates that a node has been added to a data container.
static int NODE_REMOVED
          This event indicates that a node has been removed from a data container.
static int PROPERTY_CHANGED
          This event indicates that a property of a node has changed.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DataContainerEvent(IlvDataContainer dataContainer, int id, Object parent, Object node, int index)
          Constructs a DataContainerEvent instance.
 
Method Summary
 IlvDataContainer getDataContainer()
          Returns the data container that has the changed content.
 int getID()
          Returns the type of the event.
 int getIndex()
          Returns the position at which the node was added or removed, depending on the event type.
 Object getNode()
          Returns the node that originates the event.
 Object getParent()
          Returns the parent of the node that originates the event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NODE_ADDED

public static final int NODE_ADDED
This event indicates that a node has been added to a data container.

See Also:
Constant Field Values

NODE_REMOVED

public static final int NODE_REMOVED
This event indicates that a node has been removed from a data container.

See Also:
Constant Field Values

PROPERTY_CHANGED

public static final int PROPERTY_CHANGED
This event indicates that a property of a node has changed.

See Also:
Constant Field Values
Constructor Detail

DataContainerEvent

public DataContainerEvent(IlvDataContainer dataContainer,
                          int id,
                          Object parent,
                          Object node,
                          int index)
Constructs a DataContainerEvent instance.

Parameters:
dataContainer - The data container with the changed content.
id - An ID for the type of the event.
node - The node that has been added, removed, or modified.
parent - The parent of the node that has been added, removed, or modified or null if the node is a root of the data container.
index - The position of the node in the child array of the parent.
Method Detail

getDataContainer

public IlvDataContainer getDataContainer()
Returns the data container that has the changed content.


getID

public int getID()
Returns the type of the event.

See Also:
NODE_ADDED, NODE_REMOVED, PROPERTY_CHANGED

getNode

public Object getNode()
Returns the node that originates the event.


getParent

public Object getParent()
Returns the parent of the node that originates the event.


getIndex

public int getIndex()
Returns the position at which the node was added or removed, depending on the event type.



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