Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class ChatFocusEvent
extends EventObject

The ChatFocusEvent indicates that a Chat has gained or lost the current focus.

Author:
Yana Stamcheva
See Also:
Serialized Form

Field Summary
static int FOCUS_GAINED
          Indicates that the ChatFocusEvent instance was triggered by Chat gaining the focus.
static int FOCUS_LOST
          Indicates that the ChatFocusEvent instance was triggered by Chat losing the focus.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ChatFocusEvent(Object source, int eventID)
          Creates a new ChatFocusEvent according to the specified parameters.
 
Method Summary
 Chat getChat()
          Returns the Chat object that corresponds to this event.
 int getEventID()
          Returns an event id specifying what is the type of this event (FOCUS_GAINED or FOCUS_LOST)
 
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

FOCUS_GAINED

public static final int FOCUS_GAINED
Indicates that the ChatFocusEvent instance was triggered by Chat gaining the focus.

See Also:
Constant Field Values

FOCUS_LOST

public static final int FOCUS_LOST
Indicates that the ChatFocusEvent instance was triggered by Chat losing the focus.

See Also:
Constant Field Values
Constructor Detail

ChatFocusEvent

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

Parameters:
source - The Chat that triggers the event.
eventID - one of the FOCUS_XXX static fields indicating the nature of the event.
Method Detail

getEventID

public int getEventID()
Returns an event id specifying what is the type of this event (FOCUS_GAINED or FOCUS_LOST)

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

getChat

public Chat getChat()
Returns the Chat object that corresponds to this event.

Returns:
the Chat object that corresponds to this event

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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