org.oddjob.structural
Class StructuralEvent
java.lang.Object
java.util.EventObject
org.oddjob.structural.StructuralEvent
- All Implemented Interfaces:
- Serializable
public class StructuralEvent
- 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
StructuralEvent
public StructuralEvent(Structural source,
Object 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).
getChild
public Object getChild()
- Get the child.
- Returns:
- The child.
getIndex
public int getIndex()
- Get the index.
- Returns:
- The index.
toString
public String toString()
- Overrides:
toString in class EventObject