org.argouml.uml.cognitive.critics
Class WizAddConstructor

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

public class WizAddConstructor
extends UMLWizard

A wizard to add a constructor to a classifier.

Since:
February 7, 2004, 12:35 AM
See Also:
Serialized Form

Field Summary
private  String instructions
           
private  String label
           
private  WizStepTextField step1
           
 
Fields inherited from class org.argouml.uml.cognitive.critics.UMLWizard
 
Fields inherited from class org.argouml.cognitive.ui.Wizard
 
Constructor Summary
WizAddConstructor()
          Creates a new instance of WizAddConstructor.
 
Method Summary
 void doAction(int oldStep)
          Take action at the completion of a step.
private  Object getCreateStereotype(Object obj)
          Finds the create stereotype for an object.
 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, canFinish, 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

step1

private WizStepTextField step1

label

private String label

instructions

private String instructions
Constructor Detail

WizAddConstructor

public WizAddConstructor()
Creates a new instance of WizAddConstructor.

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
Parameters:
oldStep - the given step
See Also:
Wizard.doAction(int)

getCreateStereotype

private Object getCreateStereotype(Object obj)
Finds the create stereotype for an object. It is assumed to be available from the java profile.

Parameters:
obj - is the object the stereotype should be applicable to.
Returns:
a suitable stereotype, or null.

setInstructions

public void setInstructions(String s)
Parameters:
s - set a new instruction string

makePanel

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

Specified by:
makePanel in class Wizard
Parameters:
newStep - The step.
Returns:
The panel.


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