org.argouml.uml.cognitive.critics
Class WizCueCards

java.lang.Object
  extended byorg.argouml.cognitive.ui.Wizard
      extended byorg.argouml.uml.cognitive.critics.UMLWizard
          extended byorg.argouml.uml.cognitive.critics.WizCueCards
All Implemented Interfaces:
Serializable

public class WizCueCards
extends UMLWizard

A cue card wizard presents the user with a deck of instructions.

See Also:
WizStepCue, Serialized Form

Field Summary
private  Vector cues
           
private  WizStepCue[] steps
           
 
Fields inherited from class org.argouml.uml.cognitive.critics.UMLWizard
 
Fields inherited from class org.argouml.cognitive.ui.Wizard
 
Constructor Summary
WizCueCards()
          The constructor.
 
Method Summary
 void addCue(String s)
           
 boolean canFinish()
          This wizard cannot automatically finish the task.
 void doAction(int oldStep)
          This wizard never takes action, it just displays step by step instructions.
 int getNumSteps()
          Preset the number of steps to 1.
 JPanel makePanel(int newStep)
          Create a new panel for the given step.
 
Methods inherited from class org.argouml.uml.cognitive.critics.UMLWizard
getModelElement, getSuggestion, offerSuggestion, setSuggestion
 
Methods inherited from class org.argouml.cognitive.ui.Wizard
back, canGoBack, canGoNext, doAction, finish, getCurrentPanel, getPanel, getProgress, getStep, getToDoItem, isFinished, isStarted, next, removePanel, setToDoItem, undoAction, undoAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cues

private Vector cues

steps

private WizStepCue[] steps
Constructor Detail

WizCueCards

public WizCueCards()
The constructor.

Method Detail

getNumSteps

public int getNumSteps()
Description copied from class: UMLWizard
Preset the number of steps to 1. You need to override this method, in case your Wizard requires a different number of steps. This method is a convenience implementation.

Overrides:
getNumSteps in class UMLWizard
See Also:
Wizard.getNumSteps()

addCue

public void addCue(String s)
Parameters:
s - the text for the wizard step

makePanel

public JPanel makePanel(int newStep)
Create a new panel for the given step. Returns a newly created panel or null if there isn't that many steps.

Specified by:
makePanel in class Wizard
Parameters:
newStep - the number of the step to make a panel for.
Returns:
a new panel for the given step
See Also:
Wizard.makePanel(int)

doAction

public void doAction(int oldStep)
This wizard never takes action, it just displays step by step instructions.

Specified by:
doAction in class Wizard
Parameters:
oldStep - the given step
See Also:
Wizard.doAction(int)

canFinish

public boolean canFinish()
This wizard cannot automatically finish the task. It can only be finished when the user is on the last step.

Overrides:
canFinish in class Wizard
Returns:
true if we can finish (i.e. the finish button is not downlighted)
See Also:
Wizard.canFinish()


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook