|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
One wizard panel with a component on it.
For good performance, implementation of this interface should be as
lightweight as possible. Defer creation and initialization of
UI component of wizard panel into getComponent()
method.
Please see complete guide at http://performance.netbeans.org/howto/dialogs/wizard-panels.html
Method Summary | |
void |
addChangeListener(ChangeListener l)
Add a listener to changes of the panel's validity. |
Component |
getComponent()
Get the component displayed in this panel. |
HelpCtx |
getHelp()
Help for this panel. |
boolean |
isValid()
Test whether the panel is finished and it is safe to proceed to the next one. |
void |
readSettings(Object settings)
Provides the wizard panel with the current data--either the default data or already-modified settings, if the user used the previous and/or next buttons. |
void |
removeChangeListener(ChangeListener l)
Remove a listener to changes of the panel's validity. |
void |
storeSettings(Object settings)
Provides the wizard panel with the opportunity to update the settings with its current customized state. |
Method Detail |
public Component getComponent()
public HelpCtx getHelp()
null
if no help is suppliedpublic void readSettings(Object settings)
WizardDescriptor.Panel
.
The settings object is originally supplied to WizardDescriptor.WizardDescriptor(WizardDescriptor.Iterator,Object)
.
In the case of a TemplateWizard.Iterator
panel, the object is
in fact the TemplateWizard
.
settings
- the object representing wizard panel state
IllegalStateException
- if the the data provided
by the wizard are not valid.public void storeSettings(Object settings)
readSettings(java.lang.Object)
should not be modified (mutated);
rather, the object passed in here should be mutated according to the collected changes,
in case it is a copy.
This method can be called multiple times on one instance of WizardDescriptor.Panel
.
The settings object is originally supplied to WizardDescriptor.WizardDescriptor(WizardDescriptor.Iterator,Object)
.
In the case of a TemplateWizard.Iterator
panel, the object is
in fact the TemplateWizard
.
settings
- the object representing wizard panel statepublic boolean isValid()
Tip: if your panel is actually the component itself
(so getComponent()
returns this
), be sure to specifically
override this method, as the unrelated implementation in Component.isValid()
if not overridden could cause your wizard to behave erratically.
true
if the user has entered satisfactory informationpublic void addChangeListener(ChangeListener l)
l
- the listener to addisValid()
public void removeChangeListener(ChangeListener l)
l
- the listener to remove
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |