| |
|
| java.lang.Object org.openide.NotifyDescriptor org.openide.DialogDescriptor org.openide.WizardDescriptor
All known Subclasses: org.openide.loaders.TemplateWizardIteratorWrapper, org.openide.loaders.NewObjectWizardPanel, org.openide.loaders.TemplateWizard, org.openide.loaders.TemplateWizardPanel1, org.openide.loaders.TemplateWizardPanel2, org.openide.loaders.TemplateWizardIterImpl,
Inner Class :public interface Iterator | |
Inner Class :public interface Panel | |
Inner Class :public interface FinishPanel extends Panel<Data> | |
Inner Class :public interface ValidatingPanel extends Panel<Data> | |
Inner Class :public interface AsynchronousValidatingPanel extends ValidatingPanel<Data> | |
Inner Class :public interface FinishablePanel extends Panel<Data> | |
Inner Class :public interface InstantiatingIterator extends Iterator<Data> | |
Inner Class :public interface AsynchronousInstantiatingIterator extends InstantiatingIterator<Data> | |
Inner Class :public interface ProgressInstantiatingIterator extends AsynchronousInstantiatingIterator<Data> | |
Inner Class :public static class ArrayIterator extends Object implements Iterator<Data> | |
Inner Class :static class FinishAction extends Object | |
Constructor Summary | |
public | WizardDescriptor(Panel<Data>[] wizardPanels, Data settings) Create a new wizard from a fixed list of panels, passing some settings to the panels. | public | WizardDescriptor(Panel<WizardDescriptor>[] wizardPanels) Create a new wizard from a fixed list of panels with settings
defaulted to this . | public | WizardDescriptor(Iterator<Data> panels, Data settings) Create wizard for a sequence of panels, passing some settings to the panels. | protected | WizardDescriptor() Constructor for subclasses. | public | WizardDescriptor(Iterator<WizardDescriptor> panels) Create wizard for a sequence of panels, with settings
defaulted to this . |
ASYNCHRONOUS_JOBS_RP | final static RequestProcessor ASYNCHRONOUS_JOBS_RP(Code) | | Request processor that is used for asynchronous jobs (background validation,
asynchronous instantiation i.e.) and supports Thread.interrupted().
It's package-private to accessible for unit tests.
|
WizardDescriptor | protected WizardDescriptor()(Code) | | Constructor for subclasses. The expected use is to call this
constructor and then call
WizardDescriptor.setPanelsAndSettings to provide
the right iterator, panels and data the wizard should use. This
allows to eliminate unchecked warnings as described in
issue 102261.
since: 7.4 |
WizardDescriptor | public WizardDescriptor(Iterator<WizardDescriptor> panels)(Code) | | Create wizard for a sequence of panels, with settings
defaulted to this .
Parameters: panels - iterator over all WizardDescriptor.Panels that can appear in the wizard |
doCancelClick | final void doCancelClick()(Code) | | |
doFinishClick | final void doFinishClick()(Code) | | |
doNextClick | final void doNextClick()(Code) | | |
doPreviousClick | final void doPreviousClick()(Code) | | |
getInstantiatedObjects | public Set getInstantiatedObjects()(Code) | | Returns set of newly instantiated objects if the wizard has been correctly finished.
Returns the empty set as default. If the wizard uses the InstantiatingIterator
then WizardDescriptor returns a set of Object as same as InstantiatingIterator.instantiate().
exception: IllegalStateException - if this method is called on the unfinished wizard a set of Objects created since: 4.41 |
getProperty | public synchronized Object getProperty(String name)(Code) | | Getter for stored property.
Parameters: name - name of the property the value |
getValue | public Object getValue()(Code) | | Overriden to ensure that returned value is one of
the XXX_OPTION constants.
|
initialize | protected void initialize()(Code) | | Initializes settings.
|
isFinishEnabled | final boolean isFinishEnabled()(Code) | | |
isForwardEnabled | boolean isForwardEnabled()(Code) | | |
isNextEnabled | final boolean isNextEnabled()(Code) | | |
putProperty | public void putProperty(String name, Object value)(Code) | | Allows Panels that use WizardDescriptor as settings object to
store additional settings into it.
Parameters: name - name of the property Parameters: value - value of property |
setAdditionalOptions | public void setAdditionalOptions(Object[] options)(Code) | | Parameters: options - the options to set |
setClosingOptions | public void setClosingOptions(Object[] options)(Code) | | Parameters: options - the options to set |
setOptions | public void setOptions(Object[] options)(Code) | | Set options permitted by the wizard considered as a DialogDescriptor .
Substitutes tokens such as
WizardDescriptor.NEXT_OPTION with the actual button.
Parameters: options - the options to set |
setPanels | final public synchronized void setPanels(Iterator panels)(Code) | | Set a different list of panels.
Correctly updates the buttons.
Parameters: panels - the new list of WizardDescriptor.Panels |
setPanelsAndSettings | final public synchronized void setPanelsAndSettings(Iterator<Data> panels, Data settings)(Code) | | Set a different list of panels.
Correctly updates the buttons.
Parameters: panels - the new list of WizardDescriptor.Panels Parameters: settings - the new settings that will be passed to the panels since: 7.2 |
setTitleFormat | public void setTitleFormat(MessageFormat format)(Code) | | Sets the message format to create title of the wizard.
The format can take two parameters. The name of the
current component and the name returned by the iterator that
defines the order of panels. The default value is something
like
{0} wizard {1}
That can be expanded to something like this
EJB wizard (1 of 8)
This method allows anybody to provide own title format.
Parameters: format - message format to the title |
setValue | public void setValue(Object value)(Code) | | Overrides superclass method. Adds reseting of wizard
for CLOSED_OPTION .
|
updateState | protected synchronized void updateState()(Code) | | Updates buttons to reflect the current state of the panels.
Can be overridden by subclasses
to change the options to special values. In such a case use:
super.updateState ();
setOptions (...);
|
|
|
|