public class RowExpandedEvent extends EventObject
RowExpandedEvent
is fired on behalf of a Gantt configuration by
an IlvVerticalExpansionMaster
to notify all registered
expandable
UI components when a node has been expanded within the data tree. If the node
that was expanded had ancestors that were also originally collapsed, they
were expanded also in order to make the desired node visible.
RowExpandedEvent
maintains an array of all the ancestor nodes
that had to be expanded in order to successfully expand and make visible the
desired node. The nodes are ordered from the highest level ancestor node
that was expanded first to the desired, lowest level node that was expanded
last.source
Constructor and Description |
---|
RowExpandedEvent(IlvGanttConfiguration ganttConfig,
IlvHierarchyNode[] expandedNodes,
IlvHierarchyNode[] visibleNodes,
int firstVisibleRow)
Constructs a new
RowExpandedEvent generated by the
specified Gantt configuration that can be used to notify its
registered IlvVerticalExpandable UI components when a node,
and possibly some of its ancestors, have been expanded within the tree
hierarchy. |
Modifier and Type | Method and Description |
---|---|
int |
getExpandedNodeCount()
Returns the number of nodes that were expanded.
|
IlvHierarchyNode[] |
getExpandedNodes()
Returns the array of nodes that were expanded, ordered such that the first
element in the array is the highest level node in the tree that was
expanded and the last element in the array is the lowest level node that
was expanded.
|
IlvHierarchyNode |
getFirstExpandedNode()
Returns the highest level node that was expanded.
|
IlvHierarchyNode |
getFirstVisibleNode()
Returns the first node that became visible as a result of this expansion
event.
|
int |
getFirstVisibleRow()
Returns the first row that was made visible as a result of this expansion
event.
|
IlvGanttConfiguration |
getGanttConfiguration()
Returns the Gantt configuration where the event originated.
|
IlvGanttModel |
getGanttModel()
Returns the data model currently being displayed by the
Gantt configuration . |
IlvHierarchyNode |
getLastExpandedNode()
Returns the lowest level node that was expanded.
|
IlvHierarchyNode |
getLastVisibleNode()
Returns the last node that became visible as a result of this expansion
event.
|
int |
getLastVisibleRow()
Returns the last row that was made visible as a result of this expansion
event.
|
int |
getVisibleNodeCount()
Returns the number of nodes that became visible as a result of this
expansion event.
|
IlvHierarchyNode[] |
getVisibleNodes()
Returns the array of nodes that were made visible as a result of this
expansion event.
|
int |
getVisibleRowCount()
Returns the number of previously hidden rows that were made visible as a
result of this expansion event.
|
getSource, toString
public RowExpandedEvent(IlvGanttConfiguration ganttConfig, IlvHierarchyNode[] expandedNodes, IlvHierarchyNode[] visibleNodes, int firstVisibleRow)
RowExpandedEvent
generated by the
specified Gantt configuration that can be used to notify its
registered IlvVerticalExpandable
UI components when a node,
and possibly some of its ancestors, have been expanded within the tree
hierarchy.ganttConfig
- The Gantt configuration where the event originates.expandedNodes
- The array of IlvHierarchyNode
's that were
expanded, ordered such that the first element in the array is the highest
level node that was expanded and the last element in the array is the
lowest level node that was expanded.visibleNodes
- The array of IlvHierarchyNode
's that were
made visible as a result of this expansion event, ordered by their row
number, from lowest to highest.firstVisibleRow
- The first row that was made visible as a result of
this expansion event. This is the row that visibleNodes[0]
is
displayed on.public IlvGanttConfiguration getGanttConfiguration()
IlvGanttConfiguration
where the event originated.public IlvGanttModel getGanttModel()
Gantt configuration
.IlvGanttModel
currently displayed by the Gantt
configuration.public IlvHierarchyNode[] getExpandedNodes()
IlvHierarchyNode
.public int getExpandedNodeCount()
getExpandedNodes().length
.IlvHierarchyNode
.getExpandedNodes()
public IlvHierarchyNode getFirstExpandedNode()
getExpandedNodes()[0]
.IlvHierarchyNode
.getExpandedNodes()
public IlvHierarchyNode getLastExpandedNode()
getExpandedNodes()[getExpandedNodeCount()-1]
.IlvHierarchyNode
.getExpandedNodes()
public IlvHierarchyNode[] getVisibleNodes()
IlvHierarchyNode
.public int getVisibleNodeCount()
getVisibleNodes().length
.IlvHierarchyNode
.getVisibleNodes()
public IlvHierarchyNode getFirstVisibleNode()
getVisibleNodes()[0]
.IlvHierarchyNode
.getVisibleNodes()
public IlvHierarchyNode getLastVisibleNode()
getVisibleNodes()[getVisibleNodeCount()-1]
.IlvHierarchyNode
.getVisibleNodes()
public int getVisibleRowCount()
getVisibleNodeCount()
.getVisibleNodeCount()
public int getFirstVisibleRow()
getFirstVisibleNode()
is
displayed on.getFirstVisibleNode()
public int getLastVisibleRow()
getLastVisibleNode()
is
displayed on.getLastVisibleNode()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.