SalesPoint Framework v3.0

sale.multiwindow
Class MultiWindow.MultiWindowAction

java.lang.Object
  |
  +--sale.multiwindow.MultiWindow.MultiWindowAction

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.

JDK1.3 Note Apparently all JDK1.3 compilers have abandoned the practice of not creating implicit references to enclosing instances if they are not necessary. Therefore, implementing the action as an anonymous inner class extending MultiWindowAction may still lead to NotSerializableExceptions being thrown. In such cases 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 Framework v3.0