Class CmsDataViewValueAccessor

java.lang.Object
org.opencms.acacia.client.widgets.complex.CmsDataViewValueAccessor

public class CmsDataViewValueAccessor extends Object
Class responsible for reading data view values from the editor, and writing them back to the editor.

  • Constructor Details

    • CmsDataViewValueAccessor

      public CmsDataViewValueAccessor(org.opencms.acacia.shared.CmsEntity entity, I_CmsAttributeHandler handler, int index)
      Creates a new instance.

      Parameters:
      entity - the entity
      handler - the attribute handler
      index - the value index
  • Method Details

    • getId

      public String getId()
      Gets the id of this accessor.

      Returns:
      the id
    • getValue

      Gets the current value in the editor.

      Returns:
      the value in the editor
    • replaceValue

      public void replaceValue(List<CmsDataViewValue> replacementValues)
      Replaces the value in the editor with a list of other values.

      Parameters:
      replacementValues - the list of replacement values
    • setWidget

      public void setWidget(CmsDataViewClientWidget cmsDataViewClientWidget)
      Sets the widget instance.

      Parameters:
      cmsDataViewClientWidget - the widget instance