src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java
/**
     * Informs all <tt>ChatFocusListener</tt>s that a <tt>ChatFocusEvent</tt>
     * has been triggered.
     *
     * @param eventID the type of the <tt>ChatFocusEvent</tt>
     */
Informs all ChatFocusListeners that a ChatFocusEvent
has been triggered.

@param eventID the type of the ChatFocusEvent
Informs all ChatFocusListeners that a ChatFocusEvent has been triggered . @param eventID the type of the ChatFocusEvent
public void fireChatFocusEvent(int eventID)
    {
        ChatFocusEvent evt = new ChatFocusEvent(this, eventID);
        if (logger.isTraceEnabled())
            logger.trace("Will dispatch the following chat event: " + evt);
        Iterable<ChatFocusListener> listeners;
        synchronized (focusListeners)
        {
            listeners = new ArrayList<ChatFocusListener>(focusListeners);
        }
        for (ChatFocusListener listener : listeners)
        {
            switch (evt.getEventID())
            {
            case ChatFocusEvent.FOCUS_GAINED:
                listener.chatFocusGained(evt);
                break;
            case ChatFocusEvent.FOCUS_LOST:
                listener.chatFocusLost(evt);
                break;
            default:
                logger.error("Unknown event type " + evt.getEventID());
            }
        }
    }
public void fireChatFocusEvent ( int eventID ) { ChatFocusEvent evt = new ChatFocusEvent ( this , eventID ) ; if ( logger . isTraceEnabled ( ) ) logger . trace ( "Will dispatch the following chat event: " + evt ) ; Iterable < ChatFocusListener > listeners ; synchronized ( focusListeners ) { listeners = new ArrayList < ChatFocusListener > ( focusListeners ) ; } for ( ChatFocusListener listener : listeners ) { switch ( evt . getEventID ( ) ) { case ChatFocusEvent . FOCUS_GAINED : listener . chatFocusGained ( evt ) ; break ; case ChatFocusEvent . FOCUS_LOST : listener . chatFocusLost ( evt ) ; break ; default : logger . error ( "Unknown event type " + evt . getEventID ( ) ) ; } } }
Informs all <tt>ChatFocusListener</tt>s that a <tt>ChatFocusEvent</tt>
 has been triggered.
Informs all <tt > ChatFocusListener< / tt > s that a <tt > ChatFocusEvent< / tt > has been triggered .