blob: 474cb608d4ea3c6f9c1f0ba38eb528ae02e4dbf1 (
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
|
/*
* 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.impl.swingnotification;
import net.java.sip.communicator.service.systray.*;
/**
* Empty popup message handler. Used when we want to disable popup messages.
* @author Damian Minkov
*/
public class NonePopupMessageHandlerImpl
extends AbstractPopupMessageHandler
{
/**
* Implements <tt>PopupMessageHandler#showPopupMessage()</tt>
* Doing nothing.
*
* @param popupMessage the message we will show
*/
@Override
public void showPopupMessage(PopupMessage popupMessage)
{}
/**
* Implements <tt>getPreferenceIndex</tt> from
* <tt>NonePopupMessageHandlerImpl</tt>.
* This handler is a empty one, thus the preference index is 0.
* @return a preference index
*/
@Override
public int getPreferenceIndex()
{
return 0;
}
/**
* Implements <tt>toString</tt> from <tt>PopupMessageHandler</tt>
* @return a description of this handler
*/
@Override
public String toString()
{
return SwingNotificationActivator.getResources()
.getI18NString("service.gui.NONE");
}
}
|