org.argouml.uml.cognitive.critics
Class WizTooMany
java.lang.Object
org.argouml.cognitive.ui.Wizard
org.argouml.uml.cognitive.critics.UMLWizard
org.argouml.uml.cognitive.critics.WizTooMany
- All Implemented Interfaces:
- Serializable
- public class WizTooMany
- extends UMLWizard
A wizard which adjust the threshold for critics.
- See Also:
AbstractCrTooMany
,
Serialized Form
Fields inherited from class org.argouml.uml.cognitive.critics.UMLWizard |
|
Fields inherited from class org.argouml.cognitive.ui.Wizard |
|
Method Summary |
boolean |
canFinish()
|
void |
doAction(int oldStep)
Take action at the completion of a step. |
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.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 |
instructions
private String instructions
step1
private WizStepTextField step1
WizTooMany
public WizTooMany()
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()
makePanel
public JPanel makePanel(int newStep)
- Description copied from class:
Wizard
- Create a new panel for the given step. For example, When the
given step is 1, create the first step of the wizard.
TODO: It might be convient to make a reusable
subclass of Wizard that shows all textual steps to guide the
user without any automation. Such a Wizard could be easily
authored, stored in an XML file, and efficiently presented by
reusing a single panel with a single JTextArea.
- 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)
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()
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)