Package org.opencms.acacia.shared
Class CmsAttributeConfiguration
java.lang.Object
org.opencms.acacia.shared.CmsAttributeConfiguration
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsAttributeConfiguration
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
The attribute configuration. Stating the attribute label, help, widget name and widget configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the default value.Returns the widget display type.getHelp()
Returns the attribute help information.getLabel()
Returns the attribute label.Returns the widget configuration.Returns the widget name.boolean
Returns the if the widget should be displayed in compact view.boolean
Returnstrue
if the widget should be displayed in single line view.boolean
Returnstrue
if the attribute is set dynamically and not from the XML content.boolean
Returns if the attribute should be synchronized across all locales.boolean
Returns if the given attribute should be visible in the editor.void
setDisplayType
(String displayType) Sets the widget display type.
-
Constructor Details
-
CmsAttributeConfiguration
public CmsAttributeConfiguration(String label, String help, String widgetName, String widgetConfig, String defaultValue, String displayType, boolean visible, boolean localSynchronized, boolean dynamicallyLoaded) Constructor.- Parameters:
label
- the attribute labelhelp
- the attribute help informationwidgetName
- the widget namewidgetConfig
- the widget configurationdefaultValue
- the attribute default valuedisplayType
- the display typevisible
- if the attribute should be visible in the editorlocalSynchronized
- if the attribute should be synchronized across all localesdynamicallyLoaded
- if the attribute should be loaded dynamically
-
CmsAttributeConfiguration
protected CmsAttributeConfiguration()Constructor. Used for serialization only.
-
-
Method Details
-
getDefaultValue
Returns the default value.- Returns:
- the default value
-
getDisplayType
Returns the widget display type.- Returns:
- the widget display type
-
getHelp
Returns the attribute help information.- Returns:
- the attribute help information
-
getLabel
Returns the attribute label.- Returns:
- the attribute label
-
getWidgetConfig
Returns the widget configuration.- Returns:
- the widget configuration
-
getWidgetName
Returns the widget name.- Returns:
- the widget name
-
isDisplayColumn
Returns the if the widget should be displayed in compact view.- Returns:
true
if the widget should be displayed in compact view
-
isDisplaySingleLine
Returnstrue
if the widget should be displayed in single line view.- Returns:
true
if the widget should be displayed in single line view
-
isDynamicallyLoaded
Returnstrue
if the attribute is set dynamically and not from the XML content.- Returns:
true
if the attribute is set dynamically and not from the XML content
-
isLocaleSynchronized
Returns if the attribute should be synchronized across all locales.- Returns:
true
if the attribute should be synchronized across all locales
-
isVisible
Returns if the given attribute should be visible in the editor.- Returns:
true
if the given attribute should be visible in the editor
-
setDisplayType
Sets the widget display type.- Parameters:
displayType
- the widget display type
-