Class DefaultSelectUIEditor
- java.lang.Object
-
- de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
-
- de.hybris.platform.cockpit.model.editor.impl.DefaultSelectUIEditor
-
- All Implemented Interfaces:
ListUIEditor,UIEditor
- Direct Known Subclasses:
DefaultFeatureUnitUIEditor,NullableSelectUIEditor
public class DefaultSelectUIEditor 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 static java.lang.StringPARAMETER_SORT_ATTRIBUTEstatic java.lang.StringPARAMETER_SORT_DIRECTION-
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 DefaultSelectUIEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddObjectToCombo(java.lang.Object value, org.zkoss.zul.Combobox box)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()protected org.zkoss.zul.ComboboxgetEditorView()protected intgetPosition(java.lang.Object item)booleanisInline()Returns whether this editor is an inline editor or not.protected voidonSavingEvent(EditorListener listener)protected voidprocessEditorBehaviourParameters(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)voidsetAvailableValues(java.util.List<? extends java.lang.Object> availableValues)voidsetFocus(org.zkoss.zk.ui.HtmlBasedComponent rootEditorComponent, boolean selectAll)Sets the focus on the given input component which can be the rootEditorComponent or a child of itprotected voidsetValue(org.zkoss.zul.Combobox combo, java.lang.Object value)-
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, 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, setOptional, setValue
-
-
-
-
Field Detail
-
PARAMETER_SORT_ATTRIBUTE
public static final java.lang.String PARAMETER_SORT_ATTRIBUTE
- See Also:
- Constant Field Values
-
PARAMETER_SORT_DIRECTION
public static final java.lang.String PARAMETER_SORT_DIRECTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
addObjectToCombo
protected void addObjectToCombo(java.lang.Object value, org.zkoss.zul.Combobox box)
-
getPosition
protected int getPosition(java.lang.Object item)
-
setValue
protected void setValue(org.zkoss.zul.Combobox combo, java.lang.Object value)
-
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
-
onSavingEvent
protected void onSavingEvent(EditorListener listener)
-
processEditorBehaviourParameters
protected void processEditorBehaviourParameters(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.
-
getEditorType
public java.lang.String getEditorType()
- Specified by:
getEditorTypein interfaceUIEditor
-
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
-
setFocus
public void setFocus(org.zkoss.zk.ui.HtmlBasedComponent rootEditorComponent, boolean selectAll)Description copied from interface:UIEditorSets the focus on the given input component which can be the rootEditorComponent or a child of it- Specified by:
setFocusin interfaceUIEditor- Overrides:
setFocusin classAbstractUIEditor- Parameters:
rootEditorComponent- the rootEditorComponent which is returned on method createViewComponentselectAll- if true, select the whole input field after focus. It is not guaranteed that the editor supports selection.
-
getEditorView
protected org.zkoss.zul.Combobox getEditorView()
-
-