SalesPoint v3.3 API

sale.multiwindow
Class MultiWindow.MultiWindowAction

java.lang.Object
  extended by sale.multiwindow.MultiWindow.MultiWindowAction
All Implemented Interfaces:
Serializable, Action
Enclosing class:
MultiWindow

public abstract static class MultiWindow.MultiWindowAction
extends Object
implements Action

Special Actions are necessary for MultiWindow-MenuSheets in order for the serialization to work properly. Whenever creating Actions that refer a MultiWindow directly, always use this class instead of simply deriving Action and let it have a direct reference to the MultiWindow. The latter will result in a NotSerializationException in MultiWindow when trying to make the Shop persistent.

Implementing the action as an anonymous inner class extending MultiWindowAction may still lead to NotSerializableExceptions being thrown. Therefore, attempt to implement the actions as static top-level classes derived from MultiWindowAction.

See Also:
Serialized Form

Field Summary
protected  MultiWindow m_mwReference
          The MultiWindow referenced by this Action.
 
Constructor Summary
MultiWindow.MultiWindowAction(MultiWindow mwReference)
          Create a new MultiWindowAction referencing the given MultiWindow.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface sale.Action
doAction
 

Field Detail

m_mwReference

protected transient MultiWindow m_mwReference
The MultiWindow referenced by this Action. Action.doAction(sale.SaleProcess, sale.SalesPoint) must always use this reference instead of a reference created via the inner class mechanism.

Constructor Detail

MultiWindow.MultiWindowAction

public MultiWindow.MultiWindowAction(MultiWindow mwReference)
Create a new MultiWindowAction referencing the given MultiWindow.


SalesPoint v3.3 API