public class PopupMessage
extends java.lang.Object
Constructor and Description |
---|
PopupMessage(javax.swing.JComponent component,
java.lang.String title,
java.lang.String message)
Creates a new PopupMessage with the given
JComponent as its content.
|
PopupMessage(java.lang.String title,
java.lang.String message)
Creates a PopupMessage with the given title and message inside.
|
PopupMessage(java.lang.String title,
java.lang.String message,
byte[] imageIcon)
Creates a new PopupMessage with the given title, message and
icon.
|
PopupMessage(java.lang.String title,
java.lang.String message,
byte[] imageIcon,
java.lang.Object tag)
Creates a new PopupMessage with the given
JComponent as its content.
|
PopupMessage(java.lang.String title,
java.lang.String message,
int messageType)
Creates a system tray message with the given title and message content.
|
PopupMessage(java.lang.String title,
java.lang.String message,
java.lang.Object tag)
Creates a new PopupMessage with the given
JComponent as its content.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
getComponent()
Returns the component contained in this popup message.
|
java.lang.String |
getGroup()
Returns name of the popup group.
|
byte[] |
getIcon()
Returns the icon of this popup message.
|
java.lang.String |
getMessage()
Returns the message contained in this popup.
|
java.lang.String |
getMessageTitle()
Returns the title of this popup message.
|
int |
getMessageType()
Returns the type of this popup message.
|
java.lang.Object |
getTag()
Returns the object used to tag this PopupMessage.
|
long |
getTimeout()
Returns suggested timeout value in ms for hiding the popup if not clicked
by the user.
|
void |
setComponent(javax.swing.JComponent component)
Sets the component to be showed in this popup message.
|
void |
setGroup(java.lang.String group)
Set name of the group to which this popup will belong.
|
void |
setIcon(byte[] imageIcon)
Sets the icon of this popup message.
|
void |
setMessage(java.lang.String message)
Sets the message to show in the popup.
|
void |
setMessageTitle(java.lang.String messageTitle)
Sets the title of this popup message.
|
void |
setMessageType(int messageType)
Sets the type of this popup message.
|
void |
setTag(java.lang.Object tag)
Sets the object used to tag this popup message.
|
void |
setTimeout(long timeout)
Sets suggested timeout for hiding the popup if not clicked by the user.
|
public PopupMessage(java.lang.String title, java.lang.String message)
title
- title of the messagemessage
- message to show in the systraypublic PopupMessage(java.lang.String title, java.lang.String message, int messageType)
title
- the title, which will be shownmessage
- the content of the message to displaymessageType
- the message type; one of XXX_MESSAGE_TYPE constants
declared in SystrayServicepublic PopupMessage(java.lang.String title, java.lang.String message, byte[] imageIcon)
title
- the title of the messagemessage
- message to show in the systrayimageIcon
- an incon to show in the popup message.public PopupMessage(javax.swing.JComponent component, java.lang.String title, java.lang.String message)
component
- the component to put in the PopupMessagetitle
- of the messagemessage
- message to use in place of the componentpublic PopupMessage(java.lang.String title, java.lang.String message, java.lang.Object tag)
title
- of the messagemessage
- the message to show in this popuptag
- additional info to be used by the PopupMessageHandlerpublic PopupMessage(java.lang.String title, java.lang.String message, byte[] imageIcon, java.lang.Object tag)
title
- the title of the messagemessage
- the message to show in this popupimageIcon
- the image icon to show in this popup messagetag
- additional info to be used by the PopupMessageHandlerpublic java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- the message to show in the popuppublic java.lang.String getMessageTitle()
public void setMessageTitle(java.lang.String messageTitle)
messageTitle
- the title to setpublic javax.swing.JComponent getComponent()
public void setComponent(javax.swing.JComponent component)
component
- the component to setpublic byte[] getIcon()
public void setIcon(byte[] imageIcon)
imageIcon
- the icon to setpublic int getMessageType()
public void setMessageType(int messageType)
messageType
- the type to setpublic java.lang.Object getTag()
public void setTag(java.lang.Object tag)
tag
- the object to setpublic void setTimeout(long timeout)
timeout
- time value in ms for hiding the popup, -1 for infinity.public long getTimeout()
public java.lang.String getGroup()
public void setGroup(java.lang.String group)
group
- the popup group name to set.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.