Class AnnotationRenderSettings
java.lang.Object
com.levigo.jadice.web.shared.model.settings.AbstractListenableRenderSettings
com.levigo.jadice.web.shared.model.settings.AnnotationRenderSettings
- All Implemented Interfaces:
RenderSettings
JWTs client-side AnnotationRenderSettings. They are also sent to the server as part of the
RenderSpecification when requesting tiles.
The server reads the client-side settings and apply them to the server-side AnnotationRenderSettings implementation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(Annotation annotation, Document document) Decides whether the given annotation is accepted for rendering on the client side.void
clear()
remove all disabledTypesCreates and returns a snapshot copy of this settings instance.boolean
Returns an immutable set of currently disabled (not visible) annotation types.int
hashCode()
boolean
isAnnotationRenderingEnabled
(AnnotationFactory annotationFactory) Returns whether annotation of given type should be rendered or not.void
setAnnotationRenderingEnabled
(AnnotationFactory annotationFactory, boolean enabled) Sets a flag whether annotations of given type should be rendered or not.protected void
Initializes additional settings.toString()
void
update
(String propertyName, RenderSettings other, Object... details) Updates this instance property specified by given property name with the value provided by the other processing setting.Methods inherited from class com.levigo.jadice.web.shared.model.settings.AbstractListenableRenderSettings
addListener, fireChanged, getParent, init, removeListener
-
Field Details
-
ALL_TYPES_VISIBILITY
Identifier key for a layer enabled state change, used within aRenderSettingsEvent
to recognize the kind of change which happen.- See Also:
-
TYPE_VISIBILITY
- See Also:
-
-
Constructor Details
-
AnnotationRenderSettings
public AnnotationRenderSettings()Default Constructor.
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
isAnnotationRenderingEnabled
Returns whether annotation of given type should be rendered or not.- Parameters:
annotationFactory
- the annotation type- Returns:
- boolean
-
setAnnotationRenderingEnabled
Sets a flag whether annotations of given type should be rendered or not. If the rendering of all annotation types is enabled (isAnnotationRenderingEnabled(AnnotationFactory)
), this flag decides whether annotations of given type are rendered or not. Otherwise if the general settingsisAnnotationRenderingEnabled(AnnotationFactory)
is nottrue
, the enabled state of the specific annotation type does not matter.- Parameters:
annotationFactory
- describing annotation typeenabled
- the enabled state of a specific annotation type
-
getDisabledAnnotationTypes
Returns an immutable set of currently disabled (not visible) annotation types.- Returns:
- currently disabled (not visible) annotation types
-
clear
public void clear()remove all disabledTypes -
setDefaults
protected void setDefaults()Description copied from class:AbstractListenableRenderSettings
Initializes additional settings.- Specified by:
setDefaults
in classAbstractListenableRenderSettings
-
createSnapshot
Creates and returns a snapshot copy of this settings instance.- Returns:
- snapshot copy
-
accept
Decides whether the given annotation is accepted for rendering on the client side. Restricted permissions or completely disabling some annotation types may prohibit client side rendering.- Parameters:
annotation
- theAnnotation
document
- theDocument
containing the Annotation- Returns:
- true when the given Annotation is accepted for rendering
-
toString
-