|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.document.render.RenderSettingsEvent
public class RenderSettingsEvent
This event gets delivered whenever a 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 Summary | |
---|---|
RenderSettingsEvent(RenderControls parent,
RenderSettings source,
String propertyName,
Object oldValue,
Object newValue)
Constructor |
|
RenderSettingsEvent(RenderSettingsEvent evt)
Copy constructor |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 copiedMethod Detail |
---|
public RenderSettings getSource()
RenderSettings
instance which caused this event.
public RenderControls getSourceControls()
RenderControls
instance the source RenderSettings
belongs to. May
be null
if unknown.
public String getPropertyName()
public Object getNewValue()
public Object getOldValue()
public String toString()
toString
in class Object
public String paramString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |