Class CmsDataViewValueAccessor
- java.lang.Object
-
- org.opencms.acacia.client.widgets.complex.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 Summary
Constructors Constructor Description CmsDataViewValueAccessor(org.opencms.acacia.shared.CmsEntity entity, I_CmsAttributeHandler handler, int index)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
Gets the id of this accessor.CmsDataViewValue
getValue()
Gets the current value in the editor.void
replaceValue(java.util.List<CmsDataViewValue> replacementValues)
Replaces the value in the editor with a list of other values.void
setWidget(CmsDataViewClientWidget cmsDataViewClientWidget)
Sets the widget instance.
-
-
-
Constructor Detail
-
CmsDataViewValueAccessor
public CmsDataViewValueAccessor(org.opencms.acacia.shared.CmsEntity entity, I_CmsAttributeHandler handler, int index)
Creates a new instance.- Parameters:
entity
- the entityhandler
- the attribute handlerindex
- the value index
-
-
Method Detail
-
getId
public java.lang.String getId()
Gets the id of this accessor.- Returns:
- the id
-
getValue
public CmsDataViewValue getValue()
Gets the current value in the editor.- Returns:
- the value in the editor
-
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
-
-