public abstract class RowChildEvent extends EventObject
RowChildEvent
is the superclass of events that are fired on
behalf of a Gantt configuration
by an
IlvVerticalExpansionMaster
to notify all registered
expandable UI components when children have been inserted or removed from a
common parent in the displayed data tree. The child rows must be siblings
and direct descendents (not grandchildren) of the specified parent row.source
Constructor and Description |
---|
RowChildEvent(IlvGanttConfiguration ganttConfig,
IlvHierarchyNode parent,
IlvHierarchyNode[] children,
int[] childIndices)
Constructs a new
RowChildEvent generated by the
specified Gantt configuration that can be used to notify listeners
when child rows have been inserted or removed from a common parent. |
Modifier and Type | Method and Description |
---|---|
int[] |
getChildIndices()
Returns the indices of the child rows.
|
IlvHierarchyNode[] |
getChildren()
Returns the array of child
IlvHierarchyNode 's that have been
inserted or removed. |
IlvGanttConfiguration |
getGanttConfiguration()
Returns the Gantt configuration where the event originated.
|
IlvGanttModel |
getGanttModel()
Returns the data model currently being displayed by the
Gantt configuration . |
IlvHierarchyNode |
getParent()
Returns the parent row which has had children inserted or removed.
|
getSource, toString
public RowChildEvent(IlvGanttConfiguration ganttConfig, IlvHierarchyNode parent, IlvHierarchyNode[] children, int[] childIndices)
RowChildEvent
generated by the
specified Gantt configuration that can be used to notify listeners
when child rows have been inserted or removed from a common parent.ganttConfig
- The Gantt configuration where the event originated.parent
- The parent row which has had children inserted or removed.
If the insertion or deletion being reported is the hierarchy's root row,
parent
should be null
, children
should be a single element array containing the root row, and
childIndices
should be a single element array with
childIndices[0]=0
.children
- The array of child IlvHierarchyNode
's that
have been inserted or removed. The rows must be arranged in parallel with
childIndices
, ordered according to their indices within
their common parent row from lowest to highest.childIndices
- An int
array of the child row indices,
arranged in parallel with children
, ordered from lowest to
highest. If this is an insert event, the indices point to the final
locations in the parent row where the children were inserted. If this is
a removal event, then the indices point to the original locations in the
parent row where the children were removed.public IlvGanttConfiguration getGanttConfiguration()
IlvGanttConfiguration
where the event originated.public final IlvGanttModel getGanttModel()
Gantt configuration
.IlvGanttModel
currently displayed by the Gantt
configuration.public IlvHierarchyNode getParent()
null
.IlvHierarchyNode
.public int[] getChildIndices()
public IlvHierarchyNode[] getChildren()
IlvHierarchyNode
's that have been
inserted or removed. The rows are ordered according to their indices
within their common parent row, arranged from lowest to highest.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.