|
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 | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
net.java.sip.communicator.util.swing.SIPCommDialog
net.java.sip.communicator.impl.gui.utils.InviteDialog
public class InviteDialog
The invite dialog is a widget that shows a list of contacts, from which the user could pick in order to create a conference chat or call.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.java.sip.communicator.util.swing.SIPCommDialog |
|---|
SIPCommDialog.DialogWindowAdapter |
| 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 | |
|---|---|
protected SIPCommTextField |
newContactField
|
protected DefaultListModel |
selectedContactListModel
|
| 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 | |
|---|---|
InviteDialog(String title)
Constructs an InviteDialog. |
|
InviteDialog(String title,
List<MetaContact> metaContacts)
Constructs an InviteDialog, by specifying the initial list of contacts available for invite. |
|
| Method Summary | |
|---|---|
void |
addCancelButtonListener(ActionListener l)
Adds an ActionListener to the contained "Cancel" button. |
void |
addInviteButtonListener(ActionListener l)
Adds an ActionListener to the contained "Invite" button. |
void |
addMetaContact(MetaContact metaContact)
Adds the given metaContact to the left list of contacts available for invite. |
void |
addSelectedMetaContact(MetaContact metaContact)
Adds the given metaContact to the right list (selected) of contacts for invite. |
protected void |
close(boolean isEscaped)
Closes this dialog by clicking on the "Cancel" button. |
String |
getReason()
Returns the reason of this invite, if the user has specified one. |
Enumeration<MetaContact> |
getSelectedMetaContacts()
Returns an enumeration of the list of selected MetaContacts. |
Enumeration<String> |
getSelectedStrings()
Returns an enumeration of the list of selected Strings. |
void |
loadSkin()
Reloads icon for icon label. |
protected void |
moveContactsFromRightToLeft(Object[] contacts)
Moves a contact from the right list to the left. |
protected void |
moveStringFromLeftToRight()
Moves a string from left to right. |
void |
removeAllMetaContacts()
Removes all MetaContact-s from the left list of contacts available for invite. |
void |
removeAllSelectedContacts()
Removes all MetaContact-s from the right list of selected contacts for invite. |
void |
removeMetaContact(MetaContact metaContact)
Removes the given metaContact from the left list of contacts available for invite. |
void |
removeSelectedMetaContact(MetaContact metaContact)
Removes the given metaContact from the right list (selected) of contacts available for invite. |
| Methods inherited from class net.java.sip.communicator.util.swing.SIPCommDialog |
|---|
addKeyBinding, dispose, setVisible |
| 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.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final DefaultListModel selectedContactListModel
protected final SIPCommTextField newContactField
| Constructor Detail |
|---|
public InviteDialog(String title,
List<MetaContact> metaContacts)
title - the title to show on the top of this dialogmetaContacts - the list of contacts available for invitepublic InviteDialog(String title)
title - the title to show on the top of this dialog| Method Detail |
|---|
public void addSelectedMetaContact(MetaContact metaContact)
metaContact - the MetaContact to addpublic void removeSelectedMetaContact(MetaContact metaContact)
metaContact - the MetaContact to removepublic void addMetaContact(MetaContact metaContact)
metaContact - the MetaContact to addpublic void removeMetaContact(MetaContact metaContact)
metaContact - the MetaContact to removepublic void removeAllMetaContacts()
public void removeAllSelectedContacts()
public Enumeration<MetaContact> getSelectedMetaContacts()
public Enumeration<String> getSelectedStrings()
public String getReason()
public void addInviteButtonListener(ActionListener l)
l - the ActionListener to addpublic void addCancelButtonListener(ActionListener l)
l - the ActionListener to addprotected void close(boolean isEscaped)
close in class SIPCommDialogisEscaped - indicates if this close is provoked by an
escapeprotected void moveStringFromLeftToRight()
protected void moveContactsFromRightToLeft(Object[] contacts)
contacts - the contact to move.public void loadSkin()
loadSkin in interface Skinnable
|
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 | |||||||||