org.salespointframework.core
Class FormSheetContentCreator
java.lang.Object
org.salespointframework.core.FormSheetContentCreator
- Direct Known Subclasses:
- MessageForm.MessageFormSheetContentCreator
public abstract class FormSheetContentCreator
- extends java.lang.Object
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
- Version:
- 2.0 17/08/1999
- Author:
- Steffen Zschaler
- See Also:
FormSheet.addContentCreator(org.salespointframework.core.FormSheetContentCreator)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormSheetContentCreator
public FormSheetContentCreator()
createFormSheetContent
protected abstract void createFormSheetContent(FormSheet fs)
- Create the FormSheet's contents.
This method is called in the following circumstances:
- On creation of the FormSheet object.
- 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.