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
  • Field Details

  • 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: UIEditor
      Creates a new editor component and attaches it to the specified Page page.
      Parameters:
      initialValue - editor's initial value
      parameters - parameters passed via configuration for particular editor
      listener - the EditorListener that will receive events when the editor's value is changed
      Returns:
      the editor component
    • extractPropertyDescriptor

      protected ClassAttributePropertyDescriptor extractPropertyDescriptor(Map<String,? extends Object> parameters)
    • createUnitUIEditor

      protected DefaultFeatureUnitUIEditor createUnitUIEditor()
    • getEditor

      protected UIEditor getEditor(ClassAttributeAssignmentModel assignment)
    • getEditorType

      public String getEditorType()
    • getEditorInitialValue

      protected Object getEditorInitialValue(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 interface UIEditor
      Overrides:
      setFocus in class AbstractUIEditor
      Parameters:
      rootEditorComponent - the rootEditorComponent which is returned on method createViewComponent
      selectAll - if true, select the whole input field after focus. It is not guaranteed that the editor supports selection.
    • setValue

      public void setValue(Object value, 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)