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

Variable Index

 o alg
The Algorithm to load.

Constructor Index

 o AlgorithmDialog(Frame)
Construct a AlgorithmDialog.
 o AlgorithmDialog(Frame, String, String)
Construct a AlgorithmDialog.

Method Index

 o checkFormat()
Check if the input valid.
 o getAlgorithm()
Get the algorithm to load.
 o getArg(Object[])
Return the parameters of the Dialog get.

Variables

 o alg
 protected Algorithm alg
The Algorithm to load.

Constructors

 o AlgorithmDialog
 public AlgorithmDialog(Frame fr)
Construct a AlgorithmDialog.

Parameters:
fr - the parent window.
 o AlgorithmDialog
 public AlgorithmDialog(Frame fr,
                        String title,
                        String prompt)
Construct a AlgorithmDialog.

Parameters:
fr - the parent window.

Methods

 o checkFormat
 protected boolean checkFormat()
Check if the input valid.

Returns:
true if inputs is valid; false if otherwise.
Overrides:
checkFormat in class GenericDialog
 o getAlgorithm
 public Algorithm getAlgorithm()
Get the algorithm to load.

Returns:
the algorithm.
 o 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