Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.osdependent
Class TrayIcon

java.lang.Object
  extended by net.java.sip.communicator.impl.osdependent.TrayIcon

public class TrayIcon
extends Object

Author:
Lubomir Marinov

Nested Class Summary
(package private) static class TrayIcon.AWTTrayIconPeer
           
(package private) static class TrayIcon.JdicTrayIconPeer
           
(package private) static interface TrayIcon.TrayIconPeer
           
 
Field Summary
static int ERROR_MESSAGE_TYPE
           
static int INFO_MESSAGE_TYPE
           
static int NONE_MESSAGE_TYPE
           
static int WARNING_MESSAGE_TYPE
           
 
Constructor Summary
TrayIcon(ImageIcon icon, String tooltip, Object popup)
           
 
Method Summary
 void addActionListener(ActionListener listener)
           
 void addBalloonActionListener(ActionListener listener)
           
 void displayMessage(String caption, String text, int messageType)
           
(package private)  TrayIcon.TrayIconPeer getPeer()
           
 void setIcon(ImageIcon icon)
           
 void setIconAutoSize(boolean autoSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_MESSAGE_TYPE

public static final int ERROR_MESSAGE_TYPE
See Also:
Constant Field Values

INFO_MESSAGE_TYPE

public static final int INFO_MESSAGE_TYPE
See Also:
Constant Field Values

NONE_MESSAGE_TYPE

public static final int NONE_MESSAGE_TYPE
See Also:
Constant Field Values

WARNING_MESSAGE_TYPE

public static final int WARNING_MESSAGE_TYPE
See Also:
Constant Field Values
Constructor Detail

TrayIcon

public TrayIcon(ImageIcon icon,
                String tooltip,
                Object popup)
         throws IllegalArgumentException,
                UnsupportedOperationException,
                HeadlessException,
                SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
HeadlessException
SecurityException
Method Detail

addActionListener

public void addActionListener(ActionListener listener)

addBalloonActionListener

public void addBalloonActionListener(ActionListener listener)

displayMessage

public void displayMessage(String caption,
                           String text,
                           int messageType)
                    throws NullPointerException
Throws:
NullPointerException

getPeer

TrayIcon.TrayIconPeer getPeer()

setIcon

public void setIcon(ImageIcon icon)
             throws NullPointerException
Throws:
NullPointerException

setIconAutoSize

public void setIconAutoSize(boolean autoSize)

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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