Class RenderSettingsEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<RenderSettingsEvent.Handler>
com.google.gwt.event.shared.GwtEvent<RenderSettingsEvent.Handler>
com.levigo.jadice.web.client.event.JadiceEvent<RenderSettingsEvent.Handler>
com.levigo.jadice.web.client.settings.RenderSettingsEvent
This event gets delivered whenever a
RenderSettings property change happens.
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
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 interfaceHandler for handling changes of the RenderSettingsNested classes/interfaces inherited from class com.levigo.jadice.web.client.event.JadiceEvent
JadiceEvent.Type<H> -
Constructor Summary
ConstructorsConstructorDescriptionCopy constructorRenderSettingsEvent(RenderControls parent, RenderSettings renderSettings, String propertyName, Object oldValue, Object newValue, com.google.gwt.event.shared.HasHandlers source) ConstructorRenderSettingsEvent(RenderControls parent, RenderSettings renderSettings, String propertyName, Object oldValue, Object newValue, com.google.gwt.event.shared.HasHandlers source, Page page) Constructor with page parameter -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddispatch(RenderSettingsEvent.Handler handler) Gets the new value of the changed setting, expressed as an Object.Gets the old value of the changed setting, expressed as an Object.getPage()Gets the page which is associated with the event.Gets the name of the setting that was changed.Returns the source which caused this event.Returns theRenderControlsinstance the sourceRenderSettingsbelongs to.getType()Returns a parameter string identifying this event.toString()Methods inherited from class com.levigo.jadice.web.client.event.JadiceEvent
getSourceMethods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, isLive, kill, reviveMethods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString
-
Constructor Details
-
RenderSettingsEvent
Copy constructor- Parameters:
evt- the event which should be copied
-
Method Details
-
getType
-
getRenderSettings
Returns the source which caused this event.- Returns:
- the
RenderSettingsinstance that caused this event
-
getSourceControls
- Returns:
- the
RenderControlsinstance 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.
-
getPage
Gets the page which is associated with the event.- Returns:
- The page of the event
-
toString
- Overrides:
toStringin classcom.google.web.bindery.event.shared.Event<RenderSettingsEvent.Handler>
-
paramString
Returns a parameter string identifying this event. This method is useful for event-logging and for debugging.- Returns:
- a string identifying the event and its attributes
-
getAssociatedType
- Specified by:
getAssociatedTypein classcom.google.gwt.event.shared.GwtEvent<RenderSettingsEvent.Handler>
-
dispatch
- Specified by:
dispatchin classcom.google.gwt.event.shared.GwtEvent<RenderSettingsEvent.Handler>
-