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