public abstract class AbstractPluginComponent extends java.lang.Object implements PluginComponent
PluginComponent
in
order to take care of the implementation boilerplate and let implementers
focus on the specifics of their plug-in.Modifier | Constructor and Description |
---|---|
protected |
AbstractPluginComponent(Container container,
PluginComponentFactory parentFactory)
Initializes a new
AbstractPluginComponent which is to be
added to a specific Container . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConstraints() |
Container |
getContainer() |
PluginComponentFactory |
getParentFactory()
Returns the factory that has created the component.
|
int |
getPositionIndex()
Implements
PluginComponent.getPositionIndex() . |
boolean |
isNativeComponent() |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponent, getName
protected AbstractPluginComponent(Container container, PluginComponentFactory parentFactory)
AbstractPluginComponent
which is to be
added to a specific Container
.container
- the container in which the component of the new plug-in
is to be addedparentFactory
- the parent PluginComponentFactory that is
creating this plugin component.public java.lang.String getConstraints()
public Container getContainer()
public int getPositionIndex()
PluginComponent.getPositionIndex()
. Returns
-1 which indicates that the position of this
AbstractPluginComponent within its Container is of no
importance.getPositionIndex
in interface PluginComponent
PluginComponent.getPositionIndex()
public boolean isNativeComponent()
public void setCurrentContact(Contact contact)
PluginComponent
setCurrentContact
in interface PluginComponent
contact
- the current contactpublic void setCurrentContact(Contact contact, java.lang.String resourceName)
PluginComponent
setCurrentContact
in interface PluginComponent
contact
- the current contactresourceName
- the ContactResource name. Some components
may be interested in a particular ContactResource of a contact.public void setCurrentContact(MetaContact metaContact)
PluginComponent
setCurrentContact
in interface PluginComponent
metaContact
- the current meta contactpublic void setCurrentContactGroup(MetaContactGroup metaGroup)
PluginComponent
setCurrentContactGroup
in interface PluginComponent
metaGroup
- the current meta contact grouppublic void setCurrentAccountID(AccountID accountID)
PluginComponent
setCurrentAccountID
in interface PluginComponent
public PluginComponentFactory getParentFactory()
getParentFactory
in interface PluginComponent
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.