SalesPoint v3.3 API

data.stdforms.singletableformsheet
Class EditButtonStrategy

java.lang.Object
  extended by sale.stdforms.FormSheetStrategy
      extended by data.stdforms.singletableformsheet.EditButtonStrategy
All Implemented Interfaces:
Serializable, ProcessErrorCodes
Direct Known Subclasses:
AbstractAddCatalogItemStrategy, DefaultRemoveCatalogItemStrategy

public abstract class EditButtonStrategy
extends FormSheetStrategy

Abstract super class for strategies that can be associated with the "Add" and the "Remove" button of a SingleTableFormSheet.

The strategy defines a sub-process that can be integrated into the process that displayed the FormSheet to perform the editing.

Since:
v2.0
Author:
Steffen Zschaler
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class sale.stdforms.FormSheetStrategy
FormSheetStrategy.ErrorHandler
 
Field Summary
 
Fields inherited from class sale.stdforms.FormSheetStrategy
DEFAULT_ERROR_HANDLER, m_ehErrHandler, MSG_POPUP_ERROR_HANDLER
 
Fields inherited from interface sale.ProcessErrorCodes
DATABASKET_CONFLICT_ERROR, DUPLICATE_KEY_EXCEPTION, ERR_INTERNAL, ERR_LOWERBOUND, ERR_NOERROR, ERR_UPPERBOUND, NOT_ENOUGH_ELEMENTS_ERROR, REMOVE_VETO_EXCEPTION
 
Constructor Summary
EditButtonStrategy()
           
 
Method Summary
abstract  Transition getEditProcess(SingleTableFormSheet stfs, SaleProcess p, SalesPoint sp)
          Get the first transition of the process that will perform the editing.
 
Methods inherited from class sale.stdforms.FormSheetStrategy
error, setErrorHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditButtonStrategy

public EditButtonStrategy()
Method Detail

getEditProcess

public abstract Transition getEditProcess(SingleTableFormSheet stfs,
                                          SaleProcess p,
                                          SalesPoint sp)
Get the first transition of the process that will perform the editing. The process can have any number of Gates and Transitions and display any number of Form- and MenuSheets. Normally, the sub-process should end at the gate at which the SingleTableFormSheet is being displayed, which can be obtained by SingleTableFormSheet.getGate().

Parameters:
stfs - the SingleTableFormSheet that triggers the sub-process.
p - the process into which the sub-process will be implanted.
sp - the SalesPoint at which the FormSheet is displayed, if any.
Override:
Always.

SalesPoint v3.3 API