public class ChatOperationReasonDialog extends MessageDialog
SIPCommDialog.DialogWindowAdapter
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
CANCEL_RETURN_CODE, checkBoxPanel, doNotAskAgain, OK_DONT_ASK_CODE, OK_RETURN_CODE, okButton, returnCode
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
ChatOperationReasonDialog()
Creates an instance of ChatOperationReasonDialog using the
default title and message.
|
ChatOperationReasonDialog(boolean disableOKIfReasonIsEmpty)
Creates an instance of ChatOperationReasonDialog using the
default title and message.
|
ChatOperationReasonDialog(java.awt.Frame chatWindow,
java.lang.String title,
java.lang.String message,
java.lang.String okButtonName,
boolean showReasonLabel)
Creates an instance of ChatOperationReasonDialog by specifying
the parent window, the title and the message to show.
|
ChatOperationReasonDialog(java.awt.Frame chatWindow,
java.lang.String title,
java.lang.String message,
java.lang.String okButtonName,
boolean showReasonLabel,
boolean disableOKIfReasonIsEmpty)
Creates an instance of ChatOperationReasonDialog by specifying
the parent window, the title and the message to show.
|
ChatOperationReasonDialog(java.lang.String title,
java.lang.String message)
Creates an instance of ChatOperationReasonDialog by specifying
the title and the message shown in the dialog.
|
ChatOperationReasonDialog(java.lang.String title,
java.lang.String message,
boolean showReasonLabel,
boolean disableOKIfReasonIsEmpty)
Creates an instance of ChatOperationReasonDialog by specifying
the title and the message shown in the dialog.
|
Modifier and Type | Method and Description |
---|---|
void |
addToReasonFieldPannel(java.awt.Component comp)
Adds component to panel which contains the reason text field.
|
java.lang.String |
getReason()
Returns the text entered in the reason field.
|
void |
setMessage(java.lang.String message)
Sets the message to be displayed.
|
void |
setReasonFieldText(java.lang.String value)
Sets a default value for the reason field.
|
actionPerformed, close, loadSkin, replaceCheckBoxPanel, setIcon, setIcon, setMaxWidth, showDialog
addKeyBinding, dispose, setVisible
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public ChatOperationReasonDialog()
public ChatOperationReasonDialog(boolean disableOKIfReasonIsEmpty)
disableOKIfReasonIsEmpty
- if true the OK button will be disabled if
the reason text is empty.public ChatOperationReasonDialog(java.lang.String title, java.lang.String message)
title
- the title of this dialogmessage
- the message shown in this dialogpublic ChatOperationReasonDialog(java.lang.String title, java.lang.String message, boolean showReasonLabel, boolean disableOKIfReasonIsEmpty)
title
- the title of this dialogmessage
- the message shown in this dialogdisableOKIfReasonIsEmpty
- if true the OK button will be disabled if
the reason text is empty.showReasonLabel
- specify if we want the "Reason:" labelpublic ChatOperationReasonDialog(java.awt.Frame chatWindow, java.lang.String title, java.lang.String message, java.lang.String okButtonName, boolean showReasonLabel)
chatWindow
- the parent windowtitle
- the title of this dialogmessage
- the message shown in this dialogokButtonName
- the custom name of the ok buttonshowReasonLabel
- specify if we want the "Reason:" labelpublic ChatOperationReasonDialog(java.awt.Frame chatWindow, java.lang.String title, java.lang.String message, java.lang.String okButtonName, boolean showReasonLabel, boolean disableOKIfReasonIsEmpty)
chatWindow
- the parent windowtitle
- the title of this dialogmessage
- the message shown in this dialogokButtonName
- the custom name of the ok buttonshowReasonLabel
- specify if we want the "Reason:" labeldisableOKIfReasonIsEmpty
- if true the OK button will be disabled if
the reason text is empty.public void addToReasonFieldPannel(java.awt.Component comp)
comp
- the component to be added.public java.lang.String getReason()
public void setReasonFieldText(java.lang.String value)
value
- the text to set as default text for the reason fieldpublic void setMessage(java.lang.String message)
setMessage
in class MessageDialog
message
- The message to be displayed.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.