public static interface WizardDescriptor.Panel<Data>
WizardDescriptor.Panel.getComponent()
method.
Please see complete guide at http://performance.netbeans.org/howto/dialogs/wizard-panels.htmlModifier and Type | Method and Description |
---|---|
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(Data 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(Data settings)
Provides the wizard panel with the opportunity to update the
settings with its current customized state.
|
Component getComponent()
HelpCtx getHelp()
null
if no help is suppliedvoid readSettings(Data 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 stateIllegalStateException
- if the the data provided
by the wizard are not valid.void storeSettings(Data settings)
WizardDescriptor.Panel.readSettings(Data)
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 stateboolean isValid()
Tip: if your panel is actually the component itself
(so WizardDescriptor.Panel.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 informationvoid addChangeListener(ChangeListener l)
l
- the listener to addWizardDescriptor.Panel.isValid()
void removeChangeListener(ChangeListener l)
l
- the listener to remove