public class PopupDialogImpl extends javax.swing.JOptionPane implements PopupDialog
PopupDialog
interface.javax.swing.JOptionPane.AccessibleJOptionPane
javax.swing.JComponent.AccessibleJComponent
CANCEL_OPTION, CLOSED_OPTION, DEFAULT_OPTION, ERROR_MESSAGE, icon, ICON_PROPERTY, INFORMATION_MESSAGE, INITIAL_SELECTION_VALUE_PROPERTY, INITIAL_VALUE_PROPERTY, initialSelectionValue, initialValue, INPUT_VALUE_PROPERTY, inputValue, message, MESSAGE_PROPERTY, MESSAGE_TYPE_PROPERTY, messageType, NO_OPTION, OK_CANCEL_OPTION, OK_OPTION, OPTION_TYPE_PROPERTY, options, OPTIONS_PROPERTY, optionType, PLAIN_MESSAGE, QUESTION_MESSAGE, SELECTION_VALUES_PROPERTY, selectionValues, UNINITIALIZED_VALUE, value, VALUE_PROPERTY, WANTS_INPUT_PROPERTY, wantsInput, WARNING_MESSAGE, YES_NO_CANCEL_OPTION, YES_NO_OPTION, YES_OPTION
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
CANCEL_OPTION, CLOSED_OPTION, ERROR_MESSAGE, INFORMATION_MESSAGE, NO_OPTION, OK_CANCEL_OPTION, OK_OPTION, PLAIN_MESSAGE, QUESTION_MESSAGE, WARNING_MESSAGE, WINDOW_GENERAL_POPUP, YES_NO_CANCEL_OPTION, YES_NO_OPTION, YES_OPTION
ABOUT_WINDOW, ADD_CONTACT_WINDOW, CHAT_WINDOW, MAIN_WINDOW
Constructor and Description |
---|
PopupDialogImpl()
Creates an instance of PopupDialogImpl.
|
Modifier and Type | Method and Description |
---|---|
void |
bringToFront()
Implements the ExportedWindow.bringToFront() method.
|
WindowID |
getIdentifier()
Implements the ExportedWindow.getIdentifier() method.
|
java.lang.Object |
getSource()
The source of the window
|
boolean |
isFocused()
Implements the ExportedWindow.isFocused() method.
|
void |
maximize()
This dialog could not be maximized.
|
void |
minimize()
This dialog could not be minimized.
|
void |
setParams(java.lang.Object[] windowParams)
Implementation of
ExportedWindow.setParams(Object[]) . |
int |
showConfirmPopupDialog(java.lang.Object mesg)
Implements the PopupDialog.showConfirmPopupDialog(Object)
method.
|
int |
showConfirmPopupDialog(java.lang.Object mesg,
java.lang.String title,
int optType)
Implements the PopupDialog.showConfirmPopupDialog(Object, String,
int) method.
|
int |
showConfirmPopupDialog(java.lang.Object mesg,
java.lang.String title,
int optType,
int mesgType)
Implements the PopupDialog.showConfirmPopupDialog(Object, String,
int, int) method.
|
int |
showConfirmPopupDialog(java.lang.Object mesg,
java.lang.String title,
int optType,
int mesgType,
byte[] icon)
Implements the PopupDialog.showConfirmPopupDialog(Object, String,
int, int) method.
|
java.lang.String |
showInputPopupDialog(java.lang.Object mesg)
Implements the PopupDialog.showInputPopupDialog(Object) method.
|
java.lang.String |
showInputPopupDialog(java.lang.Object mesg,
java.lang.String initialSelectionVal)
Implements the PopupDialog.showInputPopupDialog(Object, String)
method.
|
java.lang.String |
showInputPopupDialog(java.lang.Object mesg,
java.lang.String title,
int mesgType)
Implements the
PopupDialog.showInputPopupDialog(Object, String, int) method.
|
java.lang.Object |
showInputPopupDialog(java.lang.Object mesg,
java.lang.String title,
int mesgType,
java.lang.Object[] selectionVal,
java.lang.Object initialSelectionVal)
Implements the
PopupDialog.showInputPopupDialog(Object, String, int, Object[],
Object) method.
|
java.lang.Object |
showInputPopupDialog(java.lang.Object mesg,
java.lang.String title,
int mesgType,
java.lang.Object[] selectionVal,
java.lang.Object initialSelectionVal,
byte[] icon)
Implements the
PopupDialog.showInputPopupDialog(Object, String, int, Object[],
Object) method.
|
void |
showMessagePopupDialog(java.lang.Object mesg)
Implements the PopupDialog.showMessagePopupDialog(Object)
method.
|
void |
showMessagePopupDialog(java.lang.Object mesg,
java.lang.String title,
int mesgType)
Implements the PopupDialog.showMessagePopupDialog(Object, String,
int) method.
|
void |
showMessagePopupDialog(java.lang.Object mesg,
java.lang.String title,
int mesgType,
byte[] icon)
Implements the PopupDialog.showMessagePopupDialog(Object, String,
int) method.
|
createDialog, createDialog, createInternalFrame, getAccessibleContext, getDesktopPaneForComponent, getFrameForComponent, getIcon, getInitialSelectionValue, getInitialValue, getInputValue, getMaxCharactersPerLineCount, getMessage, getMessageType, getOptions, getOptionType, getRootFrame, getSelectionValues, getUI, getUIClassID, getValue, getWantsInput, paramString, selectInitialValue, setIcon, setInitialSelectionValue, setInitialValue, setInputValue, setMessage, setMessageType, setOptions, setOptionType, setRootFrame, setSelectionValues, setUI, setValue, setWantsInput, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showInputDialog, showInputDialog, showInputDialog, showInputDialog, showInputDialog, showInputDialog, showInternalConfirmDialog, showInternalConfirmDialog, showInternalConfirmDialog, showInternalConfirmDialog, showInternalInputDialog, showInternalInputDialog, showInternalInputDialog, showInternalMessageDialog, showInternalMessageDialog, showInternalMessageDialog, showInternalOptionDialog, showMessageDialog, showMessageDialog, showMessageDialog, showOptionDialog, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isVisible, setLocation, setSize, setVisible
public java.lang.String showInputPopupDialog(java.lang.Object mesg)
showInputPopupDialog
in interface PopupDialog
mesg
- the object to displaynull
meaning the user
canceled the inputpublic java.lang.String showInputPopupDialog(java.lang.Object mesg, java.lang.String initialSelectionVal)
showInputPopupDialog
in interface PopupDialog
mesg
- the message to displayinitialSelectionVal
- the value used to initialize the input
field.null
meaning the user
canceled the inputpublic java.lang.String showInputPopupDialog(java.lang.Object mesg, java.lang.String title, int mesgType)
showInputPopupDialog
in interface PopupDialog
mesg
- the message to displaymesgType
- 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 barnull
meaning the user
canceled the inputpublic java.lang.Object showInputPopupDialog(java.lang.Object mesg, java.lang.String title, int mesgType, java.lang.Object[] selectionVal, java.lang.Object initialSelectionVal)
showInputPopupDialog
in interface PopupDialog
mesg
- the message to displaymesgType
- 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 barselectionVal
- an array of Objects that gives the possible
selectionsinitialSelectionVal
- the value used to initialize the input fieldnull
meaning the user
canceled the inputpublic java.lang.Object showInputPopupDialog(java.lang.Object mesg, java.lang.String title, int mesgType, java.lang.Object[] selectionVal, java.lang.Object initialSelectionVal, byte[] icon)
showInputPopupDialog
in interface PopupDialog
mesg
- the message to displaymesgType
- 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 barselectionVal
- an array of Objects that gives the possible
selectionsinitialSelectionVal
- the value used to initialize the input fieldicon
- the icon to show in the input window.public void showMessagePopupDialog(java.lang.Object mesg)
showMessagePopupDialog
in interface PopupDialog
mesg
- the Object to displaypublic void showMessagePopupDialog(java.lang.Object mesg, java.lang.String title, int mesgType)
showMessagePopupDialog
in interface PopupDialog
mesg
- the Object to displaytitle
- the title string for the dialogmesgType
- the type of message to be displayed: ERROR_MESSAGE,
INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGEpublic void showMessagePopupDialog(java.lang.Object mesg, java.lang.String title, int mesgType, byte[] icon)
showMessagePopupDialog
in interface PopupDialog
mesg
- the Object to displaytitle
- the title string for the dialogmesgType
- 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.public int showConfirmPopupDialog(java.lang.Object mesg)
showConfirmPopupDialog
in interface PopupDialog
mesg
- the message to displaypublic int showConfirmPopupDialog(java.lang.Object mesg, java.lang.String title, int optType)
showConfirmPopupDialog
in interface PopupDialog
mesg
- the Object to displaytitle
- the title string for the dialogoptType
- an integer designating the options available on the
dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTIONpublic int showConfirmPopupDialog(java.lang.Object mesg, java.lang.String title, int optType, int mesgType)
showConfirmPopupDialog
in interface PopupDialog
mesg
- the Object to displaytitle
- the title string for the dialogoptType
- an integer designating the options available on the
dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTIONmesgType
- 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_MESSAGEpublic int showConfirmPopupDialog(java.lang.Object mesg, java.lang.String title, int optType, int mesgType, byte[] icon)
showConfirmPopupDialog
in interface PopupDialog
mesg
- the Object to displaytitle
- the title string for the dialogoptType
- an integer designating the options available on the
dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTIONmesgType
- 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 dialogpublic WindowID getIdentifier()
getIdentifier
in interface ExportedWindow
public boolean isFocused()
isFocused
in interface ExportedWindow
public void bringToFront()
bringToFront
in interface ExportedWindow
public void minimize()
minimize
in interface ExportedWindow
public void maximize()
maximize
in interface ExportedWindow
public java.lang.Object getSource()
getSource
in interface ExportedWindow
public void setParams(java.lang.Object[] windowParams)
ExportedWindow.setParams(Object[])
.setParams
in interface ExportedWindow
windowParams
- the parameters to pass.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.