All Packages  Class Hierarchy  This Package  Previous  Next  Index

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

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
                                                   |
                                                   +----tw.edu.ncnu.im.cnclab.JGAP.UI.Ask2VertexDialog

public class Ask2VertexDialog
extends GraphDialog
The Ask2VertexDialog class is used to get the input of two vertices. Usually source vertex and sink vertex. It provides the validity of the inputted data.

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

Variable Index

 o sinkField
The TextField for source vertex.
 o srcField
The TextField for source vertex.

Constructor Index

 o Ask2VertexDialog(Graph, Frame, String, String, boolean)
Construct a Ask2VertexDialog.
 o Ask2VertexDialog(Graph, Frame, String, String, boolean, String[])
Construct a Ask2VertexDialog.

Method Index

 o checkFormat()
Check the validity of inputed data.
 o getArg(Object[])
Return the parameters of the dialog get.
 o setCentralPanel()
Initite the custom panel (centralPanel).

Variables

 o srcField
 protected TextField srcField
The TextField for source vertex.

 o sinkField
 protected TextField sinkField
The TextField for source vertex.

Constructors

 o Ask2VertexDialog
 public Ask2VertexDialog(Graph graph,
                         Frame frame,
                         String title,
                         String text,
                         boolean isModal)
Construct a Ask2VertexDialog.

Parameters:
graph - the graph.
fr - the parent window.
title - the window title.
promptText - the prompt text. '\n' can be used as separator.
isModal - whether the dialog modal.
 o Ask2VertexDialog
 public Ask2VertexDialog(Graph graph,
                         Frame frame,
                         String title,
                         String text,
                         boolean isModal,
                         String buttonPrompt[])
Construct a Ask2VertexDialog.

Parameters:
graph - the graph.
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.

Methods

 o setCentralPanel
 protected void setCentralPanel()
Initite the custom panel (centralPanel).

Overrides:
setCentralPanel in class GenericDialog
 o checkFormat
 protected boolean checkFormat()
Check the validity of inputed data.

Returns:
true if inputs is valid; false if otherwise.
Overrides:
checkFormat in class GenericDialog
 o getArg
 public Object[] getArg(Object additionalArg[])
Return the parameters of the dialog get.

Parameters:
additionalArg - Additional arguments for Alogorithm.setArg(Object[])
Returns:
The parameters of the dialog get.
Overrides:
getArg in class GenericDialog

All Packages  Class Hierarchy  This Package  Previous  Next  Index