|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PopupDialog
A configurable popup dialog, that could be used from other services for simple interactions with the user, throught the gui interface. This dialog allows showing error, warning or info messages, prompting the user for simple one field input or choice, or asking the user for certain confirmation. Three types of dialogs are differentiated: Message, Confirm and Input dialog. Each of them has several show methods corresponging, allowing additional specific configuration, like specifying or not a title, confirmation option or initial value.
| Field Summary | |
|---|---|
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. |
| Fields inherited from interface net.java.sip.communicator.service.gui.ExportedWindow |
|---|
ABOUT_WINDOW, ADD_CONTACT_WINDOW, CHAT_WINDOW, MAIN_WINDOW |
| Method Summary | |
|---|---|
int |
showConfirmPopupDialog(Object message)
Shows a dialog that prompts the user for confirmation. |
int |
showConfirmPopupDialog(Object message,
String title,
int optionType)
Shows a dialog where the number of choices is determined by the optionType parameter. |
int |
showConfirmPopupDialog(Object message,
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(Object message,
String title,
int optionType,
int messageType,
byte[] icon)
Implements the PopupDialog.showConfirmPopupDialog(Object, String, int, int) method. |
String |
showInputPopupDialog(Object message)
Shows a question-message dialog requesting input from the user. |
String |
showInputPopupDialog(Object message,
String initialSelectionValue)
Shows a question-message dialog requesting input from the user, with the input value initialized to initialSelectionValue. |
String |
showInputPopupDialog(Object message,
String title,
int messageType)
Shows a dialog with title title and message type
messageType, requesting input from the user. |
Object |
showInputPopupDialog(Object message,
String title,
int messageType,
Object[] selectionValues,
Object initialSelectionValue)
Shows an input dialog, where all options like title, type of message etc., could be configured. |
Object |
showInputPopupDialog(Object message,
String title,
int messageType,
Object[] selectionValues,
Object initialSelectionValue,
byte[] icon)
Implements the PopupDialog.showInputPopupDialog(Object, String, int, Object[], Object) method. |
void |
showMessagePopupDialog(Object message)
Shows an information-message dialog titled "Message". |
void |
showMessagePopupDialog(Object message,
String title,
int messageType)
Shows a dialog that displays a message using a default icon determined by the messageType parameter. |
void |
showMessagePopupDialog(Object message,
String title,
int messageType,
byte[] icon)
Implements the PopupDialog.showMessagePopupDialog(Object, String, int) method. |
| Methods inherited from interface net.java.sip.communicator.service.gui.ExportedWindow |
|---|
bringToFront, getIdentifier, getSource, isFocused, isVisible, maximize, minimize, setLocation, setParams, setSize, setVisible |
| Field Detail |
|---|
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
| Method Detail |
|---|
String showInputPopupDialog(Object message)
message - the Object to display.
null meaning the user
canceled the input
String showInputPopupDialog(Object message,
String initialSelectionValue)
initialSelectionValue.
message - the Object to displayinitialSelectionValue - the value used to initialize the input
field
null meaning the user
canceled the input
String showInputPopupDialog(Object message,
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 input
Object showInputPopupDialog(Object message,
String title,
int messageType,
Object[] selectionValues,
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_MESSAGEselectionValues - an array of Objects that
gives the possible selectionsinitialSelectionValue - the value used to initialize the input
field
null meaning the user
canceled the inputvoid showMessagePopupDialog(Object message)
message - the Object to display
void showMessagePopupDialog(Object message,
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_MESSAGEint showConfirmPopupDialog(Object message)
message - the Object to display
int showConfirmPopupDialog(Object message,
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(Object message,
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_OPTIONmessageType - an integer designating the kind of message this is;
ERROR_MESSAGE,
INFORMATION_MESSAGE,
WARNING_MESSAGE,
QUESTION_MESSAGE,
or PLAIN_MESSAGE
Object showInputPopupDialog(Object message,
String title,
int messageType,
Object[] selectionValues,
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(Object message,
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(Object message,
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. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||