Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.event
Class PluginComponentEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.impl.gui.event.PluginComponentEvent
All Implemented Interfaces:
Serializable

public class PluginComponentEvent
extends EventObject

The PluginComponentEvent

Author:
Yana Stamcheva
See Also:
Serialized Form

Field Summary
static int PLUGIN_COMPONENT_ADDED
          Indicates that the PluginComponentEvent instance was triggered by adding a plugin component.
static int PLUGIN_COMPONENT_REMOVED
          Indicates that the MetaContactEvent instance was triggered by the removal of an existing MetaContact.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PluginComponentEvent(PluginComponent pluginComponent, int eventID)
          Creates a new PluginComponentEvent according to the specified parameters.
 
Method Summary
 int getEventID()
          Returns an event id specifying whether the type of this event (PLUGIN_COMPONENT_ADDED or PLUGIN_COMPONENT_REMOVED)
 PluginComponent getPluginComponent()
          Returns the PluginComponent associated with this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PLUGIN_COMPONENT_ADDED

public static final int PLUGIN_COMPONENT_ADDED
Indicates that the PluginComponentEvent instance was triggered by adding a plugin component.

See Also:
Constant Field Values

PLUGIN_COMPONENT_REMOVED

public static final int PLUGIN_COMPONENT_REMOVED
Indicates that the MetaContactEvent instance was triggered by the removal of an existing MetaContact.

See Also:
Constant Field Values
Constructor Detail

PluginComponentEvent

public PluginComponentEvent(PluginComponent pluginComponent,
                            int eventID)
Creates a new PluginComponentEvent according to the specified parameters.

Parameters:
pluginComponent - The pluginComponent that is added to the container.
eventID - one of the PLUGIN_COMPONENT_XXX static fields indicating the nature of the event.
Method Detail

getPluginComponent

public PluginComponent getPluginComponent()
Returns the PluginComponent associated with this event.

Returns:
the PluginComponent associated with this event

getEventID

public int getEventID()
Returns an event id specifying whether the type of this event (PLUGIN_COMPONENT_ADDED or PLUGIN_COMPONENT_REMOVED)

Returns:
one of the PLUGIN_COMPONENT_XXX int fields of this class.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.