public class RenderSettingsEvent extends Object implements Serializable
RenderSettings
property change happen.
This event provides access to the name, the old and new value of the changed property. If the new value is a primitive type (such as int or boolean) it must be wrapped as the corresponding java.lang.* object type (such as Integer or Boolean).
Null values may be provided for the old and the new values if their true values are not known.
A reference of the changed RenderSettings
can be obtained by a call of
getSource()
. If available, the RenderControls
instance which the render setting
belongs to can be accessed by a call of getSourceControls()
.
The types of render settings which support change event propagation are descendants of
AbstractListenableRenderSettings
.
Constructor and Description |
---|
RenderSettingsEvent(RenderControls parent,
RenderSettings source,
String propertyName,
Object oldValue,
Object newValue)
Constructor
|
RenderSettingsEvent(RenderSettingsEvent evt)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
Object |
getNewValue()
Gets the new value of the changed setting, expressed as an Object.
|
Object |
getOldValue()
Gets the old value of the changed setting, expressed as an Object.
|
String |
getPropertyName()
Gets the name of the setting that was changed.
|
RenderSettings |
getSource()
Returns the source
RenderSettings instance which caused this event. |
RenderControls |
getSourceControls()
Returns the
RenderControls instance the source RenderSettings belongs to. |
String |
paramString()
Returns a parameter string identifying this event.
|
String |
toString() |
public RenderSettingsEvent(RenderControls parent, RenderSettings source, String propertyName, Object oldValue, Object newValue)
parent
- the render controls the changed render settings object belongs tosource
- the changed render settings objectpropertyName
- the name of the changed propertyoldValue
- the old value of the propertynewValue
- the new value of the propertypublic RenderSettingsEvent(RenderSettingsEvent evt)
evt
- the event which should be copiedpublic RenderSettings getSource()
RenderSettings
instance which caused this event.public RenderControls getSourceControls()
public String getPropertyName()
public Object getNewValue()
public Object getOldValue()
public String paramString()
Copyright © 2024 levigo holding gmbh. All rights reserved.