ilog.cpl.model.container
Class RepresentationNodeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by ilog.util.IlEventObject
          extended by ilog.cpl.model.container.RepresentationNodeEvent
All Implemented Interfaces:
Serializable

public class RepresentationNodeEvent
extends IlEventObject

This class describes a change in the list of children of an IlpRepresentationNode.

Since:
JTGO 3.0
See Also:
Serialized Form

Nested Class Summary
static class RepresentationNodeEvent.Type
          Type of events supported by this event class.
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RepresentationNodeEvent(IlpRepresentationNode source, RepresentationNodeEvent.Type type, int[] indices, IlpRepresentationNode[] children)
          Creates a child addition or removal event.
 
Method Summary
 IlpRepresentationNode[] getChildren()
          Returns the child objects added or removed.
 int[] getIndices()
          Returns the indices of the children added or removed (after addition, or before removal).
 IlpRepresentationNode getRepresentationNode()
          Returns the parent node the event refers to.
 String toString()
          Returns a String representation of this event.
 
Methods inherited from class ilog.util.IlEventObject
getType
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepresentationNodeEvent

public RepresentationNodeEvent(IlpRepresentationNode source,
                               RepresentationNodeEvent.Type type,
                               int[] indices,
                               IlpRepresentationNode[] children)
Creates a child addition or removal event.

Parameters:
source - The node.
type - One of CHILDREN_ADDED, CHILDREN_REMOVED.
indices - The indices of the children added or removed (indices to be taken after addition, but before removal), in ascending order.
children - The children added or removed, in the same order as listed in indices.
Method Detail

getRepresentationNode

public IlpRepresentationNode getRepresentationNode()
Returns the parent node the event refers to.


getIndices

public int[] getIndices()
Returns the indices of the children added or removed (after addition, or before removal).


getChildren

public IlpRepresentationNode[] getChildren()
Returns the child objects added or removed.


toString

public String toString()
Returns a String representation of this event.

Overrides:
toString in class EventObject


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