All Packages Class Hierarchy This Package Previous Next Index
Class tw.edu.ncnu.im.cnclab.Algor.UI.AlgorithmDialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----tw.edu.ncnu.im.cnclab.UI.GenericDialog
|
+----tw.edu.ncnu.im.cnclab.UI.StringDialog
|
+----tw.edu.ncnu.im.cnclab.Algor.UI.AlgorithmDialog
- public class AlgorithmDialog
- extends StringDialog
- implements ActionListener
The AlgorithmDialog class implements the dialog that ask the name of Algorithm.
- Version:
- 0.4 Jul 8, 1999
- Author:
- Ding-Yi Chen
- See Also:
- StringDialog
-
alg
- The Algorithm to load.
-
AlgorithmDialog(Frame)
- Construct a AlgorithmDialog.
-
AlgorithmDialog(Frame, String, String)
- Construct a AlgorithmDialog.
-
checkFormat()
- Check if the input valid.
-
getAlgorithm()
- Get the algorithm to load.
-
getArg(Object[])
- Return the parameters of the Dialog get.
alg
protected Algorithm alg
- The Algorithm to load.
AlgorithmDialog
public AlgorithmDialog(Frame fr)
- Construct a AlgorithmDialog.
- Parameters:
- fr - the parent window.
AlgorithmDialog
public AlgorithmDialog(Frame fr,
String title,
String prompt)
- Construct a AlgorithmDialog.
- Parameters:
- fr - the parent window.
checkFormat
protected boolean checkFormat()
- Check if the input valid.
- Returns:
-
true if inputs is valid; false if otherwise.
- Overrides:
- checkFormat in class GenericDialog
getAlgorithm
public Algorithm getAlgorithm()
- Get the algorithm to load.
- Returns:
- the algorithm.
getArg
public Object[] getArg(Object additionalArg[])
- Return the parameters of the Dialog get.
- Parameters:
- additionalArg - Additional arguments for another method.
- Returns:
- The parameters of the dialog get.
Array[0]: the algorithm
Array[1]: the argument string from the dialog.
The Other the argument from the parameter additionArg.
- Overrides:
- getArg in class StringDialog
- See Also:
- setArg
All Packages Class Hierarchy This Package Previous Next Index