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 TypeMethodDescriptionvoid
addHandler
(RenderSettingsEvent.Handler handler) Adds aRenderSettingsEvent.Handler
to the list of managed handlers.boolean
boolean
contains
(Class<? extends RenderSettings> c) protected <S extends RenderSettings>
RenderSettingscreateRenderSettings
(Class<S> settingsClass) Creates a newRenderControls
instance and initializes it with the current state.boolean
<S extends RenderSettings>
SgetSettings
(Class<S> c) Return a particular instance ofProcessingSettings
selected by its class.int
hashCode()
init
(RenderControls parent) Sets the parentRenderControls
for the currentRenderControls
instance.void
removeHandler
(RenderSettingsEvent.Handler handler) toString()
-
Constructor Details
-
DefaultRenderControls
Deprecated.For GWT-Serializer only -
DefaultRenderControls
Constructs and configures the new instance with the givenSettingsFactory
.- Parameters:
renderSettingsProvider
- theSettingsFactory
to be used.
-
-
Method Details
-
getSettings
Description copied from interface:RenderControls
Return a particular instance ofProcessingSettings
selected by its class.- Specified by:
getSettings
in interfaceRenderControls
- Type Parameters:
S
- TheRenderSettings
implementor.- Parameters:
c
- The class of settings to clear.- Returns:
- An instance of
ProcessingSettings
of the given class.
-
createRenderSettings
-
addHandler
Adds aRenderSettingsEvent.Handler
to the list of managed handlers. Adds listener-registrations-mapping.- Parameters:
handler
- The listener to add.
-
removeHandler
-
contains
- Specified by:
contains
in interfaceRenderControls
-
createSnapshot
Creates a newRenderControls
instance and initializes it with the current state.- Specified by:
createSnapshot
in interfaceRenderControls
- Returns:
- a copy of this
RenderControls
instance
-
getBaseRenderSettings
- Specified by:
getBaseRenderSettings
in interfaceRenderControls
-
getImageRenderSettings
- Specified by:
getImageRenderSettings
in interfaceRenderControls
- Returns:
- the
ImageRenderSettings
-
hashCode
public int hashCode() -
equals
-
toString