com.intellij.ide.wizard
Class AbstractWizard

java.lang.Object
  extended by com.intellij.openapi.ui.DialogWrapper
      extended by com.intellij.ide.wizard.AbstractWizard

public abstract class AbstractWizard
extends DialogWrapper


Field Summary
protected  java.util.ArrayList<Step> mySteps
           
 
Fields inherited from class com.intellij.openapi.ui.DialogWrapper
CANCEL_EXIT_CODE, DEFAULT_ACTION, NEXT_USER_EXIT_CODE, OK_EXIT_CODE
 
Constructor Summary
AbstractWizard(java.lang.String title, java.awt.Component dialogParent)
           
AbstractWizard(java.lang.String title, Project project)
           
 
Method Summary
 void addStep(Step step)
           
protected  javax.swing.JComponent createCenterPanel()
          Factory method.
protected  javax.swing.JComponent createSouthPanel()
          This is factory method.
protected  void doNextAction()
           
protected  void doPreviousAction()
           
 int getCurrentStep()
           
 java.awt.Component getCurrentStepComponent()
           
protected  Step getCurrentStepObject()
           
protected  javax.swing.JButton getFinishButton()
           
protected abstract  java.lang.String getHelpID()
           
protected  javax.swing.JButton getNextButton()
           
protected  int getNextStep(int step)
          override this to provide alternate step order
protected  int getNumberOfSteps()
           
protected  javax.swing.JButton getPreviousButton()
           
protected  int getPreviousStep(int step)
          override this to provide alternate step order
protected  void helpAction()
           
protected  void init()
           
protected  boolean isCurrentStep(Step step)
           
protected  void updateStep()
           
 
Methods inherited from class com.intellij.openapi.ui.DialogWrapper
addKeyListener, addMouseListener, addMouseListener, centerRelativeToParent, clickDefaultButton, close, createActions, createContentPane, createContentPaneBorder, createDefaultActions, createJButtonForAction, createLeftSideActions, createNorthPanel, createTitlePane, dispose, doCancelAction, doHelpAction, doOKAction, getCancelAction, getContentPane, getDimensionKey, getDimensionServiceKey, getExitCode, getHelpAction, getHorizontalStretch, getInitialLocation, getLocation, getOKAction, getOwner, getPreferredFocusedComponent, getPreferredSize, getRootPane, getSize, getTitle, getVerticalStretch, getWindow, isModalProgress, isOK, isOKActionEnabled, isProgressDialog, isResizable, isShowing, isVisible, pack, repaint, setButtonsAlignment, setButtonsMargin, setCancelButtonIcon, setCancelButtonText, setCrossClosesWindow, setHorizontalStretch, setLocation, setLocation, setModal, setOKActionEnabled, setOKButtonIcon, setOKButtonText, setResizable, setSize, setTitle, setUndecorated, setVerticalStretch, shouldCloseOnCross, show, toBack, toFront, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mySteps

protected final java.util.ArrayList<Step> mySteps
Constructor Detail

AbstractWizard

public AbstractWizard(java.lang.String title,
                      java.awt.Component dialogParent)

AbstractWizard

public AbstractWizard(java.lang.String title,
                      Project project)
Method Detail

createSouthPanel

protected javax.swing.JComponent createSouthPanel()
Description copied from class: DialogWrapper
This is factory method. It creates the panel located at the south of the content pane. By default that panel contains dialog's buttons. This default implementation uses createActions() and createJButtonForAction(Action) methods to construct the panel.

Overrides:
createSouthPanel in class DialogWrapper

createCenterPanel

protected javax.swing.JComponent createCenterPanel()
Description copied from class: DialogWrapper
Factory method. It creates panel with dialog options. Options panel is located at the center of the dialog's content pane. The implementation can return null value. In this case there will be no options panel.

Specified by:
createCenterPanel in class DialogWrapper

getCurrentStep

public int getCurrentStep()

getCurrentStepObject

protected Step getCurrentStepObject()

addStep

public void addStep(Step step)

init

protected void init()
Overrides:
init in class DialogWrapper

doPreviousAction

protected void doPreviousAction()

doNextAction

protected void doNextAction()

getNextStep

protected int getNextStep(int step)
override this to provide alternate step order


getPreviousStep

protected int getPreviousStep(int step)
override this to provide alternate step order


updateStep

protected void updateStep()

getNextButton

protected javax.swing.JButton getNextButton()

getPreviousButton

protected javax.swing.JButton getPreviousButton()

getFinishButton

protected javax.swing.JButton getFinishButton()

getCurrentStepComponent

public java.awt.Component getCurrentStepComponent()

helpAction

protected void helpAction()

getNumberOfSteps

protected int getNumberOfSteps()

getHelpID

protected abstract java.lang.String getHelpID()

isCurrentStep

protected boolean isCurrentStep(Step step)