Class AbstractFeatureUIEditor
java.lang.Object
de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
de.hybris.platform.cockpit.model.editor.impl.AbstractFeatureUIEditor
- All Implemented Interfaces:
UIEditor
- Direct Known Subclasses:
DefaultFeatureUIEditor
-
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
FieldsModifier and TypeFieldDescriptionprotected ClassAttributeAssignmentModelprotected UIEditorprotected org.zkoss.zk.ui.HtmlBasedComponentprotected FeatureValueprotected ClassAttributePropertyDescriptorprotected DefaultFeatureUnitUIEditorFields 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_PARAMFields inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
INITIAL_EDIT_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DefaultFeatureUnitUIEditororg.zkoss.zk.ui.HtmlBasedComponentcreateViewComponent(Object initialValue, Map<String, ? extends Object> parameters, EditorListener listener) Creates a new editor component and attaches it to the specifiedPagepage.protected ClassAttributePropertyDescriptorextractPropertyDescriptor(Map<String, ? extends Object> parameters) protected UIEditorgetEditor(ClassAttributeAssignmentModel assignment) protected ObjectgetEditorInitialValue(Object initialValue) protected EditorListenergetEditorListener(EditorListener listener) protected booleanisNumber()voidsetAssignment(ClassAttributeAssignmentModel assignment) voidsetClassificationService(ClassificationService classificationService) voidsetEditorFactory(EditorFactory editorFactory) 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 itvoidsetModelService(ModelService modelService) voidsetPropertyDescriptor(ClassAttributePropertyDescriptor propertyDescriptor) voidbooleanMethods 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
-
Field Details
-
propertyDescriptor
-
assignment
-
featureValue
-
editor
-
editorViewComponent
protected org.zkoss.zk.ui.HtmlBasedComponent editorViewComponent -
unitEditor
-
-
Constructor Details
-
AbstractFeatureUIEditor
public AbstractFeatureUIEditor()
-
-
Method Details
-
createViewComponent
public org.zkoss.zk.ui.HtmlBasedComponent createViewComponent(Object initialValue, Map<String, ? extends Object> parameters, EditorListener listener) Description copied from interface:UIEditorCreates a new editor component and attaches it to the specifiedPagepage.- 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
-
extractPropertyDescriptor
protected ClassAttributePropertyDescriptor extractPropertyDescriptor(Map<String, ? extends Object> parameters) -
createUnitUIEditor
-
getEditor
-
getEditorType
-
getEditorInitialValue
-
getEditorListener
-
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.
-
setValue
-
getAssignment
-
setAssignment
-
getPropertyDescriptor
-
setPropertyDescriptor
-
getTypeService
-
isNumber
protected boolean isNumber() -
supportUnits
public boolean supportUnits() -
setEditorFactory
-
getEditorFactory
-
setModelService
-
getModelService
-
getClassificationService
-
setClassificationService
-