public interface PluginComponent
All components interested in the current contact or group that they're dealing with (i.g. the one selected in the contact list for example), should implement the setCurrentContact and setCurrentContactGroup methods.
All components interested in the current account that they're dealing with (i.g. the one selected in the account list for example), should implement the setCurrentAccountID method.
Note that getComponent should return a valid AWT, SWT or Swing control in order to appear properly in the GUI.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getComponent()
Returns the component that should be added.
|
java.lang.String |
getName()
Returns the name of this plugin component.
|
PluginComponentFactory |
getParentFactory()
Returns the factory that has created the component.
|
int |
getPositionIndex()
Returns the position of this PluginComponent within its
Container
|
void |
setCurrentAccountID(AccountID accountID)
Sets the current AccountID.
|
void |
setCurrentContact(Contact contact)
Sets the current contact.
|
void |
setCurrentContact(Contact contact,
java.lang.String resourceName)
Sets the current contact.
|
void |
setCurrentContact(MetaContact metaContact)
Sets the current meta contact.
|
void |
setCurrentContactGroup(MetaContactGroup metaGroup)
Sets the current meta group.
|
java.lang.String getName()
java.lang.Object getComponent()
int getPositionIndex()
void setCurrentContact(Contact contact)
contact
- the current contactvoid setCurrentContact(Contact contact, java.lang.String resourceName)
contact
- the current contactresourceName
- the ContactResource name. Some components
may be interested in a particular ContactResource of a contact.void setCurrentContact(MetaContact metaContact)
metaContact
- the current meta contactvoid setCurrentContactGroup(MetaContactGroup metaGroup)
metaGroup
- the current meta contact groupvoid setCurrentAccountID(AccountID accountID)
account
- the current account.PluginComponentFactory getParentFactory()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.