Class GenericCollectionUIEditor
- java.lang.Object
-
- de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
-
- de.hybris.platform.cockpit.model.editor.impl.GenericCollectionUIEditor
-
- All Implemented Interfaces:
ListUIEditor,UIEditor
- Direct Known Subclasses:
GenericRangeUIEditor,MapUIEditor
public class GenericCollectionUIEditor extends AbstractUIEditor implements ListUIEditor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
AbstractUIEditor.CancelButtonContainer, AbstractUIEditor.CancelListener, AbstractUIEditor.ErrorDiv
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String_100PERCENTprotected static java.lang.StringCELLPADDINGprotected static java.lang.StringCELLSPACINGprotected static java.lang.StringHEIGHTprotected static java.lang.StringSINGLE_VALUE_EDITOR_CODEprotected static java.lang.StringWIDTH-
Fields inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
ATTRIBUTE_QUALIFIER_PARAM, CANCEL_BTN, EVENT_SOURCE, inEditMode, initialEditValue, initialInputString, PROPERTY_DESCRIPTOR_PARAM, SEARCH_MODE_PARAM
-
Fields inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
INITIAL_EDIT_STRING
-
-
Constructor Summary
Constructors Constructor Description GenericCollectionUIEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.zkoss.zul.ListitemRenderercreateCollectionItemListRenderer(java.util.Map<java.lang.String,? extends java.lang.Object> parameters, EditorListener listener)protected java.util.List<java.lang.Object>createNewCollectionValuesList(java.lang.Object values)protected UIEditorcreateSingleValueEditor(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)org.zkoss.zk.ui.HtmlBasedComponentcreateViewComponent(java.lang.Object initialValue, java.util.Map<java.lang.String,? extends java.lang.Object> parameters, EditorListener listener)Creates a new editor component and attaches it to the specifiedPagepage.java.util.List<? extends java.lang.Object>getAvailableValues()java.lang.StringgetEditorType()PropertyEditorDescriptorgetSingleValueEditorDescriptor()booleanisInline()Returns whether this editor is an inline editor or not.voidsetAvailableValues(java.util.List<? extends java.lang.Object> availableValues)voidsetSingleValueEditorDescriptor(PropertyEditorDescriptor singleValueEditorDescriptor)voidupdateCollectionItems()-
Methods inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
applyReferenceRelatedAttributes, createEditor, createEditor, createEditor, createEditor, filterValues, fireValueChanged, getRootSearchType, getUIEditor, getValue, isEditable, isEditable, isOptional, isSearchMode, parseInitialInputString, parseTemplateCodes, persistValues, persistValues, setEditable, setFocus, setOptional, setValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
getValue, isEditable, isOptional, setEditable, setFocus, setOptional, setValue
-
-
-
-
Field Detail
-
WIDTH
protected static final java.lang.String WIDTH
- See Also:
- Constant Field Values
-
HEIGHT
protected static final java.lang.String HEIGHT
- See Also:
- Constant Field Values
-
CELLPADDING
protected static final java.lang.String CELLPADDING
- See Also:
- Constant Field Values
-
CELLSPACING
protected static final java.lang.String CELLSPACING
- See Also:
- Constant Field Values
-
_100PERCENT
protected static final java.lang.String _100PERCENT
- See Also:
- Constant Field Values
-
SINGLE_VALUE_EDITOR_CODE
protected static final java.lang.String SINGLE_VALUE_EDITOR_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setSingleValueEditorDescriptor
public void setSingleValueEditorDescriptor(PropertyEditorDescriptor singleValueEditorDescriptor)
-
getSingleValueEditorDescriptor
public PropertyEditorDescriptor getSingleValueEditorDescriptor()
-
createViewComponent
public org.zkoss.zk.ui.HtmlBasedComponent createViewComponent(java.lang.Object initialValue, java.util.Map<java.lang.String,? extends java.lang.Object> parameters, EditorListener listener)Description copied from interface:UIEditorCreates a new editor component and attaches it to the specifiedPagepage.- Specified by:
createViewComponentin interfaceUIEditor- Parameters:
initialValue- editor's initial valueparameters- parameters passed via configuration for particular editorlistener- theEditorListenerthat will receive events when the editor's value is changed- Returns:
- the editor component
-
updateCollectionItems
public void updateCollectionItems()
-
getEditorType
public java.lang.String getEditorType()
- Specified by:
getEditorTypein interfaceUIEditor
-
createSingleValueEditor
protected UIEditor createSingleValueEditor(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)
-
isInline
public boolean isInline()
Description copied from interface:UIEditorReturns whether this editor is an inline editor or not.
-
createCollectionItemListRenderer
protected org.zkoss.zul.ListitemRenderer createCollectionItemListRenderer(java.util.Map<java.lang.String,? extends java.lang.Object> parameters, EditorListener listener)
-
getAvailableValues
public java.util.List<? extends java.lang.Object> getAvailableValues()
- Specified by:
getAvailableValuesin interfaceListUIEditor
-
setAvailableValues
public void setAvailableValues(java.util.List<? extends java.lang.Object> availableValues)
- Specified by:
setAvailableValuesin interfaceListUIEditor
-
createNewCollectionValuesList
protected java.util.List<java.lang.Object> createNewCollectionValuesList(java.lang.Object values)
-
-