public final class LabelLayoutParameterEvent extends EventObject
LabelLayoutParameterEventListener
on a label
layout instance, a LabelLayoutParameterEvent
is
delivered to the listener each time the method IlvLabelLayout.setParametersUpToDate(boolean)
is called , that is,
each time a layout parameter changes and each time the layout is
successfully performed. This allows you to react when a layout
parameter changes, for instance, to update a display that shows the
current values of the layout parameters or to update a flag indicating
whether the set of layout parameters must be saved to a file.source
Constructor and Description |
---|
LabelLayoutParameterEvent(IlvLabelLayout layout,
boolean parametersUpToDate)
Creates the event.
|
LabelLayoutParameterEvent(IlvLabelLayout layout,
Object label,
String parameterName,
boolean parametersUpToDate)
Creates the event.
|
Modifier and Type | Method and Description |
---|---|
Object |
getLabel()
Returns the label that is affected by the layout parameter.
|
IlvLabelLayout |
getLabelLayout()
Returns the label layout instance of the event.
|
String |
getParameterName()
Returns the name of the parameter that has been changed.
|
boolean |
isParametersUpToDate()
|
getSource, toString
public LabelLayoutParameterEvent(IlvLabelLayout layout, boolean parametersUpToDate)
layout
- The layout instance source of the event.parametersUpToDate
- true
if the label layout
parameters are set up-to-date; false
if a layout
parameter changed.public LabelLayoutParameterEvent(IlvLabelLayout layout, Object label, String parameterName, boolean parametersUpToDate)
layout
- The layout instance source of the event.label
- The label that is affected, or null
if all
labels are affected.parameterName
- The name of the layout parameter that has changed,
or null
, when the layout was successfully performed.parametersUpToDate
- If the layout parameters are set up-to-date,
true
is returned. If a layout parameter has changed,
false
is returned.public IlvLabelLayout getLabelLayout()
public boolean isParametersUpToDate()
true
if IlvLabelLayout.setParametersUpToDate(boolean)
was called with a
true
argument. This usually happens when a label layout
parameter changed.
public String getParameterName()
null
if the layout became up to date but no specific
parameter has changed.public Object getLabel()
null
if the layout parameter is global or
affects many or all labels.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.