![]() |
![]()
|
|
WizardDescriptorClassWizardDescriptor
allows developer to create wizard from supplied
WizardDescriptor.Iterator
or array of
WizardDesriptor.Panel .
It also allows wizard developer to easy satisfy
UI Guidelines for Wizards
in NetBeans.
WizardDescriptor can create wizard panel (steps, graphics, help on
the left; subtitle and user panel on the right). To achieve that, developer
have to use WizardDescriptor.putProperty() or
JComponent.putClientProperty()
in his/her panel to set needed properties (e.g. String[] for steps,
URL for help, some Boolean for layout control, ...).
To create simple wizard try this: WizardDescriptor wd = new WizardDescriptor( new WizardDescriptor.Panel[] = { myPanel1, myPanel2, myPanel3, myPanel4 });It will create four steps wizard with no additional graphic. To achieve creation of subtitle, steps pane, help tab, ... one have to set initialization properties. Wizard panel initializationUseWizardDescriptor.putProperty() to set following initialization
properties.
Boolean properties are Boolean.FALSE
by default. Initialization properties could be set
also in the first panel (through JComponent.putClientProperty() ) of supplied
iterator. Later change of these properties will not cause change of wizard
behavior. Properties have to be set before TopManager.getDefault().createDialog(wd)
is called.
Follow properties which could be changed at wizard runtime. Wizard panel propertiesThese properties could be changed dynamically.
JComponent.putClientProperty() ):
WizardDescriptor.putProperty() or
JComponent.putClientProperty() )
except "WizardPanel_helpURL" which can be set only with
JComponent.putClientProperty() .
If both are used at the same time then
WizardDescriptor.putProperty() matters.
WizardDescriptor listens on property changes of not initialization properties
and makes immediate changes.
|
The Core | Debugger | Distributed App Support | Experimental | Form Editor | Java | Misc | OpenIDE | Source Editor | Test Tools | Tools | Version Control | Web
|