________ ________
| Item 1 | >> | Item 3 |
| Item 2 | > | Item 4 |
| | | |
| | < | |
|________| << |________|
| Item 1 | >> | Item 3 |
| Item 2 | > | Item 4 |
| | | |
| | < | |
|________| << |________|
Where:
>> : move all right
> : move all selected right
... same, but to left side
> : move all selected right
... same, but to left side
If there's nothing like this ready-to-use, can somebody shot an idea on how to implement? Some first steps would be nice... :)
In the model, would be something like:
- In the left <select>, a list of "available" categories
- In the right <select>, a list of "associated" categories
- In the right <select>, a list of "associated" categories
I think on something like this:
ShuttleList s = new ShuttleList("shuttle", new ShuttleModel(availableItems, selectedItems) {
public void populateItem(Item i) {
...
}
}));
public void populateItem(Item i) {
...
}
}));
And then:
List newSelectedItems ((ShuttleModel) s.getModel()).getSelectedItems();
Now, 'newSelectedItems' should have objects that came from 'availableItems' and shouldn't have objects removed from 'selectedItems'.
[]'s
--
Bruno Borges
Summa Technologies Inc.
www.summa-tech.com
(11) 8565-7739 - (11) 3846-1622
