public class ActivityMovedEvent extends IlvHierarchyNodeMovedEvent implements ActivityEvent
ActivityMovedEvent is used to notify listeners when an activity
has been moved within a tree of activities managed by an
IlvGanttModel.ActivityHierarchyListener,
IlvGanttModel,
Serialized Formsource| Constructor and Description |
|---|
ActivityMovedEvent(IlvGanttModel model,
IlvActivity activity,
IlvActivity oldParent,
int oldIndex,
IlvActivity newParent,
int newIndex)
Constructs a new
ActivityMovedEvent generated by the
specified data model that can be used to notify listeners when an activity
has been moved within the tree hierarchy. |
| Modifier and Type | Method and Description |
|---|---|
IlvActivity |
getActivity()
Returns the activity that has been moved.
|
IlvActivity |
getNewParent()
Returns the activity's new parent, after the activity was moved.
|
IlvActivity |
getOldParent()
Returns the activity's previous parent, before the activity was moved.
|
getGanttModel, getNewIndex, getNewParentNode, getNode, getOldIndex, getOldParentNodegetSource, toStringpublic ActivityMovedEvent(IlvGanttModel model, IlvActivity activity, IlvActivity oldParent, int oldIndex, IlvActivity newParent, int newIndex)
ActivityMovedEvent generated by the
specified data model that can be used to notify listeners when an activity
has been moved within the tree hierarchy.model - the data model where the event originatedactivity - the activity that has been movedoldParent - activity's previous parentoldIndex - activity's index within oldParent
before it was movednewParent - activity's new parentnewIndex - activity's index within newParent
after it has been movedpublic IlvActivity getActivity()
getActivity in interface ActivityEventIlvActivity that has been moved.public IlvActivity getOldParent()
IlvActivity's previous parent.public IlvActivity getNewParent()
IlvActivity's new parent.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.