Class DefaultEnumUIEditor

java.lang.Object
de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
de.hybris.platform.cockpit.model.editor.impl.DefaultEnumUIEditor
All Implemented Interfaces:
EnumUIEditor, ListUIEditor, UIEditor

public class DefaultEnumUIEditor extends AbstractUIEditor implements EnumUIEditor
  • Constructor Details

    • DefaultEnumUIEditor

      public DefaultEnumUIEditor()
  • Method Details

    • addEnumToCombo

      protected void addEnumToCombo(Object value, org.zkoss.zul.Combobox box)
    • getPosition

      protected int getPosition(Object item)
    • setEnumValue

      protected void setEnumValue(org.zkoss.zul.Combobox combo, Object value)
    • 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.
      Specified by:
      createViewComponent in interface UIEditor
      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
    • isInline

      public boolean isInline()
      Description copied from interface: UIEditor
      Returns whether this editor is an inline editor or not.
      Specified by:
      isInline in interface UIEditor
      Returns:
      true, if inline
    • getEditorType

      public String getEditorType()
      Specified by:
      getEditorType in interface UIEditor
    • getAvailableValues

      public List<? extends Object> getAvailableValues()
      Specified by:
      getAvailableValues in interface ListUIEditor
    • setAvailableValues

      public void setAvailableValues(List<? extends Object> availableValues)
      Specified by:
      setAvailableValues in interface ListUIEditor
    • 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.
    • setOptional

      public void setOptional(boolean optional)
      Specified by:
      setOptional in interface UIEditor
      Overrides:
      setOptional in class AbstractUIEditor
    • validateAndFireEvent

      protected void validateAndFireEvent(EditorListener listener)
    • getEditorView

      protected org.zkoss.zul.Combobox getEditorView()