Class ContextAreaReferenceCollectionUIEditor

All Implemented Interfaces:
ReferenceUIEditor, UIEditor

public class ContextAreaReferenceCollectionUIEditor extends DefaultReferenceCollectionUIEditor
  • Field Details

  • Constructor Details

    • ContextAreaReferenceCollectionUIEditor

      public ContextAreaReferenceCollectionUIEditor()
  • Method Details

    • getSingleLabel

      protected String getSingleLabel(Object value)
    • getCollapsedCombinedLabel

      protected String getCollapsedCombinedLabel(Collection items, int maxEntries)
    • 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
      Overrides:
      createViewComponent in class DefaultReferenceCollectionUIEditor
      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
    • createViewElement

      public void createViewElement(org.zkoss.zul.Div div)
      Renders a Listbox inside the div with referenced elements.
      Parameters:
      div - the parent div inside which listbox will be rendered
    • 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 DefaultReferenceCollectionUIEditor
      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.
    • getMinVisibleRowsNumber

      protected int getMinVisibleRowsNumber()
    • getMaxVisibleRowsNumber

      protected int getMaxVisibleRowsNumber()
    • getMaxRowsInList

      protected int getMaxRowsInList()