Class InventoryRenderSettingsEvent
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
JadiceEvent.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
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Handler for handling changes in the InventoryRenderSettings.Nested classes/interfaces inherited from class com.levigo.jadice.web.client.event.JadiceEvent
JadiceEvent.Type<H>
-
Constructor Summary
ConstructorsConstructorDescriptionInventoryRenderSettingsEvent
(RenderControlInventory inv, Page page, RenderSettingsEvent evt) ConstructorInventoryRenderSettingsEvent
(RenderControlInventory inv, Page page, RenderControls rc, RenderSettings renderSettings, String propertyName, Object oldValue, Object newValue, com.google.gwt.event.shared.HasHandlers source) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Returns the render control inventory in which the change happensGets the new value of the changed setting, expressed as an Object.Gets the old value of the changed setting, expressed as an Object.getPage()
Returns the page reference if the change concerns page specific settings, ornull
if a change of the document render settings cause this eventGets the name of the setting that was changed.Returns the source which caused this event.Returns theRenderControls
instance the sourceRenderSettings
belongs to.getType()
Methods inherited from class com.levigo.jadice.web.client.event.JadiceEvent
getSource
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, isLive, kill, revive
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
-
Constructor Details
-
Method Details
-
getType
-
getInventory
Returns the render control inventory in which the change happens- Returns:
RenderControlInventory
-
getPage
Returns the page reference if the change concerns page specific settings, ornull
if a change of the document render settings cause this event- Returns:
- page or
null
-
getRenderSettings
Returns the source which caused this event.- Returns:
- the
RenderSettings
instance that caused this event
-
getSourceControls
- Returns:
- the
RenderControls
instance the source belongs to
-
getPropertyName
Gets the name of the setting that was changed.- Returns:
- The name of the setting that was changed.
-
getNewValue
Gets the new value of the changed setting, expressed as an Object.- Returns:
- The new value, expressed as an Object.
-
getOldValue
Gets the old value of the changed setting, expressed as an Object.- Returns:
- The old value, expressed as an Object.
-
getAssociatedType
- Specified by:
getAssociatedType
in classcom.google.gwt.event.shared.GwtEvent<InventoryRenderSettingsEvent.Handler>
-
dispatch
- Specified by:
dispatch
in classcom.google.gwt.event.shared.GwtEvent<InventoryRenderSettingsEvent.Handler>
-