Class GenericCollectionUIEditor

java.lang.Object
de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
de.hybris.platform.cockpit.model.editor.impl.GenericCollectionUIEditor
All Implemented Interfaces:
ListUIEditor, UIEditor
Direct Known Subclasses:
GenericRangeUIEditor, MapUIEditor

public class GenericCollectionUIEditor extends AbstractUIEditor implements ListUIEditor
  • Field Details

  • Constructor Details

    • GenericCollectionUIEditor

      public GenericCollectionUIEditor()
  • Method Details

    • setSingleValueEditorDescriptor

      public void setSingleValueEditorDescriptor(PropertyEditorDescriptor singleValueEditorDescriptor)
    • getSingleValueEditorDescriptor

      public PropertyEditorDescriptor getSingleValueEditorDescriptor()
    • 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
    • updateCollectionItems

      public void updateCollectionItems()
    • getEditorType

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

      protected UIEditor createSingleValueEditor(Map<String,? extends Object> parameters)
    • 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
    • createCollectionItemListRenderer

      protected org.zkoss.zul.ListitemRenderer createCollectionItemListRenderer(Map<String,? extends Object> parameters, EditorListener listener)
    • 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
    • createNewCollectionValuesList

      protected List<Object> createNewCollectionValuesList(Object values)