|
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.Objectnet.java.sip.communicator.impl.gui.utils.PluginContainer
public class PluginContainer
Provides capabilities to a specific JComponent to contain
PluginComponents, track when they are added and removed.
| Constructor Summary | |
|---|---|
PluginContainer(JComponent container,
Container containerId)
Initializes a new PluginContainer instance which is to
provide capabilities to a specific JComponent container with
a specific Container id to contain
PluginComponent and track when they are added and removed. |
|
| Method Summary | |
|---|---|
protected void |
addComponentToContainer(Component component,
JComponent container,
int preferredIndex)
Adds a specific Component to a specific JComponent container. |
void |
dispose()
Runs clean-up for associated resources which need explicit disposal (e.g. |
protected int |
getComponentCount(JComponent container)
Gets the number of Components in a specific JComponent container. |
Iterable<PluginComponent> |
getPluginComponents()
Gets the PluginComponents of this PluginContainer. |
void |
pluginComponentAdded(PluginComponentEvent event)
Implements PluginComponentListener.pluginComponentAdded(PluginComponentEvent). |
void |
pluginComponentRemoved(PluginComponentEvent event)
Implements PluginComponentListener.pluginComponentRemoved(PluginComponentEvent). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginContainer(JComponent container,
Container containerId)
PluginContainer instance which is to
provide capabilities to a specific JComponent container with
a specific Container id to contain
PluginComponent and track when they are added and removed.
container - the JComponent container the new instance is to
provide its capabilities tocontainerId - the Container id of the specified
container| Method Detail |
|---|
protected void addComponentToContainer(Component component,
JComponent container,
int preferredIndex)
component - the Component to be added to the specified
JComponent containercontainer - the JComponent container to add the specified
Component topreferredIndex - the index at which component is to be
added to container if possible or -1 if there is no
preference with respect to the index in questionpublic void dispose()
protected int getComponentCount(JComponent container)
container - the JComponent container to get the number of
Components of
public Iterable<PluginComponent> getPluginComponents()
public void pluginComponentAdded(PluginComponentEvent event)
PluginComponentListener.pluginComponentAdded(PluginComponentEvent).
pluginComponentAdded in interface PluginComponentListenerevent - a PluginComponentEvent which specifies the
PluginComponent which has been addedpublic void pluginComponentRemoved(PluginComponentEvent event)
PluginComponentListener.pluginComponentRemoved(PluginComponentEvent).
pluginComponentRemoved in interface PluginComponentListenerevent - a PluginComponentEvent which specifies the
PluginComponent which has been added
|
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 | |||||||||