public interface DialogsService
Modifier and Type | Method and Description |
---|---|
void |
alert(DOMWindow aParent,
String aDialogTitle,
String aText)
Puts up an alert dialog with an OK button.
|
void |
alertCheck(DOMWindow aParent,
String aDialogTitle,
String aText,
String aCheckMsg,
boolean[] aCheckState)
Puts up an alert dialog with an OK button and a labeled checkbox.
|
boolean |
confirm(DOMWindow aParent,
String aDialogTitle,
String aText)
Puts up a dialog with OK and Cancel buttons.
|
boolean |
confirmCheck(DOMWindow aParent,
String aDialogTitle,
String aText,
String aCheckMsg,
boolean[] aCheckState)
Puts up a dialog with OK and Cancel buttons and a labeled checkbox.
|
int |
confirmEx(DOMWindow aParent,
String aDialogTitle,
String aText,
long aButtonFlags,
String aButton0Title,
String aButton1Title,
String aButton2Title,
String aCheckMsg,
boolean[] aCheckState)
Puts up a dialog with up to 3 buttons and an optional, labeled checkbox.
|
boolean |
prompt(DOMWindow aParent,
String aDialogTitle,
String aText,
String[] aValue,
String aCheckMsg,
boolean[] aCheckState)
Puts up a dialog with an edit field and an optional, labeled checkbox.
|
boolean |
promptPassword(DOMWindow aParent,
String aDialogTitle,
String aText,
String[] aPassword,
String aCheckMsg,
boolean[] aCheckState)
Puts up a dialog with a password field and an optional, labeled checkbox.
|
boolean |
promptUsernameAndPassword(DOMWindow aParent,
String aDialogTitle,
String aText,
String[] aUsername,
String[] aPassword,
String aCheckMsg,
boolean[] aCheckState)
Puts up a dialog with an edit field, a password field, and an optional, labeled checkbox.
|
boolean |
select(DOMWindow aParent,
String aDialogTitle,
String aText,
long aCount,
String[] aSelectList,
int[] aOutSelection)
Puts up a dialog box which has a list box of strings from which the user may make a single selection.
|
void alert(DOMWindow aParent, String aDialogTitle, String aText)
aParent
- The parent window or null.aDialogTitle
- Text to appear in the title of the dialog.aText
- Text to appear in the body of the dialog.void alertCheck(DOMWindow aParent, String aDialogTitle, String aText, String aCheckMsg, boolean[] aCheckState)
aParent
- The parent window or null.aDialogTitle
- Text to appear in the title of the dialog.aText
- Text to appear in the body of the dialog.aCheckMsg
- Text to appear with the checkbox.aCheckState
- Contains the initial checked state of the checkbox when this method is called and the final checked state
after this method returns.boolean confirm(DOMWindow aParent, String aDialogTitle, String aText)
aParent
- The parent window or null.aDialogTitle
- Text to appear in the title of the dialog.aText
- Text to appear in the body of the dialog.boolean confirmCheck(DOMWindow aParent, String aDialogTitle, String aText, String aCheckMsg, boolean[] aCheckState)
aParent
- The parent window or null.aDialogTitle
- Text to appear in the title of the dialog.aText
- Text to appear in the body of the dialog.aCheckMsg
- Text to appear with the checkbox.aCheckState
- Contains the initial checked state of the checkbox when this method is called and the final checked state
after this method returns.int confirmEx(DOMWindow aParent, String aDialogTitle, String aText, long aButtonFlags, String aButton0Title, String aButton1Title, String aButton2Title, String aCheckMsg, boolean[] aCheckState)
aParent
- The parent window or null.aDialogTitle
- Text to appear in the title of the dialog.aText
- Text to appear in the body of the dialog.aButtonFlags
- A combination of Button Flags.aButton0Title
- Used when button 0 uses TITLE_IS_STRINGaButton1Title
- Used when button 1 uses TITLE_IS_STRINGaButton2Title
- Used when button 2 uses TITLE_IS_STRINGaCheckMsg
- Text to appear with the checkbox. Null if no checkbox.aCheckState
- Contains the initial checked state of the checkbox when this method is called and the final checked state
after this method returns.boolean prompt(DOMWindow aParent, String aDialogTitle, String aText, String[] aValue, String aCheckMsg, boolean[] aCheckState)
aParent
- The parent window or null.aDialogTitle
- Text to appear in the title of the dialog.aText
- Text to appear in the body of the dialog.aValue
- Contains the default value for the dialog field when this method is called (null value is ok). Upon
return, if the user pressed OK, then this parameter contains a newly allocated string value. Otherwise,
the parameter's value is unmodified.aCheckMsg
- Text to appear with the checkbox. If null, check box will not be shown.aCheckState
- Contains the initial checked state of the checkbox when this method is called and the final checked state
after this method returns.boolean promptUsernameAndPassword(DOMWindow aParent, String aDialogTitle, String aText, String[] aUsername, String[] aPassword, String aCheckMsg, boolean[] aCheckState)
aParent
- The parent window or null.aDialogTitle
- Text to appear in the title of the dialog.aText
- Text to appear in the body of the dialog.aUsername
- Contains the default value for the username field when this method is called (null value is ok). Upon
return, if the user pressed OK, then this parameter contains a newly allocated string value. Otherwise,
the parameter's value is unmodified.aPassword
- Contains the default value for the password field when this method is called (null value is ok). Upon
return, if the user pressed OK, then this parameter contains a newly allocated string value. Otherwise,
the parameter's value is unmodified.aCheckMsg
- Text to appear with the checkbox. If null, check box will not be shown.aCheckState
- Contains the initial checked state of the checkbox when this method is called and the final checked state
after this method returns.boolean promptPassword(DOMWindow aParent, String aDialogTitle, String aText, String[] aPassword, String aCheckMsg, boolean[] aCheckState)
aParent
- The parent window or null.aDialogTitle
- Text to appear in the title of the dialog.aText
- Text to appear in the body of the dialog.aPassword
- Contains the default value for the password field when this method is called (null value is ok). Upon
return, if the user pressed OK, then this parameter contains a newly allocated string value. Otherwise,
the parameter's value is unmodified.aCheckMsg
- Text to appear with the checkbox. If null, check box will not be shown.aCheckState
- Contains the initial checked state of the checkbox when this method is called and the final checked state
after this method returns.boolean select(DOMWindow aParent, String aDialogTitle, String aText, long aCount, String[] aSelectList, int[] aOutSelection)
aParent
- The parent window or null.aDialogTitle
- Text to appear in the title of the dialog.aText
- Text to appear in the body of the dialog.aCount
- The length of the aSelectList array parameter.aSelectList
- The list of strings to display.aOutSelection
- Contains the index of the selected item in the list when this method returns true.Copyright © 2020 OXPath Team. All rights reserved.