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 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 label
      help - the attribute help information
      widgetName - the widget name
      widgetConfig - the widget configuration
      defaultValue - the attribute default value
      displayType - the display type
      visible - if the attribute should be visible in the editor
      localSynchronized - if the attribute should be synchronized across all locales
      dynamicallyLoaded - if the attribute should be loaded dynamically
    • 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

      public String getHelp()
      Returns the attribute help information.

      Returns:
      the attribute help information
    • getLabel

      public String 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

      public boolean isDisplayColumn()
      Returns the if the widget should be displayed in compact view.

      Returns:
      true if the widget should be displayed in compact view
    • isDisplaySingleLine

      public boolean isDisplaySingleLine()
      Returns true if the widget should be displayed in single line view.

      Returns:
      true if the widget should be displayed in single line view
    • isDynamicallyLoaded

      public boolean isDynamicallyLoaded()
      Returns true 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

      public boolean isLocaleSynchronized()
      Returns if the attribute should be synchronized across all locales.

      Returns:
      true if the attribute should be synchronized across all locales
    • isVisible

      public boolean 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

      public void setDisplayType(String displayType)
      Sets the widget display type.

      Parameters:
      displayType - the widget display type