SalesPoint Framework v3.0

sale
Class FormSheetContentCreator

java.lang.Object
  |
  +--sale.FormSheetContentCreator

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.

Hooks:
Adding Items To Container - Button , Removing Items From Container - Button , Define a FormSheet
Since:
v2.0
Version:
2.0 17/08/1999
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!

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

SalesPoint Framework v3.0