public class AddContactDialog extends SIPCommDialog implements ExportedWindow, java.awt.event.ActionListener, java.awt.event.WindowFocusListener, Skinnable
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
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABOUT_WINDOW, ADD_CONTACT_WINDOW, CHAT_WINDOW, MAIN_WINDOW
Constructor and Description |
---|
AddContactDialog(java.awt.Frame parentWindow)
Creates an instance of AddContactDialog that represents a dialog
that adds a new contact to an already existing meta contact.
|
AddContactDialog(java.awt.Frame parentWindow,
MetaContact metaContact)
Creates an AddContactDialog by specifying the parent window and
a meta contact, to which to add the new contact.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Indicates that the "Add" buttons has been pressed.
|
void |
bringToFront()
Brings this window to the front.
|
protected void |
close(boolean isEscaped)
Indicates that this dialog is about to be closed.
|
static javax.swing.JComboBox |
createGroupCombo(java.awt.Dialog parentDialog)
Initializes groups combo box.
|
void |
dispose()
Overwrites the dispose method in order to clean instances
of this window before closing it.
|
WindowID |
getIdentifier()
Returns this exported window identifier.
|
java.lang.Object |
getSource()
The source of the window
|
void |
loadSkin()
Reloads resources for this component.
|
void |
maximize()
This window can't be maximized.
|
void |
minimize()
This window can't be minimized.
|
void |
setContactAddress(java.lang.String contactAddress)
Sets the address of the contact to add.
|
void |
setDisplayName(java.lang.String displayName)
Sets the display name of the contact to add.
|
void |
setParams(java.lang.Object[] windowParams)
This method can be called to pass any params to the exported window.
|
void |
setSelectedAccount(ProtocolProviderService protocolProvider)
Selects the given protocol provider in the account combo box.
|
void |
setSelectedGroup(MetaContactGroup group)
Selects the given group in the group combo box.
|
void |
setVisible(boolean isVisible)
Overwrites the setVisible method in order to init window before opening
it.
|
void |
windowGainedFocus(java.awt.event.WindowEvent e)
Indicates that the window has gained the focus.
|
void |
windowLostFocus(java.awt.event.WindowEvent e) |
addKeyBinding
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFocused, isVisible, setLocation, setSize
public AddContactDialog(java.awt.Frame parentWindow)
parentWindow
- the parent window of this dialogpublic AddContactDialog(java.awt.Frame parentWindow, MetaContact metaContact)
parentWindow
- the parent windowmetaContact
- the meta contact, to which to add the new contactpublic void setSelectedAccount(ProtocolProviderService protocolProvider)
protocolProvider
- the ProtocolProviderService to selectpublic void setSelectedGroup(MetaContactGroup group)
group
- the MetaContactGroup to selectpublic void setContactAddress(java.lang.String contactAddress)
contactAddress
- the address of the contact to addpublic void setDisplayName(java.lang.String displayName)
displayName
- the display name of the contact to addpublic static javax.swing.JComboBox createGroupCombo(java.awt.Dialog parentDialog)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- the ActionEvent that notified uspublic void dispose()
dispose
in class SIPCommDialog
public void setVisible(boolean isVisible)
setVisible
in interface ExportedWindow
setVisible
in class SIPCommDialog
isVisible
- indicates if the dialog should be visibleprotected void close(boolean isEscaped)
close
in class SIPCommDialog
isEscaped
- indicates if the dialog is closed by pressing the
Esc keypublic void windowGainedFocus(java.awt.event.WindowEvent e)
windowGainedFocus
in interface java.awt.event.WindowFocusListener
e
- the WindowEvent that notified uspublic void windowLostFocus(java.awt.event.WindowEvent e)
windowLostFocus
in interface java.awt.event.WindowFocusListener
public void bringToFront()
bringToFront
in interface ExportedWindow
public WindowID getIdentifier()
getIdentifier
in interface ExportedWindow
public java.lang.Object getSource()
getSource
in interface ExportedWindow
public void maximize()
maximize
in interface ExportedWindow
public void minimize()
minimize
in interface ExportedWindow
public void setParams(java.lang.Object[] windowParams)
UIService.getExportedWindow(WindowID, Object[])
in order to set
the parameters passed.setParams
in interface ExportedWindow
windowParams
- the parameters to pass.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.