public class ActivitiesRemovedEvent extends IlvHierarchyNodeChildEvent<IlvActivity> implements ActivityEvent
ActivitiesRemovedEvent
is used to notify listeners when
children have been removed from a common parent activity in the
tree of activities managed by an IlvGanttModel
.
The child activities must be siblings and direct descendents (not
grandchildren) of the specified parent activity. A listener can obtain the
parent activity by calling getActivity()
.ActivityHierarchyListener
,
IlvGanttModel
,
Serialized Formsource
Constructor and Description |
---|
ActivitiesRemovedEvent(IlvGanttModel model,
IlvActivity parent,
List<? extends IlvActivity> children,
int[] childIndices)
Constructs a new
ActivitiesRemovedEvent generated by the
specified data model that can be used to notify listeners
when child activities have been removed from a common parent. |
Modifier and Type | Method and Description |
---|---|
IlvActivity |
getActivity()
Returns the activity that identifies the portion of the tree hierarchy
that has been modified.
|
getChildIndices, getChildNodes, getChildren, getGanttModel, getParent
getSource, toString
public ActivitiesRemovedEvent(IlvGanttModel model, IlvActivity parent, List<? extends IlvActivity> children, int[] childIndices)
ActivitiesRemovedEvent
generated by the
specified data model that can be used to notify listeners
when child activities have been removed from a common parent.model
- The data model where the event originated.parent
- The parent activity that has had children removed. If the
deletion being reported is the data model's root activity,
parent
should be null
, children
should be a single element list containing the root activity, and
childIndices
should be a single element array with
childIndices[0]=0
.children
- The list of child IlvActivity
's that have
been removed. The activities do not have to be presorted, but must be
arranged in parallel with childIndices
. In other words,
childIndices[i]
must contain the index that activity
(IlvActivity)children.get(i)
had before it was removed.childIndices
- An int
array that specifies the index
values that the child activities had before they were removed. The indices
do not have to be presorted, but must be arranged in parallel with
children
.public IlvActivity getActivity()
null
.getActivity
in interface ActivityEvent
IlvActivity
identifying the modified tree
hierarchy.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.