All Packages  Class Hierarchy  This Package  Previous  Next  Index

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

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.AskVertexDialog

public class AskVertexDialog
extends GraphDialog
The AskVertexDialog class is used to get the input of one vertex. It provides the validity of the inputted data.

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

Variable Index

 o vertexField
The TextField for vertex.

Constructor Index

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

Method Index

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

Variables

 o vertexField
 protected TextField vertexField
The TextField for vertex.

Constructors

 o AskVertexDialog
 public AskVertexDialog(Graph graph,
                        Frame fr,
                        String title,
                        String promptText,
                        boolean isModal)
Construct a AskVertexDialog.

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 AskVertexDialog
 public AskVertexDialog(Graph graph,
                        Frame fr,
                        String title,
                        String promptText,
                        boolean isModal,
                        String buttonPrompt[])
Construct a AskVertexDialog.

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 getNode
 public int getNode()
Return the result of dialog.

 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