org.argouml.uml.cognitive.critics
Class WizAddOperation

java.lang.Object
  |
  +--org.argouml.kernel.Wizard
        |
        +--org.argouml.uml.cognitive.critics.WizAddOperation
All Implemented Interfaces:
java.io.Serializable

public class WizAddOperation
extends Wizard

A wizard to add operations to a classifier

See Also:
Serialized Form

Field Summary
protected  java.lang.String _instructions
           
protected  java.lang.String _label
           
protected  boolean _mustEdit
           
protected  java.lang.String _origSuggest
           
protected  WizStepTextField _step1
           
protected  java.lang.String _suggestion
           
 
Fields inherited from class org.argouml.kernel.Wizard
_finished, _item, _panels, _started, _step
 
Constructor Summary
WizAddOperation()
          Creates a new instance of WizAddOperation
 
Method Summary
 void doAction(int oldStep)
          Take action at the completion of a step.
 java.lang.Object getModelElement()
           
 int getNumSteps()
          Get the number of steps in this wizard.
 java.lang.String getSuggestion()
           
 javax.swing.JPanel makePanel(int newStep)
          Create a new panel for the given step.
 void setInstructions(java.lang.String s)
           
 void setMustEdit(boolean b)
           
 void setSuggestion(java.lang.String s)
           
 
Methods inherited from class org.argouml.kernel.Wizard
back, canFinish, canGoBack, canGoNext, doAction, finish, getCurrentPanel, getPanel, getProgress, getToDoItem, isFinished, isStarted, next, setToDoItem, undoAction, undoAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_step1

protected WizStepTextField _step1

_label

protected java.lang.String _label

_instructions

protected java.lang.String _instructions

_suggestion

protected java.lang.String _suggestion

_origSuggest

protected java.lang.String _origSuggest

_mustEdit

protected boolean _mustEdit
Constructor Detail

WizAddOperation

public WizAddOperation()
Creates a new instance of WizAddOperation

Method Detail

doAction

public void doAction(int oldStep)
Description copied from class: Wizard
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. Also, if the user pressed "Finish" doAction may be called for steps that never constructored or displayed their panels.

Specified by:
doAction in class Wizard

getNumSteps

public int getNumSteps()
Description copied from class: Wizard
Get the number of steps in this wizard. Subclasses should override to return a constant, or compute based on context.

Specified by:
getNumSteps in class Wizard

getModelElement

public java.lang.Object getModelElement()

getSuggestion

public java.lang.String getSuggestion()

setSuggestion

public void setSuggestion(java.lang.String s)

setInstructions

public void setInstructions(java.lang.String s)

setMustEdit

public void setMustEdit(boolean b)

makePanel

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

Specified by:
makePanel in class Wizard


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