public interface ResourceHierarchyListener extends EventListener
ResourceHierarchyListener
is the listener interface for an
IlvGanttModel
to notify interested parties about structural
changes to the hierarchical tree of resources.IlvGanttModel
Modifier and Type | Method and Description |
---|---|
void |
resourceMoved(ResourceMovedEvent evt)
Invoked after a resource has been moved within the tree.
|
void |
resourcesInserted(ResourcesInsertedEvent evt)
Invoked after one or more resources have been added to the tree.
|
void |
resourcesRemoved(ResourcesRemovedEvent evt)
Invoked after one or more resources have been removed from the tree.
|
void resourcesInserted(ResourcesInsertedEvent evt)
evt.getResource()
identifies the common parent resource of
the newly inserted resources. If the insertion being reported is the data
model's root resource this will be null
.
evt.getChildren()
returns a list of the newly inserted child
resources, ordered according to their indices within their common parent
resource, from lowest to highest. If the insertion being reported is the
data model's root resource this will be a single element list containing
the new root resource.
evt.getChildIndices()
returns the indices of the inserted
child resources within their common parent resource, ordered from
lowest to highest. If the insertion being reported is the data model's root
resource this will be a single element array where
childIndices[0]=0
.
evt
- The ResourcesInsertedEvent
void resourcesRemoved(ResourcesRemovedEvent evt)
evt.getResource()
identifies the common parent resource of
the removed resources. If the deletion being reported is the data model's
root resource this will be null
.
evt.getChildren()
returns a list of the removed child
resources, ordered according to what their indices were within
their common parent resource, from lowest to highest. If the deletion being
reported is the data model's root resource this will be a single element
list containing the root resource.
evt.getChildIndices()
returns the indices that the child
resources had within their common parent resource 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 ResourcesRemovedEvent
void resourceMoved(ResourceMovedEvent evt)
evt.getResource()
identifies the resource that has been moved.
evt.getOldParent()
and evt.getOldIndex()
identify
the location within the tree that the resource was moved from.
evt.getNewParent()
and evt.getNewIndex()
identify
the location within the tree that the resource was moved to.
evt
- The ResourceMovedEvent
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.