Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.util.swing
Class SIPCommDialog

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Dialog
                  extended by javax.swing.JDialog
                      extended by net.java.sip.communicator.util.swing.SIPCommDialog
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
AccountSettingsForm, AddContactDialog, AuthenticationWindow, AuthorizationRequestedDialog, AuthorizationResponseDialog, CertConfigEntryDialog, ChatRoomListDialog, ChatRoomTableDialog, ConfigurationFrame, ContactInfoDialog, CreateChatRoomDialog, CreateGroupDialog, DirectorySettingsForm, ErrorDialog, GlobalShortcutDialog, ImagePickerDialog, InvitationReceivedDialog, InvitationReceivedDialog, InviteDialog, JabberServerChooserDialog, JitsiWarningWindow, JoinChatRoomDialog, MasterPasswordChangeDialog, MasterPasswordInputDialog, MessageDialog, MoveSubcontactMessageDialog, NewAccountDialog, NewBundleDialog, NewStatusMessageDialog, NewStatusMessageDialog, OneChoiceInviteDialog, OtrBuddyAuthenticationDialog, PluginDialog, RenameContactDialog, RenameGroupDialog, RequestAuthorizationDialog, SavedPasswordsDialog, SelectScreenDialog, SendSmsDialog, SpellCheckerConfigDialog, SSHContactInfo, VerifyCertificateDialog, WebcamDialog, Wizard

public class SIPCommDialog
extends JDialog

Author:
Yana Stamcheva, Lubomir Marinov
See Also:
Serialized Form

Nested Class Summary
 class SIPCommDialog.DialogWindowAdapter
          Before closing the application window saves the current size and position through the ConfigurationService.
 
Nested classes/interfaces inherited from class javax.swing.JDialog
JDialog.AccessibleJDialog
 
Nested classes/interfaces inherited from class java.awt.Dialog
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType
 
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
DEFAULT_MODALITY_TYPE
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SIPCommDialog()
          Creates an instance of SIPCommDialog.
SIPCommDialog(boolean isSaveSizeAndLocation)
          Creates an instance of SIPCommDialog by specifying explicitly if the size and location properties are saved.
SIPCommDialog(Dialog owner)
          Creates an instance of SIPCommDialog by specifying the Dialogowner of this dialog.
SIPCommDialog(Dialog owner, boolean isSaveSizeAndLocation)
          Creates an instance of SIPCommDialog by specifying the owner of this dialog and indicating whether to save the size and location properties.
SIPCommDialog(Frame owner)
          Creates an instance of SIPCommDialog by specifying the Frame owner.
SIPCommDialog(Frame owner, boolean isSaveSizeAndLocation)
          Creates an instance of SIPCommDialog by specifying the owner of this dialog and indicating whether to save the size and location properties.
 
Method Summary
protected  void addKeyBinding(KeyStroke keyStroke, Action action)
          Adds a key - action pair for this frame.
protected  void close(boolean escaped)
          All functions implemented in this method will be invoked when user presses the Escape key.
 void dispose()
          Overwrites the dispose method in order to save the size and the position of this window before closing it.
 void setVisible(boolean isVisible)
          Overwrites the setVisible method in order to set the size and the position of this window before showing it.
 
Methods inherited from class javax.swing.JDialog
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
 
Methods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, show, toBack
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, toFront
 
Methods inherited from class java.awt.Container
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, 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, isOpaque, 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, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SIPCommDialog

public SIPCommDialog()
Creates an instance of SIPCommDialog.


SIPCommDialog

public SIPCommDialog(Dialog owner)
Creates an instance of SIPCommDialog by specifying the Dialogowner of this dialog.

Parameters:
owner - the owner of this dialog

SIPCommDialog

public SIPCommDialog(Frame owner)
Creates an instance of SIPCommDialog by specifying the Frame owner.

Parameters:
owner - the owner of this dialog

SIPCommDialog

public SIPCommDialog(boolean isSaveSizeAndLocation)
Creates an instance of SIPCommDialog by specifying explicitly if the size and location properties are saved. By default size and location are stored.

Parameters:
isSaveSizeAndLocation - indicates whether to save the size and location of this dialog

SIPCommDialog

public SIPCommDialog(Dialog owner,
                     boolean isSaveSizeAndLocation)
Creates an instance of SIPCommDialog by specifying the owner of this dialog and indicating whether to save the size and location properties.

Parameters:
owner - the owner of this dialog
isSaveSizeAndLocation - indicates whether to save the size and location of this dialog

SIPCommDialog

public SIPCommDialog(Frame owner,
                     boolean isSaveSizeAndLocation)
Creates an instance of SIPCommDialog by specifying the owner of this dialog and indicating whether to save the size and location properties.

Parameters:
owner - the owner of this dialog
isSaveSizeAndLocation - indicates whether to save the size and location of this dialog
Method Detail

addKeyBinding

protected void addKeyBinding(KeyStroke keyStroke,
                             Action action)
Adds a key - action pair for this frame.

Parameters:
keyStroke - the key combination
action - the action which will be executed when user presses the given key combination

setVisible

public void setVisible(boolean isVisible)
Overwrites the setVisible method in order to set the size and the position of this window before showing it.

Overrides:
setVisible in class Dialog
Parameters:
isVisible - indicates if the dialog should be visible

dispose

public void dispose()
Overwrites the dispose method in order to save the size and the position of this window before closing it.

Overrides:
dispose in class Window

close

protected void close(boolean escaped)
All functions implemented in this method will be invoked when user presses the Escape key.

Parameters:
escaped - true if this frame has been closed by pressing the Esc key; otherwise, false

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.