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
-
vertexField
- The TextField for vertex.
-
AskVertexDialog(Graph, Frame, String, String, boolean)
- Construct a AskVertexDialog.
-
AskVertexDialog(Graph, Frame, String, String, boolean, String[])
- Construct a AskVertexDialog.
-
checkFormat()
- Check the validity of inputed data.
-
getArg(Object[])
- Return the parameters of the dialog get.
-
getNode()
- Return the result of dialog.
-
setCentralPanel()
- Initite the custom panel (centralPanel).
vertexField
protected TextField vertexField
- The TextField for vertex.
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.
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.
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
getNode
public int getNode()
- Return the result of dialog.
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