|
|||||||||
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 com.levigo.jadice.document.render.InventoryRenderSettingsEvent
public class InventoryRenderSettingsEvent
This event gets delivered whenever a RenderSettings
, which supports the propagation of
changes, has been changed in a RenderControlInventory
.
The RenderControlInventory
in which the change happens is accessible by a call of
getInventory()
. If the change concerns a page specific settings the page instance can be
retrieved by a call of the getPage()
method. Otherwise if the change concerns the
document settings the getPage()
method always will return null
.
Provided by its super class this event allows the 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
RenderSettingsEvent.getSource()
. If available, the RenderControls
instance which the render setting
belongs to can be accessed by a call of RenderSettingsEvent.getSourceControls()
.
The types of render settings which support change event propagation are descendants of
AbstractListenableRenderSettings
.
Constructor Summary | |
---|---|
InventoryRenderSettingsEvent(RenderControlInventory inv,
Page page,
RenderControls rc,
RenderSettings source,
String propertyName,
Object oldValue,
Object newValue)
Constructor |
|
InventoryRenderSettingsEvent(RenderControlInventory inv,
Page page,
RenderSettingsEvent evt)
Constructor |
Method Summary | |
---|---|
RenderControlInventory |
getInventory()
Returns the render control inventory in which the change happens |
Page |
getPage()
Returns the page reference if the change concerns page specific settings, or null
if a change of the document render settings cause this event |
Methods inherited from class com.levigo.jadice.document.render.RenderSettingsEvent |
---|
getNewValue, getOldValue, getPropertyName, getSource, getSourceControls, paramString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InventoryRenderSettingsEvent(RenderControlInventory inv, Page page, RenderControls rc, RenderSettings source, String propertyName, Object oldValue, Object newValue)
inv
- the changed render control inventorypage
- the page reference if the change concerns page specific settings, or
null
if a change of the document render settings cause this eventrc
- the render controls object the changed render settings belonging tosource
- the changed render settings objectpropertyName
- the name of the changed propertyoldValue
- the old value of the propertynewValue
- the new value of the propertypublic InventoryRenderSettingsEvent(RenderControlInventory inv, Page page, RenderSettingsEvent evt)
inv
- the changed render control inventorypage
- the page reference if the change concerns page specific settings, or
null
if a change of the document render settings cause this eventevt
- the event which originates this eventMethod Detail |
---|
public RenderControlInventory getInventory()
RenderControlInventory
public Page getPage()
null
if a change of the document render settings cause this event
null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |