public interface Dialogs
Modifier and Type | Method and Description |
---|---|
Progress |
createProgress(java.lang.String title)
Create a progress monitor
|
void |
errors(java.lang.String message,
Reporter reporter)
Display a list of errors and warnings.
|
org.osgi.util.promise.Promise<java.lang.Integer> |
message(java.lang.String title,
java.lang.String message,
java.lang.String[] buttons,
int defaultIndex)
Display a message and optionally a set of buttons.
|
org.osgi.util.promise.Promise<java.lang.String> |
prompt(java.lang.String title,
java.lang.String query,
java.lang.String initialValue,
java.util.regex.Pattern validator)
Display a dialog where the user can input a string.
|
org.osgi.util.promise.Promise<java.lang.Integer> message(java.lang.String title, java.lang.String message, java.lang.String[] buttons, int defaultIndex) throws java.lang.Exception
title
- The title of the dialog, must not be nullmessage
- The message displayed, must not be nullbuttons
- A list of buttons, may be nulldefaultIndex
- The default index. Must be -1 for none or between
0..n, where n is the number of buttons specified.java.lang.Exception
org.osgi.util.promise.Promise<java.lang.String> prompt(java.lang.String title, java.lang.String query, java.lang.String initialValue, java.util.regex.Pattern validator) throws java.lang.Exception
title
- The title of the dialog, must not be nullquery
- The query displayed, must not be nullinitialValue
- The initial value, can be nullvalidator
- A pattern that must match the input, can be null if no
validator is necessaryjava.lang.Exception
void errors(java.lang.String message, Reporter reporter) throws java.lang.Exception
message
- The message displayed, must not be nullreporter
- Contains the errors and warningsjava.lang.Exception
Progress createProgress(java.lang.String title) throws java.lang.Exception
java.lang.Exception