[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/service/systray/event/, /sip-communicator/src/net/java/sip/communicator/service/systray/

yanas at dev.java.net yanas at dev.java.net
Wed Apr 11 16:09:05 CEST 2007


User: yanas   
Date: 2007-04-11 14:09:05+0000
Added:
   sip-communicator/src/net/java/sip/communicator/service/systray/event/SystrayPopupMessageEvent.java
   sip-communicator/src/net/java/sip/communicator/service/systray/event/SystrayPopupMessageListener.java
   sip-communicator/src/net/java/sip/communicator/service/systray/SystrayService.java

Log:
 Systray service and corresponding listeners

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/service/systray/event/
=================================================================================

File [added]: SystrayPopupMessageEvent.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/service/systray/event/SystrayPopupMessageEvent.java?rev=1.1&content-type=text/vnd.viewcvs-markup
Added lines: 24
---------------
/*
 * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package net.java.sip.communicator.service.systray.event;

import java.util.*;

/**
 * The <tt>SystrayPopupMessageEvent</tt>s are posted when user clicks on the
 * system tray popup message.
 * 
 * @author Yana Stamcheva
 */
public class SystrayPopupMessageEvent
    extends EventObject
{
    public SystrayPopupMessageEvent(Object source)
    {
        super(source);
    }
}

File [added]: SystrayPopupMessageListener.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/service/systray/event/SystrayPopupMessageListener.java?rev=1.1&content-type=text/vnd.viewcvs-markup
Added lines: 27
---------------
/*
 * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package net.java.sip.communicator.service.systray.event;

import java.util.*;

/**
 * Listens for <tt>SystrayPopupMessageEvent</tt>s posted when user
 * clicks on the system tray popup message.
 * 
 * @author Yana Stamcheva
 */
public interface SystrayPopupMessageListener
    extends EventListener
{
    /**
     * Indicates that user has clicked on the systray popup message.
     * 
     * @param evt the event triggered when user clicks on the systray popup
     * message
     */
    public void popupMessageClicked(SystrayPopupMessageEvent evt);
}

Directory: /sip-communicator/src/net/java/sip/communicator/service/systray/
===========================================================================

File [added]: SystrayService.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/service/systray/SystrayService.java?rev=1.1&content-type=text/vnd.viewcvs-markup
Added lines: 65
---------------
/*
 * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package net.java.sip.communicator.service.systray;

import net.java.sip.communicator.service.systray.event.*;

/**
 * The <tt>SystrayService</tt> manages the system tray icon, menu and messages.
 * It is meant to be used by all bundles that want to show a system tray message.
 * 
 * @author Yana Stamcheva
 */
public interface SystrayService
{
    /**
     * Message type corresponding to an error message.
     */
    public static final int ERROR_MESSAGE_TYPE = 0;
    
    /**
     * Message type corresponding to an information message.
     */
    public static final int INFORMATION_MESSAGE_TYPE = 1;
    
    /**
     * Message type corresponding to a warning message.
     */
    public static final int WARNING_MESSAGE_TYPE = 2;
    
    /**
     * Message type is not accessible.
     */
    public static final int NONE_MESSAGE_TYPE = -1;
    
    /**
     * Shows a system tray message with the given title and message content. The
     * message type will affect the icon used to present the message.
     * 
     * @param title the title, which will be shown
     * @param messageContent the content of the message to display
     * @param messageType the message type; one of XXX_MESSAGE_TYPE constants
     * declared in this class
     */
    public void showPopupMessage(String title,
        String messageContent, int messageType);
    
    /**
     * Adds a listener for <tt>SystrayPopupMessageEvent</tt>s posted when user
     * clicks on the system tray popup message.
     *
     * @param l the listener to add
     */
    public void addPopupMessageListener(SystrayPopupMessageListener listener);
    
    /**
     * Removes a listener previously added with <tt>addPopupMessageListener</tt>.
     *
     * @param l the listener to remove
     */
    public void removePopupMessageListener(SystrayPopupMessageListener listener);
}




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator.dev.java.net





More information about the commits mailing list