O - the type of the objects contained in the list.public class BeanDoubleListHandler<O> extends Object
BeanDoubleList.
BeanDoubleList| Modifier and Type | Field and Description |
|---|---|
protected org.nuiton.util.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 |
|---|---|
protected void |
fireSelectionUpdate() |
Method |
getMutator() |
void |
init(org.nuiton.util.decorator.JXPathDecorator<O> decorator,
List<O> universe,
List<O> selected)
Initializes the handler of the UI
|
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 |
select()
When add button was hit, move selected items (from universe list) to selected list.
|
void |
unselect()
When remove button was hit, move selected items (from selected list) to universe list.
|
protected Method mutator
protected BeanDoubleList<O> ui
protected org.nuiton.util.decorator.MultiJXPathDecorator<O> decorator
public BeanDoubleListHandler(BeanDoubleList<O> ui)
public void init(org.nuiton.util.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 onUniverseListClicked(MouseEvent event)
event - mouse eventpublic void onSelectedListClicked(MouseEvent event)
event - mouse eventpublic void select()
public void unselect()
protected void fireSelectionUpdate()
public Method getMutator()
Copyright © 2008-2013 CodeLutin. All Rights Reserved.