org.salespointframework.desktop.dnd
Class MoveAction

java.lang.Object
  extended by org.salespointframework.desktop.dnd.MoveAction

public abstract class MoveAction
extends java.lang.Object

describes a move action

Since:
4.0
Author:
Thomas Kissinger

Field Summary
(package private)  boolean moveAllowed
          true, if move is allowed
 
Constructor Summary
MoveAction(boolean moveAllowed)
          default constructor
 
Method Summary
 int countItems()
          maximum number of items available
 boolean isAllowed()
          moveAllowed
abstract  void perform(java.lang.Object item, int count)
          execute the move action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

moveAllowed

boolean moveAllowed
true, if move is allowed

Constructor Detail

MoveAction

public MoveAction(boolean moveAllowed)
default constructor

Parameters:
moveAllowed - moveAllowed
Method Detail

isAllowed

public boolean isAllowed()
moveAllowed

Returns:

perform

public abstract void perform(java.lang.Object item,
                             int count)
execute the move action

Parameters:
item -
count - number of items

countItems

public int countItems()
maximum number of items available

Returns: