org.argouml.uml.cognitive.critics
Class WizNavigable

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

public class WizNavigable
extends UMLWizard

A non-modal wizard to help the user change navigability of an association.

See Also:
Serialized Form

Field Summary
private  String instructions
           
private static Logger LOG
           
private  String option0
           
private  String option1
           
private  String option2
           
private  WizStepChoice step1
           
 
Fields inherited from class org.argouml.uml.cognitive.critics.UMLWizard
 
Fields inherited from class org.argouml.cognitive.ui.Wizard
 
Constructor Summary
WizNavigable()
          The constructor.
 
Method Summary
 boolean canFinish()
           
 void doAction(int oldStep)
          Take action at the completion of a step.
 Vector getOptions()
           
 JPanel makePanel(int newStep)
          Create a new panel for the given step.
 void setInstructions(String s)
           
 
Methods inherited from class org.argouml.uml.cognitive.critics.UMLWizard
getModelElement, getNumSteps, 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

LOG

private static final Logger LOG

instructions

private String instructions

option0

private String option0

option1

private String option1

option2

private String option2

step1

private WizStepChoice step1
Constructor Detail

WizNavigable

public WizNavigable()
The constructor.

Method Detail

getOptions

public Vector getOptions()
Returns:
the options

setInstructions

public void setInstructions(String s)
Parameters:
s - the instructions

makePanel

public JPanel makePanel(int newStep)
Create a new panel for the given step.

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)
Take action at the completion of a step. For example, when the given step is 0, do nothing; and when the given step is 1, do the first action. Argo non-modal wizards should take action as they do along, as soon as possible, they should not wait until the final step.

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

canFinish

public boolean canFinish()
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