All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tw.edu.ncnu.im.cnclab.JGAP.UI.GraphDialog

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.JGAP.UI.GraphDialog

public abstract class GraphDialog
extends GenericDialog
implements ActionListener
The GraphDialog class define the dialog about the graph. It provides the validity of the inputted data.

Version:
0.4 Jul 8, 1999
Author:
Ding-Yi Chen
See Also:
Graph

Variable Index

 o graph
 o node1
 o node2

Constructor Index

 o GraphDialog(Graph, Frame, String, String, boolean)
Construct a GraphDialog without message textField.
 o GraphDialog(Graph, Frame, String, String, boolean, int)
Construct a GraphDialog.
 o GraphDialog(Graph, Frame, String, String, boolean, String[])
Construct a GraphDialog without message.
 o GraphDialog(Graph, Frame, String, String, boolean, String[], int)
Construct a GraphDialog.

Method Index

 o getValidNode(TextField)
Convert text of specified TextField to node.
 o getValidNode(TextField, String)
Convert text of specified TextField to node.

Variables

 o graph
 protected Graph graph
 o node1
 protected int node1
 o node2
 protected int node2

Constructors

 o GraphDialog
 protected GraphDialog(Graph graph,
                       Frame fr,
                       String title,
                       String promptText,
                       boolean isModal)
Construct a GraphDialog without message textField.

Parameters:
graph - the graph that the GraphDialog to apply.
fr - the parent window.
title - the window title.
promptText - the prompt text. '\n' can be used as separator.
isModal - whether the dialog modal.
 o GraphDialog
 protected GraphDialog(Graph graph,
                       Frame fr,
                       String title,
                       String promptText,
                       boolean isModal,
                       int msgLength)
Construct a GraphDialog.

Parameters:
graph - the graph that the GraphDialog to apply.
fr - the parent window.
title - the window title.
promptText - the prompt text. '\n' can be used as separator.
isModal - whether the dialog modal.
msgLength - specify the length of the message textField.
 o GraphDialog
 protected GraphDialog(Graph graph,
                       Frame fr,
                       String title,
                       String promptText,
                       boolean isModal,
                       String buttonPrompt[])
Construct a GraphDialog without message.

Parameters:
graph - the graph that the GraphDialog to apply.
fr - the parent window.
title - the window title.
promptText - the prompt text. '\n' can be used as separator.
isModal - whether the dialog modal.
buttonPrompt - the prompt of buttons.
 o GraphDialog
 protected GraphDialog(Graph graph,
                       Frame fr,
                       String title,
                       String promptText,
                       boolean isModal,
                       String buttonPrompt[],
                       int msgLength)
Construct a GraphDialog.

Parameters:
fr - the parent window.
title - the window title.
promptText - the prompt text. '\n' can be used as separator.
isModal - whether the dialog modal.
buttonPrompt - the prompt of buttons.
msgLength - specify the length of the message textField.

Methods

 o getValidNode
 public int getValidNode(TextField tf)
Convert text of specified TextField to node.

Parameters:
tf - The specified TextField.
Returns:
The node converted from the specified Textfield; NUL if such node exist.
See Also:
NUL
 o getValidNode
 public int getValidNode(TextField tf,
                         String fieldStandFor)
Convert text of specified TextField to node.

Parameters:
tf - The specified TextField
Returns:
The node converted from the specified Textfield; NUL if such node exist.
See Also:
NUL

All Packages  Class Hierarchy  This Package  Previous  Next  Index