public class ActivitiesInsertedEvent extends IlvHierarchyNodeChildEvent<IlvActivity> implements ActivityEvent
ActivitiesInsertedEvent
is used to notify listeners when
children have been inserted into 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 |
---|
ActivitiesInsertedEvent(IlvGanttModel model,
IlvActivity parent,
int[] childIndices)
Constructs a new
ActivitiesInsertedEvent generated by the
specified data model that can be used to notify listeners
when child activities have been inserted into a common parent. |
ActivitiesInsertedEvent(IlvGanttModel model,
IlvActivity parent,
List<? extends IlvActivity> children)
Constructs a new
ActivitiesInsertedEvent generated by the
specified data model that can be used to notify listeners
when child activities have been inserted into 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 ActivitiesInsertedEvent(IlvGanttModel model, IlvActivity parent, int[] childIndices)
ActivitiesInsertedEvent
generated by the
specified data model that can be used to notify listeners
when child activities have been inserted into a common parent.
Note:
This constructor cannot be used to notify listeners when the root activity
of the data model has been inserted.model
- The data model where the event originated.parent
- The parent activity that has had children inserted.childIndices
- An int
array that specifies the index
values of the inserted activities. The indices represent the final
state of the activity tree, after the inserts have occurred. The indices
do not have to be pre-sorted.public ActivitiesInsertedEvent(IlvGanttModel model, IlvActivity parent, List<? extends IlvActivity> children)
ActivitiesInsertedEvent
generated by the
specified data model that can be used to notify listeners
when child activities have been inserted into a common parent.model
- The data model where the event originated.parent
- The parent activity that has had children inserted. If the
insertion being reported is the data model's root activity,
parent
should be null
and children
should be a single element list containing the root activity.children
- The list of child IlvActivity
's that have
been inserted. The activities do not have to be presorted.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.