public class ASTQuery
extends java.lang.Object
These methods are static so that a class instance does not have to be created prior to usage. These methods simplify translating the code to other languages, and they help enforce consistency in usage and style.
Copyright (c) 2018
Modifier and Type | Field and Description |
---|---|
static int |
QUERY_CANCEL
value indicating user clicked on CANCEL
|
static int |
QUERY_OK
value indicating user clicked on OK
|
Constructor and Description |
---|
ASTQuery() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getData1()
Gets first data field from the query form.
|
static java.lang.String |
getData2()
Gets second data field from the query form.
|
static java.lang.String |
getData3()
Gets third data field from the query form.
|
static void |
setParentFrame(javax.swing.JFrame parent)
Saves a reference to the caller's parent frame so queries can be centered on the
parent application's window.
|
static int |
showQueryForm(java.lang.String sLabel1)
Display the query form and center it on the parent.
|
static int |
showQueryForm(java.lang.String sLabel1,
java.lang.String sLabel2)
Display the query form and center it on the parent.
|
static int |
showQueryForm(java.lang.String sLabel1,
java.lang.String sLabel2,
java.lang.String sLabel3,
java.lang.String sTitle)
Display the query form and center it on the parent.
|
public static final int QUERY_OK
public static final int QUERY_CANCEL
public static void setParentFrame(javax.swing.JFrame parent)
parent
- parent frame for the main applicationpublic static int showQueryForm(java.lang.String sLabel1)
sLabel1
- 1st label to displaypublic static int showQueryForm(java.lang.String sLabel1, java.lang.String sLabel2)
sLabel1
- 1st label to displaysLabel2
- 2nd label to displaypublic static int showQueryForm(java.lang.String sLabel1, java.lang.String sLabel2, java.lang.String sLabel3, java.lang.String sTitle)
sLabel1
- 1st label to displaysLabel2
- 2nd label to displaysLabel3
- 3rd label to displaysTitle
- title to displaypublic static java.lang.String getData1()
public static java.lang.String getData2()
public static java.lang.String getData3()