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
public abstract class AbstractFeatureUIEditor extends AbstractUIEditor
-
-
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 ClassAttributeAssignmentModel
assignment
protected UIEditor
editor
protected org.zkoss.zk.ui.HtmlBasedComponent
editorViewComponent
protected FeatureValue
featureValue
protected ClassAttributePropertyDescriptor
propertyDescriptor
protected DefaultFeatureUnitUIEditor
unitEditor
-
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 AbstractFeatureUIEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DefaultFeatureUnitUIEditor
createUnitUIEditor()
org.zkoss.zk.ui.HtmlBasedComponent
createViewComponent(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 specifiedPage
page
.protected ClassAttributePropertyDescriptor
extractPropertyDescriptor(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)
ClassAttributeAssignmentModel
getAssignment()
ClassificationService
getClassificationService()
protected UIEditor
getEditor(ClassAttributeAssignmentModel assignment)
EditorFactory
getEditorFactory()
protected java.lang.Object
getEditorInitialValue(java.lang.Object initialValue)
protected EditorListener
getEditorListener(EditorListener listener)
java.lang.String
getEditorType()
ModelService
getModelService()
ClassAttributePropertyDescriptor
getPropertyDescriptor()
TypeService
getTypeService()
protected boolean
isNumber()
void
setAssignment(ClassAttributeAssignmentModel assignment)
void
setClassificationService(ClassificationService classificationService)
void
setEditorFactory(EditorFactory editorFactory)
void
setFocus(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 itvoid
setModelService(ModelService modelService)
void
setPropertyDescriptor(ClassAttributePropertyDescriptor propertyDescriptor)
void
setValue(java.lang.Object value, java.lang.Object unitValue)
boolean
supportUnits()
-
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
-
-
-
-
Field Detail
-
propertyDescriptor
protected ClassAttributePropertyDescriptor propertyDescriptor
-
assignment
protected ClassAttributeAssignmentModel assignment
-
featureValue
protected FeatureValue featureValue
-
editor
protected UIEditor editor
-
editorViewComponent
protected org.zkoss.zk.ui.HtmlBasedComponent editorViewComponent
-
unitEditor
protected DefaultFeatureUnitUIEditor unitEditor
-
-
Method Detail
-
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:UIEditor
Creates a new editor component and attaches it to the specifiedPage
page
.- Parameters:
initialValue
- editor's initial valueparameters
- parameters passed via configuration for particular editorlistener
- theEditorListener
that will receive events when the editor's value is changed- Returns:
- the editor component
-
extractPropertyDescriptor
protected ClassAttributePropertyDescriptor extractPropertyDescriptor(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)
-
createUnitUIEditor
protected DefaultFeatureUnitUIEditor createUnitUIEditor()
-
getEditor
protected UIEditor getEditor(ClassAttributeAssignmentModel assignment)
-
getEditorType
public java.lang.String getEditorType()
-
getEditorInitialValue
protected java.lang.Object getEditorInitialValue(java.lang.Object initialValue)
-
getEditorListener
protected EditorListener getEditorListener(EditorListener listener)
-
setFocus
public void setFocus(org.zkoss.zk.ui.HtmlBasedComponent rootEditorComponent, boolean selectAll)
Description copied from interface:UIEditor
Sets the focus on the given input component which can be the rootEditorComponent or a child of it- Specified by:
setFocus
in interfaceUIEditor
- Overrides:
setFocus
in 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
public void setValue(java.lang.Object value, java.lang.Object unitValue)
-
getAssignment
public ClassAttributeAssignmentModel getAssignment()
-
setAssignment
public void setAssignment(ClassAttributeAssignmentModel assignment)
-
getPropertyDescriptor
public ClassAttributePropertyDescriptor getPropertyDescriptor()
-
setPropertyDescriptor
public void setPropertyDescriptor(ClassAttributePropertyDescriptor propertyDescriptor)
-
getTypeService
public TypeService getTypeService()
-
isNumber
protected boolean isNumber()
-
supportUnits
public boolean supportUnits()
-
setEditorFactory
public void setEditorFactory(EditorFactory editorFactory)
-
getEditorFactory
public EditorFactory getEditorFactory()
-
setModelService
public void setModelService(ModelService modelService)
-
getModelService
public ModelService getModelService()
-
getClassificationService
public ClassificationService getClassificationService()
-
setClassificationService
public void setClassificationService(ClassificationService classificationService)
-
-