|
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 | |||||||||
public interface PluginComponent
The PluginComponent is an interface meant to be implemented by all plugins that would like to add a user interface component to a particular container in the graphical user interface (GUI). In order to appear in the GUI all implementations of this interface should be registered through the OSGI bundle context.
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.
Note that getComponent should return a valid AWT, SWT or Swing control in order to appear properly in the GUI.
| Method Summary | |
|---|---|
Object |
getComponent()
Returns the component that should be added. |
String |
getConstraints()
Returns the constraints, which will indicate to the container, where this component should be added. |
Container |
getContainer()
Returns the identifier of the container, where we would like to add our control. |
String |
getName()
Returns the name of this plugin component. |
int |
getPositionIndex()
Returns the index position of this component in the container, where it will be added. |
boolean |
isNativeComponent()
Returns true to indicate that this component is a native
component and false otherwise. |
void |
setCurrentContact(Contact contact)
Sets the current contact. |
void |
setCurrentContact(MetaContact metaContact)
Sets the current meta contact. |
void |
setCurrentContactGroup(MetaContactGroup metaGroup)
Sets the current meta group. |
| Method Detail |
|---|
String getName()
Container getContainer()
String getConstraints()
int getPositionIndex()
Object getComponent()
void setCurrentContact(Contact contact)
contact - the current contactvoid setCurrentContact(MetaContact metaContact)
metaContact - the current meta contactvoid setCurrentContactGroup(MetaContactGroup metaGroup)
metaGroup - the current meta contact groupboolean isNativeComponent()
true to indicate that this component is a native
component and false otherwise. This method is meant to be
used by containers if a special treatment is needed for native components.
true to indicate that this component is a native
component and false otherwise.
|
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 | |||||||||