be.lassi.ui.util
Class Move<E>
java.lang.Object
be.lassi.ui.util.Move<E>
public class Move<E>
- extends java.lang.Object
Helps moving selected elements up or down in a List.
Constructor Summary |
Move()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Move
public Move()
down
public SelectionInterval down(LList<E> list,
int[] indexes)
- Moves elements down.
- Parameters:
list
- the list in which to move the selected elements downindexes
- the indexes of the selected elements
- Returns:
- the indexes of the selected elements after the move
up
public SelectionInterval up(LList<E> list,
int[] indexes)
- Moves elements up.
- Parameters:
list
- the list in which to move the selected elements upindexes
- the indexes of the selected elements
- Returns:
- the indexes of the selected elements after the move