aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/systray/event/SystrayPopupMessageEvent.java
blob: a21b38e301e67fbb24e38344a8851df9e8c2bd05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
 * Jitsi, 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
{
    /**
     * Serial version UID.
     */
    private static final long serialVersionUID = 0L;

    /** an object to distinguish this <tt>SystrayPopupMessageEvent</tt> */
    private Object tag;

    /**
     * Constructs a new <tt>SystrayPopupMessageEvent</tt> object.
     *
     * @param source object on which the Event initially occurred
     */
    public SystrayPopupMessageEvent(Object source)
    {
        this(source, null);
    }

    /**
     * Creates a new <tt>SystrayPopupMessageEvent</tt> with the source of the
     * event and additional info provided by the popup handler.
     * @param source the source of the event
     * @param tag additional info for listeners
     */
    public SystrayPopupMessageEvent(Object source, Object tag)
    {
        super(source);
        this.tag = tag;
    }

    /**
     * @return the tag
     */
    public Object getTag()
    {
        return tag;
    }

    /**
     * @param tag the tag to set
     */
    public void setTag(Object tag)
    {
        this.tag = tag;
    }
}