public class RosterDialog
extends java.lang.Object
implements java.awt.event.ActionListener
Constructor and Description |
---|
RosterDialog()
Create a new instance of RosterDialog.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
org.jivesoftware.smack.roster.RosterEntry |
addEntry(java.lang.String jid,
java.lang.String nickname,
java.lang.String group)
Adds a new entry to the users Roster.
|
java.util.List<org.jivesoftware.spark.ui.RosterDialog.AccountItem> |
getAccounts() |
void |
searchForContact(java.lang.String byname,
java.awt.event.MouseEvent event)
Creates a Popupdialog above the Search Button displaying matching
Contacts
|
void |
setDefaultGroup(ContactGroup contactGroup)
Sets the default
ContactGroup to display in the combo box. |
void |
setDefaultJID(java.lang.String jid)
Sets the default jid to show in the jid field.
|
void |
setDefaultNickname(java.lang.String nickname)
Sets the default nickname to show in the nickname field.
|
void |
showRosterDialog()
Display the RosterDialog using the MainWindow as the parent.
|
void |
showRosterDialog(javax.swing.JFrame parent)
Display the RosterDialog using a parent container.
|
public void setDefaultGroup(ContactGroup contactGroup)
ContactGroup
to display in the combo box.contactGroup
- the default ContactGroup.public void setDefaultJID(java.lang.String jid)
jid
- the jid.public void setDefaultNickname(java.lang.String nickname)
nickname
- the nickname.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void showRosterDialog(javax.swing.JFrame parent)
parent
- the parent Frame.public void showRosterDialog()
public void searchForContact(java.lang.String byname, java.awt.event.MouseEvent event) throws org.jivesoftware.smack.XMPPException, org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.SmackException.NoResponseException
byname
- , the Searchname, atleast 5 Chars longevent
- , the MouseEvent which triggered itorg.jivesoftware.smack.XMPPException
org.jivesoftware.smack.SmackException.NotConnectedException
org.jivesoftware.smack.SmackException.NoResponseException
public org.jivesoftware.smack.roster.RosterEntry addEntry(java.lang.String jid, java.lang.String nickname, java.lang.String group)
jid
- the jid.nickname
- the nickname.group
- the contact group.public java.util.List<org.jivesoftware.spark.ui.RosterDialog.AccountItem> getAccounts()