com.jniwrapper.win32.shell
Class TrayMessage
java.lang.Object
com.jniwrapper.win32.shell.TrayMessage
- Direct Known Subclasses:
- TrayMessage.Error, TrayMessage.Info, TrayMessage.Warning
public class TrayMessage
- extends java.lang.Object
TrayMessage class represents callout attributes.
Constructor Summary |
TrayMessage(java.lang.String message)
|
TrayMessage(java.lang.String message,
int iconType)
|
TrayMessage(java.lang.String title,
java.lang.String message)
|
TrayMessage(java.lang.String title,
java.lang.String message,
int iconType)
|
Method Summary |
int |
getIconType()
|
java.lang.String |
getMessage()
|
int |
getTimeout()
|
java.lang.String |
getTitle()
|
void |
setIconType(int iconType)
Sets an icon type for the message. |
void |
setMessage(java.lang.String message)
Sets a message that will be shown in the ballon. |
void |
setTimeout(int timeout)
Sets timeout in seconds for showing the message. |
void |
setTitle(java.lang.String title)
Sets the title of the ballon. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ICON_NONE
public static final int ICON_NONE
- See Also:
- Constant Field Values
ICON_INFO
public static final int ICON_INFO
- See Also:
- Constant Field Values
ICON_WARNING
public static final int ICON_WARNING
- See Also:
- Constant Field Values
ICON_ERROR
public static final int ICON_ERROR
- See Also:
- Constant Field Values
TrayMessage
public TrayMessage(java.lang.String message)
TrayMessage
public TrayMessage(java.lang.String message,
int iconType)
TrayMessage
public TrayMessage(java.lang.String title,
java.lang.String message)
TrayMessage
public TrayMessage(java.lang.String title,
java.lang.String message,
int iconType)
getTitle
public java.lang.String getTitle()
setTitle
public void setTitle(java.lang.String title)
- Sets the title of the ballon.
- Parameters:
title
-
getMessage
public java.lang.String getMessage()
setMessage
public void setMessage(java.lang.String message)
- Sets a message that will be shown in the ballon.
- Parameters:
message
-
getIconType
public int getIconType()
setIconType
public void setIconType(int iconType)
- Sets an icon type for the message. The passed value must be one of the
TrayMessage.ICON_type
constants.
- Parameters:
iconType
-
getTimeout
public int getTimeout()
setTimeout
public void setTimeout(int timeout)
- Sets timeout in seconds for showing the message. The timeout
should be in the range from 10 to 30 seconds.
- Parameters:
timeout
- Specifies the time in seconds while
the balloon tooltip is displayed.