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
-
sinkField
- The TextField for source vertex.
-
srcField
- The TextField for source vertex.
-
Ask2VertexDialog(Graph, Frame, String, String, boolean)
- Construct a Ask2VertexDialog.
-
Ask2VertexDialog(Graph, Frame, String, String, boolean, String[])
- Construct a Ask2VertexDialog.
-
checkFormat()
- Check the validity of inputed data.
-
getArg(Object[])
- Return the parameters of the dialog get.
-
setCentralPanel()
- Initite the custom panel (centralPanel).
srcField
protected TextField srcField
- The TextField for source vertex.
sinkField
protected TextField sinkField
- The TextField for source vertex.
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.
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.
setCentralPanel
protected void setCentralPanel()
- Initite the custom panel (centralPanel).
- Overrides:
- setCentralPanel in class GenericDialog
checkFormat
protected boolean checkFormat()
- Check the validity of inputed data.
- Returns:
-
true if inputs is valid; false if otherwise.
- Overrides:
- checkFormat in class GenericDialog
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