public abstract class IlvHierarchyNodeMovedEvent extends EventObject
IlvHierarchyNodeMovedEvent
is the superclass of all events that
are used to notify listeners when nodes have been moved within a tree of
nodes managed by an IlvGanttModel
.IlvGanttModel
,
Serialized Formsource
Constructor and Description |
---|
IlvHierarchyNodeMovedEvent(IlvGanttModel model,
IlvHierarchyNode node,
IlvHierarchyNode oldParent,
int oldIndex,
IlvHierarchyNode newParent,
int newIndex)
Constructs a new
IlvHierarchyNodeMovedEvent generated by the
specified data model that can be used to notify listeners when a node
has been moved within the tree hierarchy. |
Modifier and Type | Method and Description |
---|---|
IlvGanttModel |
getGanttModel()
Returns the data model where the event originated.
|
int |
getNewIndex()
Returns the index that the node has within its new parent after the node
was moved.
|
protected IlvHierarchyNode |
getNewParentNode()
Returns the node's new parent.
|
protected IlvHierarchyNode |
getNode()
Returns the node that has been moved.
|
int |
getOldIndex()
Returns the index that the node had within its previous parent before the
node was moved.
|
protected IlvHierarchyNode |
getOldParentNode()
Returns the node's previous parent.
|
getSource, toString
public IlvHierarchyNodeMovedEvent(IlvGanttModel model, IlvHierarchyNode node, IlvHierarchyNode oldParent, int oldIndex, IlvHierarchyNode newParent, int newIndex)
IlvHierarchyNodeMovedEvent
generated by the
specified data model that can be used to notify listeners when a node
has been moved within the tree hierarchy.model
- the data model where the event originatednode
- the node that has been movedoldParent
- node
's previous parentoldIndex
- node
's index within oldParent
before it was movednewParent
- node
's new parentnewIndex
- node
's index within newParent
after it has been movedpublic IlvGanttModel getGanttModel()
IlvGanttModel
where the event originated.public int getOldIndex()
public int getNewIndex()
protected final IlvHierarchyNode getNode()
IlvHierarchyNode
that has been moved.protected final IlvHierarchyNode getOldParentNode()
IlvHierarchyNode
's previous parent.protected final IlvHierarchyNode getNewParentNode()
IlvHierarchyNode
's new parent.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.