|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.systray.PopupMessage
public class PopupMessage
The PopupMessage class encloses informations to show in a popup. While a message title and a message body are mandatory informations, a popup message could provides more stuffs like a component or an image which may be used by a PopupMessageHandler capable to handle it.
| Constructor Summary | |
|---|---|
PopupMessage(JComponent component,
String title,
String message)
Creates a new PopupMessage with the given JComponent as its content. |
|
PopupMessage(String title,
String message)
Creates a PopupMessage with the given title and message inside. |
|
PopupMessage(String title,
String message,
byte[] imageIcon)
Creates a new PopupMessage with the given title, message and icon. |
|
PopupMessage(String title,
String message,
byte[] imageIcon,
Object tag)
Creates a new PopupMessage with the given JComponent as its content. |
|
PopupMessage(String title,
String message,
int messageType)
Creates a system tray message with the given title and message content. |
|
PopupMessage(String title,
String message,
Object tag)
Creates a new PopupMessage with the given JComponent as its content. |
|
| Method Summary | |
|---|---|
JComponent |
getComponent()
Returns the component contained in this popup message. |
byte[] |
getIcon()
Returns the icon of this popup message. |
String |
getMessage()
Returns the message contained in this popup. |
String |
getMessageTitle()
Returns the title of this popup message. |
int |
getMessageType()
Returns the type of this popup message. |
Object |
getTag()
Returns the object used to tag this PopupMessage. |
void |
setComponent(JComponent component)
Sets the component to be showed in this popup message. |
void |
setIcon(byte[] imageIcon)
Sets the icon of this popup message. |
void |
setMessage(String message)
Sets the message to show in the popup. |
void |
setMessageTitle(String messageTitle)
Sets the title of this popup message. |
void |
setMessageType(int messageType)
Sets the type of this popup message. |
void |
setTag(Object tag)
Sets the object used to tag this popup message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PopupMessage(String title,
String message)
title - title of the messagemessage - message to show in the systray
public PopupMessage(String title,
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 SystrayService
public PopupMessage(String title,
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(JComponent component,
String title,
String message)
component - the component to put in the PopupMessagetitle - of the messagemessage - message to use in place of the component
public PopupMessage(String title,
String message,
Object tag)
title - of the messagemessage - the message to show in this popuptag - additional info to be used by the PopupMessageHandler
public PopupMessage(String title,
String message,
byte[] imageIcon,
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 PopupMessageHandler| Method Detail |
|---|
public String getMessage()
public void setMessage(String message)
message - the message to show in the popuppublic String getMessageTitle()
public void setMessageTitle(String messageTitle)
messageTitle - the title to setpublic JComponent getComponent()
public void setComponent(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 Object getTag()
public void setTag(Object tag)
tag - the object to set
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||