public class RowsRemovedEvent extends RowChildEvent
RowsRemovedEvent
is fired on behalf of a Gantt configuration by
an IlvVerticalExpansionMaster
to notify all registered
expandable UI components when children have been removed from a common parent
node in the displayed data tree. If the configuration's row organization is
ACTIVITY_ROWS
then this event is similar to an
ActivitiesRemovedEvent
. Otherwise, the configuration's row
organization is RESOURCE_ROWS
and this event is similar to a
ResourcesRemovedEvent
. In either case, visibility info about
the removed nodes is provided that is not available from the data model
events themselves. All, some, or none of the nodes removed from the data
model may have been visible. The child nodes must be siblings and
direct descendents (not grandchildren) of the specified parent node.source
Constructor and Description |
---|
RowsRemovedEvent(IlvGanttConfiguration ganttConfig,
IlvHierarchyNode parent,
IlvHierarchyNode[] children,
int[] childIndices,
int[] childRows,
int[] hiddenRowCounts)
Constructs a new
RowsRemovedEvent generated by the
specified Gantt configuration that can be used to notify its
registered IlvVerticalExpandable UI components when
child nodes have been removed from a common parent. |
Modifier and Type | Method and Description |
---|---|
int[] |
getChildRows()
Returns the array of rows that each child node was visible on before it was
removed.
|
int[] |
getHiddenRowCounts()
Returns the array of row counts that were hidden as a result of each child
node's removal.
|
getChildIndices, getChildren, getGanttConfiguration, getGanttModel, getParent
getSource, toString
public RowsRemovedEvent(IlvGanttConfiguration ganttConfig, IlvHierarchyNode parent, IlvHierarchyNode[] children, int[] childIndices, int[] childRows, int[] hiddenRowCounts)
RowsRemovedEvent
generated by the
specified Gantt configuration that can be used to notify its
registered IlvVerticalExpandable
UI components when
child nodes have been removed from a common parent.ganttConfig
- the Gantt configuration where the event originatedparent
- the parent node which has had children removed. If the
deletion being reported is the hierarchy's root node, parent
should be null
, children
should be a single
element array containing the root node, and childIndices
should be a single element array with childIndices[0]=0
.children
- the array of child IlvHierarchyNode
's that
have been removed. The nodes must be arranged in parallel with
childIndices
, ordered according to their indices within
their common parent node from lowest to highest.childIndices
- an int
array of the child node indices
arranged in parallel with children
, ordered from lowest to
highest. The indices point to the original locations in the parent node
where the children were removed.childRows
- an int
array of the rows that each child node
was visible on before it was removed. The rows numbers must be arranged in
parallel with childIndices
. A row number of -1 is used to
indicate that the child node was not visible before it was removed.hiddenRowCounts
- an int
array of the number of rows that
were hidden as a result of each child node's removal. The row counts must
be arranged in parallel with childIndices
. Each row count
includes the row that the child node was visible on plus any visible
grandchildren and descendents. If the child was not originally visible,
the row count will be 0.public int[] getChildRows()
getChildIndices()
, ordered according to each child node's
index within its common parent, from lowest to highest. A row number of -1
indicates that the child node was not visible before it was removed.public int[] getHiddenRowCounts()
getChildIndices()
, ordered according to each child node's
index within its common parent, from lowest to highest. Each row count
includes the row that the child node was visible on plus any visible
grandchildren and descendents. If the child was not originally visible,
the hidden row count for that node will be 0.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.