org.salespointframework.desktop.multiwindow
Class CascadeAction

java.lang.Object
  extended by org.salespointframework.desktop.multiwindow.MultiWindow.MultiWindowAction
      extended by org.salespointframework.desktop.multiwindow.CascadeAction
All Implemented Interfaces:
Action

 class CascadeAction
extends MultiWindow.MultiWindowAction


Field Summary
 
Fields inherited from class org.salespointframework.desktop.multiwindow.MultiWindow.MultiWindowAction
m_mwReference
 
Constructor Summary
CascadeAction(MultiWindow owner)
           
 
Method Summary
 void doAction(SaleProcess p, SalesPoint sp)
          Perform the actual action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CascadeAction

public CascadeAction(MultiWindow owner)
Method Detail

doAction

public void doAction(SaleProcess p,
                     SalesPoint sp)
Description copied from interface: Action
Perform the actual action.

The parameters define the context in which the action is performed:

  1. It will always be performed in the context of the Shop. The Shop can be retrieved via Shop.getTheShop().
  2. If sp != null, sp will define the SalesPoint that is the context of this action.
  3. If p != null, p will define the SaleProcess that is the context of this action.

Note, that virtually any combination of the parameters makes sense.

Parameters:
p - the SaleProcess context of the action.
sp - the SalesPoint context of the action.