public interface ActivityHierarchyListener extends EventListener
ActivityHierarchyListener
is the listener interface for an
IlvGanttModel
to notify interested parties about structural
changes to the hierarchical tree of activities.IlvGanttModel
Modifier and Type | Method and Description |
---|---|
void |
activitiesInserted(ActivitiesInsertedEvent evt)
Invoked after one or more activities have been added to the tree.
|
void |
activitiesRemoved(ActivitiesRemovedEvent evt)
Invoked after one or more activities have been removed from the tree.
|
void |
activityMoved(ActivityMovedEvent evt)
Invoked after an activity has been moved within the tree.
|
void activitiesInserted(ActivitiesInsertedEvent evt)
evt.getActivity()
identifies the common parent activity of
the newly inserted activities. If the insertion being reported is the data
model's root activity this will be null
.
evt.getChildren()
returns a list of the newly inserted child
activities, ordered according to their indices within their common parent
activity, from lowest to highest. If the insertion being reported is the
data model's root activity this will be a single element list containing
the new root activity.
evt.getChildIndices()
returns the indices of the inserted
child activities within their common parent activity, ordered from
lowest to highest. If the insertion being reported is the data model's root
activity this will be a single element array where
childIndices[0]=0
.
evt
- The ActivitiesInsertedEvent
.void activitiesRemoved(ActivitiesRemovedEvent evt)
evt.getActivity()
identifies the common parent activity of
the removed activities. If the deletion being reported is the data model's
root activity this will be null
.
evt.getChildren()
returns a list of the removed child
activities, ordered according to what their indices were within
their common parent activity, from lowest to highest. If the deletion being
reported is the data model's root activity this will be a single element
list containing the root activity.
evt.getChildIndices()
returns the indices that the child
activities had within their common parent activity before they
were removed, ordered from lowest to highest. If the deletion being
reported is the data model's root activity this will be a single element
array where childIndices[0]=0
.
evt
- The ActivitiesInsertedEvent
.void activityMoved(ActivityMovedEvent evt)
evt.getActivity()
identifies the activity that has been moved.
evt.getOldParent()
and evt.getOldIndex()
identify
the location within the tree that the activity was moved from.
evt.getNewParent()
and evt.getNewIndex()
identify
the location within the tree that the activity was moved to.
evt
- The ActivitiesMovedEvent
.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.