|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.notes.java.ui.prompt.Prompt
public class Prompt
The Prompt class facilitates the ability to ask the user for several types of input.
Field Summary | |
---|---|
static int |
PROMPT_CHOOSEDATABASE
Integer value of the Choose Database Prompt type. |
static int |
PROMPT_OK
Integer value of the OK Prompt type. |
static int |
PROMPT_OKCANCELCOMBO
Integer value of the OK Cancel Prompt With Combo Box type. |
static int |
PROMPT_OKCANCELEDIT
Integer value of the OK Cancel Edit Prompt type. |
static int |
PROMPT_OKCANCELEDITCOMBO
Integer value of the OK Cancel Prompt With Editable Combo Box type. |
static int |
PROMPT_OKCANCELLIST
Integer value of the OK Cancel Prompt With List Box type. |
static int |
PROMPT_OKCANCELLISTMULT
Integer value of the OK Cancel Prompt With Multi-Selectable List Box type. |
static int |
PROMPT_PASSWORD
Integer value of the Password Prompt type. |
static int |
PROMPT_YESNO
Integer value of the Yes No Prompt type. |
static int |
PROMPT_YESNOCANCEL
Integer value of the Yes No Cancel Prompt type. |
Constructor Summary | |
---|---|
Prompt()
Default constructor. |
Method Summary | |
---|---|
static NotesDatabaseData |
ChooseDatabase()
Convenient choose database prompt. |
static String[] |
ChooseDatabase(String title,
String prompt)
Open the choose database prompt. |
static int |
Ok(String title,
String prompt)
Open an OK prompt. |
static String |
OkCancelCombo(String title,
String prompt,
String defValue,
String[] values)
Open an OK Cancel prompt with a combo box. |
static String |
OkCancelEdit(String title,
String prompt,
String defValue)
Open an OK Cancel prompt with an editable text field. |
static String |
OkCancelEditCombo(String title,
String prompt,
String defValue,
String[] values)
Open an OK Cancel prompt with an editable combo box. |
static String |
OkCancelList(String title,
String prompt,
String defValue,
String[] values)
Open an OK Cancel prompt with a list box. |
static String[] |
OkCancelListMulti(String title,
String prompt,
String[] defValue,
String[] values)
Open an OK Cancel prompt with a multi-selectable list box. |
static String |
Password(String title,
String prompt)
Open a password prompt. |
static Object |
prompt(int type,
String title,
String prompt,
Object defValue,
String[] values)
Displays a dialog box and returns a value based on your actions in the dialog box. |
static int |
YesNo(String title,
String prompt)
Open a Yes No prompt. |
static int |
YesNoCancel(String title,
String prompt)
Open a Yes No Cancel prompt. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PROMPT_OK
public static final int PROMPT_YESNO
public static final int PROMPT_OKCANCELEDIT
public static final int PROMPT_OKCANCELLIST
public static final int PROMPT_OKCANCELCOMBO
public static final int PROMPT_OKCANCELEDITCOMBO
public static final int PROMPT_OKCANCELLISTMULT
public static final int PROMPT_PASSWORD
public static final int PROMPT_YESNOCANCEL
public static final int PROMPT_CHOOSEDATABASE
Constructor Detail |
---|
public Prompt()
Method Detail |
---|
public static Object prompt(int type, String title, String prompt, Object defValue, String[] values)
type
- indicates the type of dialog box that you want to display, values from the Prompt class specifies typetitle
- the text that you want displayed in the dialog box title barprompt
- the text that you want displayed within the dialog boxdefValue
- the value that will be used as your default input valuevalues
- the values that you want displayed in the dialog box's list box, where applicable
public static String[] ChooseDatabase(String title, String prompt)
title
- the text that you want displayed in the dialog box title barprompt
- the text that you want displayed within the dialog box
public static String[] OkCancelListMulti(String title, String prompt, String[] defValue, String[] values)
title
- the text that you want displayed in the dialog box title barprompt
- the text that you want displayed within the dialog boxdefValue
- the value that will be used as your default input valuevalues
- the values that you want displayed in the dialog box's list box
public static String OkCancelEditCombo(String title, String prompt, String defValue, String[] values)
title
- the text that you want displayed in the dialog box title barprompt
- the text that you want displayed within the dialog boxdefValue
- the value that will be used as your default input valuevalues
- the values that you want displayed in the dialog box's combo box
public static String OkCancelCombo(String title, String prompt, String defValue, String[] values)
title
- the text that you want displayed in the dialog box title barprompt
- the text that you want displayed within the dialog boxdefValue
- the value that will be used as your default input valuevalues
- the values that you want displayed in the dialog box's combo box
public static String OkCancelList(String title, String prompt, String defValue, String[] values)
title
- the text that you want displayed in the dialog box title barprompt
- the text that you want displayed within the dialog boxdefValue
- the value that will be used as your default input valuevalues
- the values that you want displayed in the dialog box's list box
public static String OkCancelEdit(String title, String prompt, String defValue)
title
- the text that you want displayed in the dialog box title barprompt
- the text that you want displayed within the dialog boxdefValue
- the value that will be used as your default input value
public static String Password(String title, String prompt)
title
- the text that you want displayed in the dialog box title barprompt
- the text that you want displayed within the dialog box
public static int YesNo(String title, String prompt)
title
- the text that you want displayed in the dialog box title barprompt
- the text that you want displayed within the dialog box
public static int YesNoCancel(String title, String prompt)
title
- the text that you want displayed in the dialog box title barprompt
- the text that you want displayed within the dialog box
public static int Ok(String title, String prompt)
title
- the text that you want displayed in the dialog box title barprompt
- the text that you want displayed within the dialog box
public static NotesDatabaseData ChooseDatabase() throws NotesException
NotesException
- thrown when the choose database operation fails
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |