SalesPoint v3.3 API

sale
Class FormSheetContentCreator

java.lang.Object
  extended by sale.FormSheetContentCreator
All Implemented Interfaces:
Serializable

public abstract class FormSheetContentCreator
extends Object
implements Serializable

Helper class that creates the contents of a FormSheet.

A FormSheetContentsCreator is used by FormSheets to create their contents, i.e. to set their component and the buttons in the FormSheet's button bar. Objectifying this process is needed to make FormSheets persistent as the Swing components' serializability is not reliable. Therefore, whenever you create a serializable FormSheet, use FormSheetContentsCreators.

Since:
v2.0
Author:
Steffen Zschaler
See Also:
FormSheet.addContentCreator(sale.FormSheetContentCreator), Serialized Form

Constructor Summary
FormSheetContentCreator()
           
 
Method Summary
protected abstract  void createFormSheetContent(FormSheet fs)
          Create the FormSheet's contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormSheetContentCreator

public FormSheetContentCreator()
Method Detail

createFormSheetContent

protected abstract void createFormSheetContent(FormSheet fs)
Create the FormSheet's contents.

This method is called in the following circumstances:

  1. On creation of the FormSheet object.
  2. Whenever the FormSheet gets deserialized from a stream.

Although the FormSheet whose contents is to be set is passed as a parameter, a new instance of the FormSheetContentCreator is needed with every new instance of the FormSheet!

Parameters:
fs - the FormSheet whose contents is to be created.
Override:
Always

SalesPoint v3.3 API