Class CmsDefaultWidgetService
java.lang.Object
org.opencms.acacia.client.CmsWidgetService
org.opencms.ade.contenteditor.client.CmsDefaultWidgetService
- All Implemented Interfaces:
I_CmsWidgetService
Default OpenCms widget service implementation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangedOrderPath
(String attributePath) Adds the given path to the list of paths where child attributes have change their order.getDefaultAttributeValue
(String attributeName, String simpleValuePath) Returns the default attribute value.Returns the paths to be skipped during locale synchronization.Returns the locale synchronization values.void
setSkipPaths
(Collection<String> skipPaths) Sets the paths to be skipped during locale synchronization.void
setSyncValues
(Map<String, String> syncValues) Sets the locale synchronization values.boolean
Returns true if the value which this widget is being used for should be disabled if it is unfocused and the last remaining attribute value for a given attribute.Methods inherited from class org.opencms.acacia.client.CmsWidgetService
addConfigurations, addRenderer, addRenderer, addWidgetFactory, getAttributeFormWidget, getAttributeHelp, getAttributeInlineWidget, getAttributeLabel, getRendererForAttribute, getRendererForAttribute, getRendererForType, init, isDisplayCompact, isDisplaySingleLine, isVisible, registerComplexWidgetAttribute, setDefaultRenderer, setWidgetFactories
-
Constructor Details
-
CmsDefaultWidgetService
public CmsDefaultWidgetService()
-
-
Method Details
-
addChangedOrderPath
Description copied from interface:I_CmsWidgetService
Adds the given path to the list of paths where child attributes have change their order.- Specified by:
addChangedOrderPath
in interfaceI_CmsWidgetService
- Overrides:
addChangedOrderPath
in classCmsWidgetService
- Parameters:
attributePath
- the attribute path- See Also:
-
getDefaultAttributeValue
Description copied from interface:I_CmsWidgetService
Returns the default attribute value.- Specified by:
getDefaultAttributeValue
in interfaceI_CmsWidgetService
- Overrides:
getDefaultAttributeValue
in classCmsWidgetService
- Parameters:
attributeName
- the attribute namesimpleValuePath
- the value path- Returns:
- the default value
- See Also:
-
getSkipPaths
Returns the paths to be skipped during locale synchronization.- Returns:
- the paths to be skipped during locale synchronization
-
getSyncValues
Returns the locale synchronization values.- Returns:
- the locale synchronization values
-
setSkipPaths
Sets the paths to be skipped during locale synchronization.- Parameters:
skipPaths
- the paths to be skipped during locale synchronization to set
-
setSyncValues
Sets the locale synchronization values.- Parameters:
syncValues
- the locale synchronization values to set
-
shouldRemoveLastValueAfterUnfocus
Description copied from interface:I_CmsWidgetService
Returns true if the value which this widget is being used for should be disabled if it is unfocused and the last remaining attribute value for a given attribute.The main use case is disabling empty text input fields.
- Specified by:
shouldRemoveLastValueAfterUnfocus
in interfaceI_CmsWidgetService
- Overrides:
shouldRemoveLastValueAfterUnfocus
in classCmsWidgetService
- Parameters:
widget
- the widget to check- Returns:
- true if the value should be disabled
- See Also:
-