O - the type of the objects contained in the list.public class BeanDoubleListHandler<O> extends Object implements PropertyChangeListener
BeanDoubleList.
BeanDoubleList| Modifier and Type | Field and Description |
|---|---|
protected org.nuiton.decorator.MultiJXPathDecorator<O> |
decorator
the decorator of data
|
protected Method |
mutator
the mutator method on the property of boxed bean in the ui
|
protected BeanDoubleList<O> |
ui
ui of the handler
|
| Constructor and Description |
|---|
BeanDoubleListHandler(BeanDoubleList<O> ui) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(com.google.common.base.Predicate<O> filter) |
void |
clearFilters() |
protected void |
fireSelectionUpdate() |
Class<O> |
getBeanType() |
org.nuiton.decorator.MultiJXPathDecorator<O> |
getDecorator() |
Method |
getMutator() |
void |
init(org.nuiton.decorator.JXPathDecorator<O> decorator,
List<O> universe,
List<O> selected)
Initializes the handler of the UI
|
void |
onKeyPressedOnSelectedList(KeyEvent e) |
void |
onKeyPressedOnUniverseList(KeyEvent e) |
void |
onSelectedListClicked(MouseEvent event)
When selected list was double clicked, move selected items to universe list.
|
void |
onUniverseListClicked(MouseEvent event)
When universe list was double clicked, move selected items to selected list.
|
void |
propertyChange(PropertyChangeEvent evt) |
void |
refreshFilteredElements() |
void |
removeFilter(com.google.common.base.Predicate<O> filter) |
void |
select()
When add button was hit, move selected items (from universe list) to selected list.
|
void |
selectFirstRowIfNoSelection(FocusEvent event) |
protected void |
setHighlightFilterText(Boolean newValue) |
protected void |
setIndex(Integer oldValue,
Integer newValue)
Modifie l'index du décorateur
|
void |
setSelected(List<O> selection) |
protected void |
setSortOrder(Boolean oldValue,
Boolean newValue)
Modifie l'index du décorateur
|
void |
setUniverse(List<O> selection) |
void |
sortData()
Sort data of the model.
|
void |
togglePopup()
Toggle the popup visible state.
|
void |
unselect()
When remove button was hit, move selected items (from selected list) to universe list.
|
protected void |
updateUI(int index,
boolean reversesort) |
protected Method mutator
protected BeanDoubleList<O> ui
protected org.nuiton.decorator.MultiJXPathDecorator<O> decorator
public BeanDoubleListHandler(BeanDoubleList<O> ui)
public void init(org.nuiton.decorator.JXPathDecorator<O> decorator, List<O> universe, List<O> selected)
decorator - the decorator to use to display the data nicelyuniverse - the list of all the available itemsselected - the list of selected itemspublic void togglePopup()
public void sortData()
protected void setIndex(Integer oldValue, Integer newValue)
oldValue - l'ancienne valeurnewValue - la nouvelle valeurprotected void setSortOrder(Boolean oldValue, Boolean newValue)
oldValue - l'ancienne valeurnewValue - la nouvelle valeurprotected void setHighlightFilterText(Boolean newValue)
protected void updateUI(int index,
boolean reversesort)
public void onUniverseListClicked(MouseEvent event)
event - mouse eventpublic void onSelectedListClicked(MouseEvent event)
event - mouse eventpublic void select()
public void unselect()
protected void fireSelectionUpdate()
public Method getMutator()
public org.nuiton.decorator.MultiJXPathDecorator<O> getDecorator()
public Class<O> getBeanType()
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpublic void addFilter(com.google.common.base.Predicate<O> filter)
public void removeFilter(com.google.common.base.Predicate<O> filter)
public void clearFilters()
public void refreshFilteredElements()
public void onKeyPressedOnUniverseList(KeyEvent e)
public void onKeyPressedOnSelectedList(KeyEvent e)
public void selectFirstRowIfNoSelection(FocusEvent event)
Copyright © 2008–2013 CodeLutin. All rights reserved.