Class BeanComboBoxHandler<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
      • convertor

        protected org.jdesktop.swingx.autocomplete.ObjectToStringConverter convertor
        the convertor used to auto-complete
      • decorator

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

        protected boolean init
    • Constructor Detail

      • BeanComboBoxHandler

        public BeanComboBoxHandler()
    • 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.
        Since:
        2.5.9
      • sortData

        public void sortData()
        Sort data of the model.
        Since:
        2.5.10
      • setIndex

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

        protected void updateUI​(int index,
                                boolean reversesort)
      • 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
      • getOriginalDocument

        public Document getOriginalDocument()
        Returns:
        le document de l'éditeur avant complétion.
      • getDecorator

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

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

        @Deprecated
        public Class<?> getTargetClass()
        Deprecated.
        since 2.5.9 (use now method getBeanType())
        Obtain the type of objects contained in the comboBox using the model mutator.
        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é.