O - the type of the objects contained in the list.public class BeanDoubleListHandler<O> extends Object implements PropertyChangeListener, UIHandler<BeanDoubleList<O>>
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 |
| Constructor and Description |
|---|
BeanDoubleListHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(Predicate<O> filter) |
void |
afterInit(BeanDoubleList<O> ui) |
void |
beforeInit(BeanDoubleList<O> ui) |
void |
clearFilters() |
protected void |
fireSelectionUpdate() |
Class<O> |
getBeanType() |
org.nuiton.decorator.MultiJXPathDecorator<O> |
getDecorator() |
Method |
getMutator() |
JPopupMenu |
getSelectedListPopup(boolean showIt) |
void |
init(org.nuiton.decorator.JXPathDecorator<O> decorator,
org.nuiton.decorator.JXPathDecorator<O> decorator2,
List<O> universe,
List<O> selected)
Initializes the handler of the UI
|
void |
init(org.nuiton.decorator.JXPathDecorator<O> decorator,
List<O> universe,
List<O> selected)
Initializes the handler of the UI
|
void |
moveDownSelected(O item)
Move down a selected item.
|
void |
moveUpSelected(O item)
Move up a selected item.
|
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 |
recomputeButtonStates() |
void |
refreshFilteredElements() |
void |
removeFilter(Predicate<O> filter) |
void |
select()
When add button was hit, move selected items (from universe list) to selected list.
|
void |
selectFirstRowIfNoSelection(FocusEvent e) |
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 JPopupMenu getSelectedListPopup(boolean showIt)
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 init(org.nuiton.decorator.JXPathDecorator<O> decorator, org.nuiton.decorator.JXPathDecorator<O> decorator2, List<O> universe, List<O> selected)
decorator - the decorator to use to display the data nicelydecorator2 - the selected decorator to use to display the selected data nicely (if none, then reuse the first one)universe - the list of all the available itemsselected - the list of selected itemspublic void recomputeButtonStates()
public void togglePopup()
public void sortData()
public void moveUpSelected(O item)
item - the selected itempublic void moveDownSelected(O item)
item - the selected itemprotected 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 clearFilters()
public void refreshFilteredElements()
public void onKeyPressedOnUniverseList(KeyEvent e)
public void onKeyPressedOnSelectedList(KeyEvent e)
public void selectFirstRowIfNoSelection(FocusEvent e)
public void beforeInit(BeanDoubleList<O> ui)
beforeInit in interface UIHandler<BeanDoubleList<O>>public void afterInit(BeanDoubleList<O> ui)
afterInit in interface UIHandler<BeanDoubleList<O>>Copyright © 2008–2021 Ultreia.io. All rights reserved.