Class AbstractComboBoxModelAndRenderer<T extends java.lang.Comparable<T>>

    • Constructor Detail

      • AbstractComboBoxModelAndRenderer

        public AbstractComboBoxModelAndRenderer()
    • Method Detail

      • setComboBox

        public void setComboBox​(JSComboBox<T> combobox)
        Sets the combobox managed by this model
        Parameters:
        combobox - The combobox
      • getSelectedElement

        public T getSelectedElement()
        Returns the selected element
        Returns:
        The selected element
      • setSelectedElement

        public void setSelectedElement​(T element)
        Sets the selected element
        Parameters:
        element - The selected element
      • addElement

        public void addElement​(T element)
        Adds an element to this model
        Parameters:
        element - The element
      • render

        protected abstract def.dom.Node render​(T element,
                                               boolean inlist)
        Renders an element
        Parameters:
        element - The element
        inlist - true if the rendered element is added to the list, false otherwise (the rendered element is used to show the selected value)
        Returns:
        The renderer element