public class RowMovedEvent extends EventObject
RowMovedEvent
is fired on behalf of a Gantt configuration by
an IlvVerticalExpansionMaster
to notify all registered
expandable UI components when a row has been moved within the displayed data
tree. If the configuration's row organization is ACTIVITY_ROWS
then this event is similar to an ActivityMovedEvent
. Otherwise,
the configuration's row organization is RESOURCE_ROWS
and this
event is similar to a ResourceMovedEvent
. In either case,
visibility info about the moved node is provided that is not available from
the data model events themselves.source
Constructor and Description |
---|
RowMovedEvent(IlvGanttConfiguration ganttConfig,
IlvHierarchyNode node,
IlvHierarchyNode oldParent,
int oldIndex,
IlvHierarchyNode[] oldVisibleNodes,
IlvRowRange oldRowRange,
IlvHierarchyNode newParent,
int newIndex,
IlvHierarchyNode[] newVisibleNodes,
IlvRowRange newRowRange)
Constructs a new
RowMovedEvent generated by the
specified Gantt configuration that can be used to notify listeners
when a node has been moved within the tree hierarchy. |
Modifier and Type | Method and Description |
---|---|
IlvGanttConfiguration |
getGanttConfiguration()
Returns the Gantt configuration where the event originated.
|
IlvGanttModel |
getGanttModel()
Returns the data model currently being displayed by the
Gantt configuration . |
int |
getNewIndex()
Returns the index that the node has within its new parent after the node
was moved.
|
IlvHierarchyNode |
getNewParent()
Returns the node's new parent, after the node was moved.
|
IlvRowRange |
getNewRowRange()
Returns the rows that
getNewVisibleNodes() occupy after they
were moved. |
IlvHierarchyNode[] |
getNewVisibleNodes()
Returns the array of visible nodes that are the result of this move event.
|
IlvHierarchyNode |
getNode()
Returns the node that was moved.
|
int |
getOldIndex()
Returns the index that the node had within its previous parent before the
node was moved.
|
IlvHierarchyNode |
getOldParent()
Returns the node's previous parent, before the node was moved.
|
IlvRowRange |
getOldRowRange()
Returns the rows that
getOldVisibleNodes() occupied before
they were moved. |
IlvHierarchyNode[] |
getOldVisibleNodes()
Returns the array of originally visible nodes that were moved as a result
of this event.
|
getSource, toString
public RowMovedEvent(IlvGanttConfiguration ganttConfig, IlvHierarchyNode node, IlvHierarchyNode oldParent, int oldIndex, IlvHierarchyNode[] oldVisibleNodes, IlvRowRange oldRowRange, IlvHierarchyNode newParent, int newIndex, IlvHierarchyNode[] newVisibleNodes, IlvRowRange newRowRange)
RowMovedEvent
generated by the
specified Gantt configuration that can be used to notify listeners
when a node has been moved within the tree hierarchy.ganttConfig
- the Gantt configuration where the event originatednode
- the node that has been movedoldParent
- node
's previous parentoldIndex
- node
's index within oldParent
before it was movedoldVisibleNodes
- the array of originally visible
IlvHierarchyNode
's that were moved as a result of this event,
ordered by their row number, from lowest to highestoldRowRange
- the rows that oldVisibleNodes
occupied
before they were movednewParent
- node
's new parentnewIndex
- node
's index within newParent
after it has been movednewVisibleNodes
- the array of visible
IlvHierarchyNode
's that were the result of this move event,
ordered by their row number, from lowest to highestnewRowRange
- the rows that newVisibleNodes
occupy after
they were movedpublic IlvGanttConfiguration getGanttConfiguration()
IlvGanttConfiguration
where the event originated.public IlvGanttModel getGanttModel()
Gantt configuration
.IlvGanttModel
currently displayed by the Gantt
configuration.public IlvHierarchyNode getNode()
IlvHierarchyNode
that was moved.public IlvHierarchyNode getOldParent()
IlvHierarchyNode
parent.public int getOldIndex()
public IlvHierarchyNode[] getOldVisibleNodes()
IlvHierarchyNode
that were moved.public IlvRowRange getOldRowRange()
getOldVisibleNodes()
occupied before
they were moved. For example, getOldRowRange().getFirst()
will be the row that getOldVisibleNodes()[0]
was previously
displayed on. If none of the nodes that were moved were originally visible,
then the returned range will be empty.IlvRowRange
.getOldVisibleNodes()
public IlvHierarchyNode getNewParent()
IlvHierarchyNode
parent.public int getNewIndex()
public IlvHierarchyNode[] getNewVisibleNodes()
IlvHierarchyNode
.public IlvRowRange getNewRowRange()
getNewVisibleNodes()
occupy after they
were moved. For example, getNewRowRange().getFirst()
will be the row that getNewVisibleNodes()[0]
is now displayed
on. If none of the nodes that were moved are now visible, then the returned
range will be empty.IlvRowRange
.getNewVisibleNodes()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.