Overview  Package   Class  Tree  Index 

be.lassi.ui.util
Class Move<E>

java.lang.Object
  extended by 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()
           
 
Method Summary
 SelectionInterval down(LList<E> list, int[] indexes)
          Moves elements down.
 SelectionInterval up(LList<E> list, int[] indexes)
          Moves elements up.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Move

public Move()
Method Detail

down

public SelectionInterval down(LList<E> list,
                              int[] indexes)
Moves elements down.

Parameters:
list - the list in which to move the selected elements down
indexes - 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 up
indexes - the indexes of the selected elements
Returns:
the indexes of the selected elements after the move

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2