| java.lang.Object org.netbeans.installer.wizard.components.WizardComponent org.netbeans.installer.wizard.components.WizardSequence
All known Subclasses: org.netbeans.installer.wizard.components.sequences.MainSequence, org.netbeans.installer.wizard.components.sequences.ProductWizardSequence,
WizardSequence | public class WizardSequence extends WizardComponent (Code) | | This class is a specialization of the
WizardComponent which defines
behavior specific to sequences.
A sequence is merely a list of
WizardComponent s which executes when the
sequence itself is executed. This makes wizard sequences the instrument to add
"depth" to the wizard, enable conditional execution of a set of components, etc.
It is also the only "standard" component which actually makes use of its child
components.
WizardSequence uses child
Wizard instances to execute its
child components. The
Wizard instances are created via the
Wizard.createSubWizard(Listint) method.
A wizard sequence does not have a UI of its own - it completely relies on the UI
of its child components.
author: Kirill Sorokin since: 1.0 |
childWizard | protected Wizard childWizard(Code) | | Current child
WIzard instance which is used to iterate of over the
list of child
WizardComponent s.
|
canExecuteBackward | public boolean canExecuteBackward()(Code) | | Whether the sequence can be executed when reached via a call to
Wizard.previous . Since the sequence does not contain any logic of
its own, it searches through the list of child components checking whether
there is one that can be executed. If such a component is found, the sequence
considers itself to be able to execute.
true is the sequence can be executed, false otherwise. |
canExecuteForward | public boolean canExecuteForward()(Code) | | Whether the sequence can be executed when reached via a call to
Wizard.next . Since the sequence does not contain any logic of its
own, it searches through the list of child components checking whether there
is one that can be executed. If such a component is found, the sequence
considers itself to be able to execute.
true is the sequence can be executed, false otherwise. |
executeForward | public void executeForward()(Code) | | Executes the sequence when it is reached via a call to
Wizard.next .
This method simply creates a new child instance of
Wizard over the
list of child components, sets the index of the active component to the
pre-first one and calls
Wizard.next .
See Also: WizardComponent.executeForward |
getWizardUi | public WizardUi getWizardUi()(Code) | | Returns the
WizardUi object for this component. Since the sequence
does not have an UI of its own, this method always returns null .
null . |
initialize | public void initialize()(Code) | | The default implementation of this method for
WizardSequence has an
empty body. Concrete implementations are expected to override this method
if they require any custom initialization.
See Also: WizardComponent.initialize |
isPointOfNoReturn | public boolean isPointOfNoReturn()(Code) | | Whether the sequence is a point of no return. Since the sequence does not
contain any logic of its own, it searches through the list of child
components checking whether there is one that is a point of no return. If
such a component is found and the index of the active component is greater
than that of the found component, the sequence considers itself to be the
point of no return.
true is the sequence is the point of no return,false otherwise. |
|
|