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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangedOrderPath(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.voidsetSkipPaths(Collection<String> skipPaths) Sets the paths to be skipped during locale synchronization.voidsetSyncValues(Map<String, String> syncValues) Sets the locale synchronization values.booleanReturns 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_CmsWidgetServiceAdds the given path to the list of paths where child attributes have change their order.- Specified by:
addChangedOrderPathin interfaceI_CmsWidgetService- Overrides:
addChangedOrderPathin classCmsWidgetService- Parameters:
attributePath- the attribute path- See Also:
-
getDefaultAttributeValue
Description copied from interface:I_CmsWidgetServiceReturns the default attribute value.- Specified by:
getDefaultAttributeValuein interfaceI_CmsWidgetService- Overrides:
getDefaultAttributeValuein 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_CmsWidgetServiceReturns 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:
shouldRemoveLastValueAfterUnfocusin interfaceI_CmsWidgetService- Overrides:
shouldRemoveLastValueAfterUnfocusin classCmsWidgetService- Parameters:
widget- the widget to check- Returns:
- true if the value should be disabled
- See Also:
-