org.salespointframework.core
Class FormSheetContentCreator

java.lang.Object
  extended by org.salespointframework.core.FormSheetContentCreator
Direct Known Subclasses:
ListViewFormSheet.SLVFSContentCreator, MessageForm.MessageFormSheetContentCreator, SingleTableFormSheet.STFSContentCreator

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)

Field Summary
private  FormSheetContentCreator m_fsccParent
          The parent of this FormSheetContentCreator.
 
Constructor Summary
FormSheetContentCreator()
           
 
Method Summary
protected abstract  void createFormSheetContent(FormSheet fs)
          Create the FormSheet's contents.
(package private)  void createFormSheetContent(FormSheet fs, boolean fCallParent)
          Internal communication method called by FormSheet.
(package private)  void setParent(FormSheetContentCreator fsccParent)
          Internal communication method called by FormSheet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_fsccParent

private FormSheetContentCreator m_fsccParent
The parent of this FormSheetContentCreator. The parent of a FormSheetContentCreator is the FormSheetContentCreator that was added to the FormSheet immediately before this FormSheetContentCreator.

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.

createFormSheetContent

void createFormSheetContent(FormSheet fs,
                            boolean fCallParent)
Internal communication method called by FormSheet.

Parameters:
fs - the FormSheet that needs to be set up.
fCallParent - if true, the entire chain of FormSheetContentCreators will be called.

setParent

void setParent(FormSheetContentCreator fsccParent)
Internal communication method called by FormSheet.

Parameters:
fsccParent - the new parent of this FormSheetContentCreator