Extension SDK

oracle.ide.panels
Interface WizardCallbacks

All Superinterfaces:
CommitNotifier

public interface WizardCallbacks
extends CommitNotifier

This interface defines callback methods that are implemented by a a Traversable-based wizard dialog for the sake of Traversable panels that need to update the state of the wizard dialog's decorations. A wizard panel receives an instance of WizardCallbacks through the TraversableContext passed into its onEntry(...) method:

WizardCallbacks callbacks = traversableContext.getWizardCallbacks();


Field Summary
static java.lang.String DT_NAME
           
 
Method Summary
 void wizardEnableButtons(java.lang.Boolean back, java.lang.Boolean next, java.lang.Boolean finish)
          A panel calls this method to update the status of the Back, Next, and Finish buttons.
 void wizardSetInitialFocus(java.awt.Component comp)
          A panel calls this method to specify the component on the panel that should have the initial focus.
 void wizardSkipCurrentStep()
          In the Traversable.onEntry(TraversableContext) method, a call to wizardSkipCurrentStep() indicates that the {@link Traversable should be skipped automatically without being displayed and that the wizard proceed to the next step.
 void wizardUpdateAccessibleDescription(java.lang.String desc)
          Updates the wizard's accessible description with the specified string.
 void wizardUpdateExpectedTransition(java.lang.Object transition)
          A panel calls this method when its expected exit transition changes due to changes in the user's selections in the panel.
 void wizardUpdateImage(java.awt.Image image)
          A panel calls this method to replace the large image on the left side of the wizard with the specified Image.
 void wizardUpdateTitle(java.lang.String title, java.lang.Boolean showStepNumber)
          A panel calls this method to update the string in the wizard dialog's title bar.
 
Methods inherited from interface oracle.ide.panels.CommitNotifier
addCommitListener, removeCommitListener
 

Field Detail

DT_NAME

public static final java.lang.String DT_NAME
See Also:
Constant Field Values
Method Detail

wizardEnableButtons

public void wizardEnableButtons(java.lang.Boolean back,
                                java.lang.Boolean next,
                                java.lang.Boolean finish)
A panel calls this method to update the status of the Back, Next, and Finish buttons. For each of the boolean arguments, a value of false means that the corresponding button must be disabled. A value of true means that the button should be enabled. However, the wizard is allowed to override the true value and put a button in a disabled state, if appropriate. This will normally happen when the wizard is at the first or last panel.


wizardSkipCurrentStep

public void wizardSkipCurrentStep()
In the Traversable.onEntry(TraversableContext) method, a call to wizardSkipCurrentStep() indicates that the {@link Traversable should be skipped automatically without being displayed and that the wizard proceed to the next step.

This method only has an effect if it is called from the onEntry method or a method called directly by onEntry on the same thread. There is no effect if this method is called at any other time.

There are two other cases where calling this method will have no effect:

In both of these cases, the Traversable will still be displayed.


wizardUpdateAccessibleDescription

public void wizardUpdateAccessibleDescription(java.lang.String desc)
Updates the wizard's accessible description with the specified string.


wizardUpdateImage

public void wizardUpdateImage(java.awt.Image image)
A panel calls this method to replace the large image on the left side of the wizard with the specified Image. Calls to this method are ignored if the wizard is not showing an image.


wizardUpdateTitle

public void wizardUpdateTitle(java.lang.String title,
                              java.lang.Boolean showStepNumber)
A panel calls this method to update the string in the wizard dialog's title bar. If showStepNumber is false, the step number is suppressed from the title bar; otherwise, the decision to show the step number is deferred to the wizard dialog implementation.


wizardUpdateExpectedTransition

public void wizardUpdateExpectedTransition(java.lang.Object transition)
A panel calls this method when its expected exit transition changes due to changes in the user's selections in the panel. The wizard is given the opportunity to re-query the underlying FSM to determine what the new number of remaining steps is.


wizardSetInitialFocus

public void wizardSetInitialFocus(java.awt.Component comp)
A panel calls this method to specify the component on the panel that should have the initial focus.


Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.