public class InventoryRenderSettingsEvent extends RenderSettingsEvent
RenderSettings
, which supports the propagation of
changes, has been changed in a RenderControlsInventory
.
The RenderControlsInventory
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 and Description |
---|
InventoryRenderSettingsEvent(RenderControlsInventory inv,
Page page,
RenderControls rc,
RenderSettings source,
String propertyName,
Object oldValue,
Object newValue)
Constructor
|
InventoryRenderSettingsEvent(RenderControlsInventory inv,
Page page,
RenderSettingsEvent evt)
Constructor
|
Modifier and Type | Method and Description |
---|---|
RenderControlsInventory |
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 |
getNewValue, getOldValue, getPropertyName, getSource, getSourceControls, paramString, toString
public InventoryRenderSettingsEvent(RenderControlsInventory 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(RenderControlsInventory 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 eventpublic RenderControlsInventory getInventory()
RenderControlsInventory
public Page getPage()
null
if a change of the document render settings cause this eventnull
Copyright © 2024 levigo holding gmbh. All rights reserved.