org.oddjob.arooa.design
Class DesignStructureEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.oddjob.arooa.design.DesignStructureEvent
All Implemented Interfaces:
Serializable

public class DesignStructureEvent
extends EventObject
implements Serializable

This event is fire by an implementer of the Strucutral interface when its strucuture changes.

See Also:
Serialized Form
Author:
Rob Gordon

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DesignStructureEvent(Object source, DesignInstance child, int index)
          Constructor.
 
Method Summary
 DesignInstance getChild()
          Get the child.
 int getIndex()
          Get the index.
 
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
 

Constructor Detail

DesignStructureEvent

public DesignStructureEvent(Object source,
                            DesignInstance child,
                            int index)
Constructor.

Parameters:
source - The source of the event. Generally the parent.
child - The child object that has been added or removed.
index - The position where it was added or removed (starting at 0).
Method Detail

getChild

public DesignInstance getChild()
Get the child.

Returns:
The child.

getIndex

public int getIndex()
Get the index.

Returns:
The index.