Package org.oddjob.structural
Class StructuralEvent
java.lang.Object
java.util.EventObject
org.oddjob.structural.StructuralEvent
- All Implemented Interfaces:
Serializable
This event is fired by an implementer of the
Structural interface
when its structure changes.- Author:
- Rob Gordon
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
StructuralEvent
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 Details
-
getChild
Get the child.- Returns:
- The child.
-
getIndex
public int getIndex()Get the index.- Returns:
- The index.
-
toString
- Overrides:
toStringin classEventObject
-