O - le type des objet contenus dans le modèle du composant.public class BeanComboBoxHandler<O> extends Object implements PropertyChangeListener, UIHandler<BeanComboBox<O>>
BeanComboBox.
Note: ce handler n'est pas stateless et n'est donc pas partageable entre plusieurs ui.
BeanComboBox| Modifier and Type | Field and Description |
|---|---|
protected org.jdesktop.swingx.autocomplete.ObjectToStringConverter |
convertor
the convertor used to auto-complete
|
protected org.nuiton.decorator.MultiJXPathDecorator<O> |
decorator
the decorator of data
|
protected boolean |
init |
static org.apache.logging.log4j.Logger |
log |
protected Method |
mutator
the mutator method on the property of boxed bean in the ui
|
protected BeanComboBox<O> |
ui |
| Constructor and Description |
|---|
BeanComboBoxHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterInit(BeanComboBox<O> ui) |
void |
beforeInit(BeanComboBox<O> ui) |
Class<O> |
getBeanType() |
org.nuiton.decorator.MultiJXPathDecorator<O> |
getDecorator() |
protected Method |
getMutator() |
Document |
getOriginalDocument() |
Class<?> |
getTargetClass()
Deprecated.
since 2.5.9 (use now method
getBeanType()) |
void |
init(org.nuiton.decorator.JXPathDecorator<O> decorator,
List<O> data)
Initialise le handler de l'ui
|
boolean |
isEmpty() |
void |
propertyChange(PropertyChangeEvent evt) |
protected void |
setIndex(Integer oldValue,
Integer newValue)
Modifie l'index du décorateur
|
protected void |
setSelectedItem(O oldValue,
O newValue)
Modifie la valeur sélectionnée dans la liste déroulante.
|
void |
sortData()
Sort data of the model.
|
void |
togglePopup()
Toggle the popup visible state.
|
protected void |
updateUI(int index,
boolean reversesort) |
public static final org.apache.logging.log4j.Logger log
protected BeanComboBox<O> ui
protected Method mutator
protected org.jdesktop.swingx.autocomplete.ObjectToStringConverter convertor
protected org.nuiton.decorator.MultiJXPathDecorator<O> decorator
protected boolean init
public void init(org.nuiton.decorator.JXPathDecorator<O> decorator, List<O> data)
decorator - le decorateur a utiliserdata - la liste des données a gérerpublic void togglePopup()
public boolean isEmpty()
true if there is no data in comboBox,
false otherwise.public void sortData()
protected void setIndex(Integer oldValue, Integer newValue)
oldValue - l'ancienne valeurnewValue - la nouvelle valeurprotected void updateUI(int index,
boolean reversesort)
protected void setSelectedItem(O oldValue, O newValue)
oldValue - l'ancienne valeurnewValue - la nouvelle valeurpublic Document getOriginalDocument()
public org.nuiton.decorator.MultiJXPathDecorator<O> getDecorator()
public Class<O> getBeanType()
@Deprecated public Class<?> getTargetClass()
getBeanType())protected Method getMutator()
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpublic void beforeInit(BeanComboBox<O> ui)
beforeInit in interface UIHandler<BeanComboBox<O>>public void afterInit(BeanComboBox<O> ui)
afterInit in interface UIHandler<BeanComboBox<O>>Copyright © 2008–2020 Ultreia.io. All rights reserved.