Class BeanFilterableComboBoxHandler<O>

    • Field Detail

      • log

        public static final org.apache.logging.log4j.Logger log
      • mutator

        protected Method mutator
        the mutator method on the property of boxed bean in the ui
      • decorator

        protected io.ultreia.java4all.decoration.Decorator decorator
        the decorator of data
      • init

        protected boolean init
    • Constructor Detail

      • BeanFilterableComboBoxHandler

        public BeanFilterableComboBoxHandler()
    • Method Detail

      • init

        public void init​(io.ultreia.java4all.decoration.Decorator decorator,
                         List<O> data)
        Initialise le handler de l'ui
        Parameters:
        decorator - le decorateur a utiliser
        data - la liste des données a gérer
      • togglePopup

        public void togglePopup()
        Toggle the popup visible state.
      • isEmpty

        public boolean isEmpty()
        Returns:
        true if there is no data in comboBox, false otherwise.
      • addItems

        public void addItems​(Iterable<O> items)
        Add the given items into the comboBox.

        Note: The item will be inserted at his correct following the selected ordering.

        Parameters:
        items - items to add in comboBox.
        Since:
        2.5.28
      • removeItems

        public void removeItems​(Iterable<O> items)
        Remove the given items from the comboBox model.

        Note: If this item was selected, then selection will be cleared.

        Parameters:
        items - items to remove from the comboBox model
        Since:
        2.5.28
      • addItem

        public void addItem​(O item)
        Add the given item into the comboBox.

        Note: The item will be inserted at his correct following the selected ordering.

        Parameters:
        item - item to add in comboBox.
        Since:
        2.5.9
      • removeItem

        public void removeItem​(O item)
        Remove the given item from the comboBox model.

        Note: If this item was selected, then selection will be cleared.

        Parameters:
        item - the item to remove from the comboBox model
        Since:
        2.5.9
      • sortData

        public void sortData()
        Sort data of the model.
      • reset

        public void reset()
        Reset the combo-box; says remove any selected item and filter text.
      • focusCombo

        public void focusCombo()
        Focus combo only if autoFocus ui property is on.
        Since:
        2.8.5
      • setFilterable

        protected void setFilterable​(Boolean oldValue,
                                     Boolean newValue)
        Modifie l'état filterable de l'ui.
        Parameters:
        oldValue - l'ancienne valeur
        newValue - la nouvelle valeur
      • setIndex

        protected void setIndex​(Integer oldValue,
                                Integer newValue)
        Modifie l'index du décorateur
        Parameters:
        oldValue - l'ancienne valeur
        newValue - la nouvelle valeur
      • setSortOrder

        protected void setSortOrder​(Boolean oldValue,
                                    Boolean newValue)
        Modifie l'index du décorateur
        Parameters:
        oldValue - l'ancienne valeur
        newValue - la nouvelle valeur
      • updateUI

        protected void updateUI​(int index,
                                boolean reversesort)
      • unselectItem

        protected void unselectItem()
      • setSelectedItem

        protected void setSelectedItem​(O oldValue,
                                       O newValue)
        Modifie la valeur sélectionnée dans la liste déroulante.
        Parameters:
        oldValue - l'ancienne valeur
        newValue - la nouvelle valeur
      • getDecorator

        public io.ultreia.java4all.decoration.Decorator getDecorator()
      • getBeanType

        public Class<O> getBeanType()
        Returns:
        get the type of objects contained in the comboBox model.
      • getMutator

        protected Method getMutator()
        Returns:
        le mutateur a utiliser pour modifier le bean associé.
      • fireEmpty

        protected void fireEmpty​(boolean wasEmpty)