|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.salespointframework.core.FormSheetContentCreator
public abstract class FormSheetContentCreator
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.
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 |
---|
private FormSheetContentCreator m_fsccParent
Constructor Detail |
---|
public FormSheetContentCreator()
Method Detail |
---|
protected abstract void createFormSheetContent(FormSheet fs)
This method is called in the following circumstances:
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!
fs
- the FormSheet whose contents is to be created.void createFormSheetContent(FormSheet fs, boolean fCallParent)
fs
- the FormSheet that needs to be set up.fCallParent
- if true, the entire chain of FormSheetContentCreators will be called.void setParent(FormSheetContentCreator fsccParent)
fsccParent
- the new parent of this FormSheetContentCreator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |