Class ContextAreaReferenceCollectionUIEditor

    • Field Detail

      • componentShortLabel

        protected java.lang.String componentShortLabel
      • MIN_VISIBLE_ROWS

        protected static final java.lang.String MIN_VISIBLE_ROWS
        See Also:
        Constant Field Values
      • MAX_VISIBLE_ROWS

        protected static final java.lang.String MAX_VISIBLE_ROWS
        See Also:
        Constant Field Values
      • MAX_ROWS_IN_LIST

        protected static final java.lang.String MAX_ROWS_IN_LIST
        See Also:
        Constant Field Values
      • showMoreButton

        protected org.zkoss.zul.Toolbarbutton showMoreButton
      • rootObject

        protected TypedObject rootObject
        The object to which we are collecting references.
      • propertyInfo

        protected java.lang.String propertyInfo
    • Constructor Detail

      • ContextAreaReferenceCollectionUIEditor

        public ContextAreaReferenceCollectionUIEditor()
    • Method Detail

      • getSingleLabel

        protected java.lang.String getSingleLabel​(java.lang.Object value)
      • getCollapsedCombinedLabel

        protected java.lang.String getCollapsedCombinedLabel​(java.util.Collection items,
                                                             int maxEntries)
      • 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 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()