public class FilterableDoubleListHandler<O extends Serializable> extends Object implements UIHandler<FilterableDoubleList<O>>
| Constructor and Description |
|---|
FilterableDoubleListHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(Predicate<O> filter) |
void |
afterInit(FilterableDoubleList<O> ui) |
void |
beforeInit(FilterableDoubleList<O> ui) |
void |
clearFilters() |
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 |
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 event) |
protected void |
setHighlightFilterText(Boolean newValue) |
protected void |
setIndex(Integer oldValue,
Integer newValue)
Modifie l'index du décorateur
|
protected void |
setSortOrder(Boolean oldValue,
Boolean newValue)
Modifie l'index du décorateur
|
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) |
public void beforeInit(FilterableDoubleList<O> ui)
beforeInit in interface UIHandler<FilterableDoubleList<O extends Serializable>>public void afterInit(FilterableDoubleList<O> ui)
afterInit in interface UIHandler<FilterableDoubleList<O extends Serializable>>public void clearFilters()
public void refreshFilteredElements()
public void onUniverseListClicked(MouseEvent event)
event - mouse eventpublic void onSelectedListClicked(MouseEvent event)
event - mouse eventpublic void select()
public void unselect()
public void onKeyPressedOnUniverseList(KeyEvent e)
public void onKeyPressedOnSelectedList(KeyEvent e)
public void selectFirstRowIfNoSelection(FocusEvent event)
public void moveUpSelected(O item)
item - the selected itempublic void moveDownSelected(O item)
item - the selected itempublic JPopupMenu getSelectedListPopup(boolean showIt)
public void togglePopup()
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 itemsprotected 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)
Copyright © 2008–2017 Ultreia.io. All rights reserved.