public class RowHeightChangedEvent extends PropertyChangeEvent
RowHeightChangedEvent
is fired by a Gantt
configuration
to notify interested VerticalExpansionListener
s when the row
height has been modified. You can register a VerticalExpansionListener
by
calling the addVerticalExpansionListener
method in IlvHierarchyChart
or IlvGanttConfiguration
.Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_NAME
The property name of "rowHeight" that is used for events of this class.
|
source
Constructor and Description |
---|
RowHeightChangedEvent(IlvGanttConfiguration ganttConfig,
IlvHierarchyNode row,
int oldRowHeight,
int newRowHeight)
Creates a new
RowHeightChangedEvent generated by the specified Gantt
configuration that can be used to notify its registered vertical expansion listeners when a row height has been modified. |
RowHeightChangedEvent(IlvGanttConfiguration ganttConfig,
int oldRowHeight,
int newRowHeight)
Creates a new
RowHeightChangedEvent generated by the specified Gantt
configuration that can be used to notify its registered vertical expansion listeners when the global row height has been
modified. |
Modifier and Type | Method and Description |
---|---|
IlvGanttConfiguration |
getGanttConfiguration()
Returns the Gantt configuration where the event originated.
|
int |
getNewRowHeight()
Returns the new row height value.
|
int |
getOldRowHeight()
Returns the old row height value.
|
IlvHierarchyNode |
getRow()
Returns the row whose height has changed, or
null if the height has
globally changed for all rows. |
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId, toString
getSource
public static final String PROPERTY_NAME
public RowHeightChangedEvent(IlvGanttConfiguration ganttConfig, int oldRowHeight, int newRowHeight)
RowHeightChangedEvent
generated by the specified Gantt
configuration that can be used to notify its registered vertical expansion listeners
when the global row height has been
modified.ganttConfig
- The Gantt configuration where the event originated.oldRowHeight
- The old row height.newRowHeight
- The new row height.public RowHeightChangedEvent(IlvGanttConfiguration ganttConfig, IlvHierarchyNode row, int oldRowHeight, int newRowHeight)
RowHeightChangedEvent
generated by the specified Gantt
configuration that can be used to notify its registered vertical expansion listeners
when a row height has been modified.ganttConfig
- The Gantt configuration where the event originated.row
- The row whose height has changed, or null
if the
height has been changed globally for all rows. The type of the
specified row must match the row organization of the
configuration. In other words, if ganttConfig.getRowType()
is IlvGanttConfiguration.ACTIVITY_ROWS
,
then row must be an activity. If
ganttConfig.getRowType()
is IlvGanttConfiguration.RESOURCE_ROWS
, then row
must be an resource.oldRowHeight
- The old row height.newRowHeight
- The new row height.public IlvGanttConfiguration getGanttConfiguration()
IlvGanttConfiguration
where the event originated.public IlvHierarchyNode getRow()
null
if the height has
globally changed for all rows.public int getOldRowHeight()
public int getNewRowHeight()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.