Class CmsDataViewValueAccessor


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

    • Constructor Detail

      • 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 Detail

      • getId

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

        Returns:
        the id
      • replaceValue

        public void replaceValue​(java.util.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