public interface PopupDialog extends ExportedWindow
Modifier and Type | Field and Description |
---|---|
static int |
CANCEL_OPTION
Return value from class method if CANCEL is chosen.
|
static int |
CLOSED_OPTION
Return value from class method if user closes window without
selecting anything.
|
static int |
ERROR_MESSAGE
Used for error messages.
|
static int |
INFORMATION_MESSAGE
Used for information messages.
|
static int |
NO_OPTION
Return value from class method if NO is chosen.
|
static int |
OK_CANCEL_OPTION
Type used for
showConfirmDialog . |
static int |
OK_OPTION
Return value form class method if OK is chosen.
|
static int |
PLAIN_MESSAGE
No icon is used.
|
static int |
QUESTION_MESSAGE
Used for questions.
|
static int |
WARNING_MESSAGE
Used for warning messages.
|
static WindowID |
WINDOW_GENERAL_POPUP |
static int |
YES_NO_CANCEL_OPTION
Type used for
showConfirmDialog . |
static int |
YES_NO_OPTION
Type used for
showConfirmDialog . |
static int |
YES_OPTION
Return value from class method if YES is chosen.
|
ABOUT_WINDOW, ADD_CONTACT_WINDOW, CHAT_WINDOW, MAIN_WINDOW
Modifier and Type | Method and Description |
---|---|
int |
showConfirmPopupDialog(java.lang.Object message)
Shows a dialog that prompts the user for confirmation.
|
int |
showConfirmPopupDialog(java.lang.Object message,
java.lang.String title,
int optionType)
Shows a dialog where the number of choices is determined
by the
optionType parameter. |
int |
showConfirmPopupDialog(java.lang.Object message,
java.lang.String title,
int optionType,
int messageType)
Shows a dialog where the number of choices is determined
by the
optionType parameter, where the
messageType parameter determines the icon to display. |
int |
showConfirmPopupDialog(java.lang.Object message,
java.lang.String title,
int optionType,
int messageType,
byte[] icon)
Implements the PopupDialog.showConfirmPopupDialog(Object, String,
int, int) method.
|
java.lang.String |
showInputPopupDialog(java.lang.Object message)
Shows a question-message dialog requesting input from the user.
|
java.lang.String |
showInputPopupDialog(java.lang.Object message,
java.lang.String initialSelectionValue)
Shows a question-message dialog requesting input from the user, with
the input value initialized to
initialSelectionValue . |
java.lang.String |
showInputPopupDialog(java.lang.Object message,
java.lang.String title,
int messageType)
Shows a dialog with title
title and message type
messageType , requesting input from the user. |
java.lang.Object |
showInputPopupDialog(java.lang.Object message,
java.lang.String title,
int messageType,
java.lang.Object[] selectionValues,
java.lang.Object initialSelectionValue)
Shows an input dialog, where all options like title, type of message
etc., could be configured.
|
java.lang.Object |
showInputPopupDialog(java.lang.Object message,
java.lang.String title,
int messageType,
java.lang.Object[] selectionValues,
java.lang.Object initialSelectionValue,
byte[] icon)
Implements the
PopupDialog.showInputPopupDialog(Object, String, int, Object[],
Object) method.
|
void |
showMessagePopupDialog(java.lang.Object message)
Shows an information-message dialog titled "Message".
|
void |
showMessagePopupDialog(java.lang.Object message,
java.lang.String title,
int messageType)
Shows a dialog that displays a message using a default
icon determined by the
messageType parameter. |
void |
showMessagePopupDialog(java.lang.Object message,
java.lang.String title,
int messageType,
byte[] icon)
Implements the PopupDialog.showMessagePopupDialog(Object, String,
int) method.
|
bringToFront, getIdentifier, getSource, isFocused, isVisible, maximize, minimize, setLocation, setParams, setSize, setVisible
static final WindowID WINDOW_GENERAL_POPUP
static final int YES_NO_OPTION
showConfirmDialog
.static final int YES_NO_CANCEL_OPTION
showConfirmDialog
.static final int OK_CANCEL_OPTION
showConfirmDialog
.static final int YES_OPTION
static final int NO_OPTION
static final int CANCEL_OPTION
static final int OK_OPTION
static final int CLOSED_OPTION
static final int ERROR_MESSAGE
static final int INFORMATION_MESSAGE
static final int WARNING_MESSAGE
static final int QUESTION_MESSAGE
static final int PLAIN_MESSAGE
java.lang.String showInputPopupDialog(java.lang.Object message)
message
- the Object
to display.null
meaning the user
canceled the inputjava.lang.String showInputPopupDialog(java.lang.Object message, java.lang.String initialSelectionValue)
initialSelectionValue
.message
- the Object
to displayinitialSelectionValue
- the value used to initialize the input
fieldnull
meaning the user
canceled the inputjava.lang.String showInputPopupDialog(java.lang.Object message, java.lang.String title, int messageType)
title
and message type
messageType
, requesting input from the user. The message
type is meant to be used by the ui implementation to determine the
icon of the dialog.message
- the Object
to displaytitle
- the String
to display in the dialog
title barmessageType
- the type of message that is to be displayed:
ERROR_MESSAGE
,
INFORMATION_MESSAGE
,
WARNING_MESSAGE
,
QUESTION_MESSAGE
,
or PLAIN_MESSAGE
null
meaning the user
canceled the inputjava.lang.Object showInputPopupDialog(java.lang.Object message, java.lang.String title, int messageType, java.lang.Object[] selectionValues, java.lang.Object initialSelectionValue)
selectionValues
, where null
implies the
users can input whatever they wish.
initialSelectionValue
is the initial value to prompt
the user with.
It is up to the UI implementation to decide how best to represent the
selectionValues
. In the case of swing per example it could
be a JComboBox
, JList
or
JTextField
. The message type is meant to be used by the ui
implementation to determine the icon of the dialog.message
- the Object
to displaytitle
- the String
to display in the
dialog title barmessageType
- the type of message to be displayed:
ERROR_MESSAGE
,
INFORMATION_MESSAGE
,
WARNING_MESSAGE
,
QUESTION_MESSAGE
,
or PLAIN_MESSAGE
selectionValues
- an array of Object
s that
gives the possible selectionsinitialSelectionValue
- the value used to initialize the input
fieldnull
meaning the user
canceled the inputvoid showMessagePopupDialog(java.lang.Object message)
message
- the Object
to displayvoid showMessagePopupDialog(java.lang.Object message, java.lang.String title, int messageType)
messageType
parameter.message
- the Object
to displaytitle
- the title string for the dialogmessageType
- the type of message to be displayed:
ERROR_MESSAGE
,
INFORMATION_MESSAGE
,
WARNING_MESSAGE
,
QUESTION_MESSAGE
,
or PLAIN_MESSAGE
int showConfirmPopupDialog(java.lang.Object message)
message
- the Object
to displayint showConfirmPopupDialog(java.lang.Object message, java.lang.String title, int optionType)
optionType
parameter.message
- the Object
to displaytitle
- the title string for the dialogoptionType
- an int designating the options available on the dialog:
YES_NO_OPTION
, or
YES_NO_CANCEL_OPTION
int showConfirmPopupDialog(java.lang.Object message, java.lang.String title, int optionType, int messageType)
optionType
parameter, where the
messageType
parameter determines the icon to display.
The messageType
parameter is primarily used to supply
a default icon for the dialog.message
- the Object
to displaytitle
- the title string for the dialogoptionType
- an integer designating the options available
on the dialog: YES_NO_OPTION
,
or YES_NO_CANCEL_OPTION
messageType
- an integer designating the kind of message this is;
ERROR_MESSAGE
,
INFORMATION_MESSAGE
,
WARNING_MESSAGE
,
QUESTION_MESSAGE
,
or PLAIN_MESSAGE
java.lang.Object showInputPopupDialog(java.lang.Object message, java.lang.String title, int messageType, java.lang.Object[] selectionValues, java.lang.Object initialSelectionValue, byte[] icon)
message
- the message to displaymessageType
- the type of message to be displayed: ERROR_MESSAGE,
INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGEtitle
- the String to display in the dialog title barselectionValues
- an array of Objects that gives the possible
selectionsinitialSelectionValue
- the value used to initialize the input fieldicon
- the icon to show in the input window.void showMessagePopupDialog(java.lang.Object message, java.lang.String title, int messageType, byte[] icon)
message
- the Object to displaytitle
- the title string for the dialogmessageType
- the type of message to be displayed: ERROR_MESSAGE,
INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGEicon
- the image to display in the message dialog.int showConfirmPopupDialog(java.lang.Object message, java.lang.String title, int optionType, int messageType, byte[] icon)
message
- the Object to displaytitle
- the title string for the dialogoptionType
- an integer designating the options available on the
dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTIONmessageType
- an integer designating the kind of message this is;
primarily used to determine the icon from the pluggable Look and Feel:
ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE,
or PLAIN_MESSAGEicon
- the icon to display in the dialog
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.