Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.gui.event
Class ContainerEvent

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

public class ContainerEvent
extends EventObject

The ContainerEvent indicates that a change in a container such a Comonent added or removed.

See Also:
Serialized Form

Field Summary
static int CONTAINER_ADDED
          Indicates that the ContainerEvent instance was triggered by adding a new container to the list of supported containers.
static int CONTAINER_REMOVED
          Indicates that the ContainerEvent instance was triggered by the removal of an existing container from the list of supported containers.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ContainerEvent(Object source, int eventID)
          Creates a new ContainerEvent according to the specified parameters.
 
Method Summary
 int getEventID()
          Returns an event id specifying whether the type of this event (CONTAINER_ADDED or CONTAINER_REMOVED)
 
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

CONTAINER_ADDED

public static final int CONTAINER_ADDED
Indicates that the ContainerEvent instance was triggered by adding a new container to the list of supported containers.

See Also:
Constant Field Values

CONTAINER_REMOVED

public static final int CONTAINER_REMOVED
Indicates that the ContainerEvent instance was triggered by the removal of an existing container from the list of supported containers.

See Also:
Constant Field Values
Constructor Detail

ContainerEvent

public ContainerEvent(Object source,
                      int eventID)
Creates a new ContainerEvent according to the specified parameters.

Parameters:
source - The containerID of the container that is added to supported containers.
eventID - one of the CONTAINER_XXX static fields indicating the nature of the event.
Method Detail

getEventID

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

Returns:
one of the CONTAINER_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.