Class DefaultRenderControls
java.lang.Object
com.levigo.jadice.web.client.settings.DefaultRenderControls
- All Implemented Interfaces:
RenderControls,Serializable
The JWT implementation of
RenderControls.
To be used as base class providing easy and fast access to the most commonly used
RenderSettings. The RenderControls define a set of parameters (=settings) that
control the content rendering process.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.For GWT-Serializer onlyDefaultRenderControls(SettingsFactory renderSettingsProvider) Constructs and configures the new instance with the givenSettingsFactory. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHandler(RenderSettingsEvent.Handler handler) Adds aRenderSettingsEvent.Handlerto the list of managed handlers.booleanbooleancontains(Class<? extends RenderSettings> c) protected <S extends RenderSettings>
RenderSettingscreateRenderSettings(Class<S> settingsClass) Creates a newRenderControlsinstance and initializes it with the current state.boolean<S extends RenderSettings>
SgetSettings(Class<S> c) Return a particular instance ofProcessingSettingsselected by its class.inthashCode()init(RenderControls parent) Sets the parentRenderControlsfor the currentRenderControlsinstance.voidremoveHandler(RenderSettingsEvent.Handler handler) toString()
-
Constructor Details
-
DefaultRenderControls
Deprecated.For GWT-Serializer only -
DefaultRenderControls
Constructs and configures the new instance with the givenSettingsFactory.- Parameters:
renderSettingsProvider- theSettingsFactoryto be used.
-
-
Method Details
-
getSettings
Description copied from interface:RenderControlsReturn a particular instance ofProcessingSettingsselected by its class.- Specified by:
getSettingsin interfaceRenderControls- Type Parameters:
S- TheRenderSettingsimplementor.- Parameters:
c- The class of settings to clear.- Returns:
- An instance of
ProcessingSettingsof the given class.
-
createRenderSettings
-
addHandler
Adds aRenderSettingsEvent.Handlerto the list of managed handlers. Adds listener-registrations-mapping.- Parameters:
handler- The listener to add.
-
removeHandler
-
contains
- Specified by:
containsin interfaceRenderControls
-
createSnapshot
Creates a newRenderControlsinstance and initializes it with the current state.- Specified by:
createSnapshotin interfaceRenderControls- Returns:
- a copy of this
RenderControlsinstance
-
getBaseRenderSettings
- Specified by:
getBaseRenderSettingsin interfaceRenderControls
-
getImageRenderSettings
- Specified by:
getImageRenderSettingsin interfaceRenderControls- Returns:
- the
ImageRenderSettings
-
hashCode
public int hashCode() -
equals
-
toString