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