|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object triptracker.client.ui.AbstractFormManager
public abstract class AbstractFormManager
An abstract FormManager
class to handle adding, removal and
displaying of forms. This class implements basic logic for form management
and calls addComponent, removeComponent and showComponent so that the
sub-class can modify its component container when needed. This class exists
as convenience for creating form manager objects.
Extend this class to create a FormManager and override the addComponent, removeComponent and showComponent methods for simplified form component management. If you implement the FormManager interface, you have to write all the form management logic, which can cause code duplication where more than one form manager class exists.
Field Summary | |
---|---|
protected Form |
currentForm
The currently activated form. |
protected List<Form> |
forms
List of currently registered forms. |
Constructor Summary | |
---|---|
AbstractFormManager()
|
Method Summary | |
---|---|
abstract void |
addComponent(Form form)
Invoked as a result of a form calling register. |
void |
deregister(Form form)
De-register a form from a form manager. |
void |
register(Form form)
Register a form on the form manager. |
abstract void |
removeComponent(Form form)
Invoked as a result of a form calling deregister. |
abstract void |
showComponent(Form form)
Invoked as a result of a call to showForm. |
void |
showForm(Form form)
Shows the specified form on the container controlled by the form manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected List<Form> forms
protected Form currentForm
Constructor Detail |
---|
public AbstractFormManager()
Method Detail |
---|
public void register(Form form)
JComponent
from the
form to its container object.
register
in interface FormManager
form
- to registerpublic void deregister(Form form)
deregister
in interface FormManager
form
- to de-registerpublic void showForm(Form form)
showForm
in interface FormManager
form
- to showpublic abstract void addComponent(Form form)
form
- form to add to containerregister(Form)
public abstract void removeComponent(Form form)
form
- form to remove from containerderegister(Form)
public abstract void showComponent(Form form)
form
- form to displayshowForm(Form)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |