|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.spark.component.Notifications
public final class Notifications
Handles tray icon operations inside of Spark. Use to display incoming chat requests, incoming messages and general notifications.
Constructor Summary | |
---|---|
Notifications()
Creates a new instance of notifications. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
changePresence(org.jivesoftware.smack.packet.Presence presence)
Change the presence of the tray. |
void |
mainWindowActivated()
Invoked by the MainWindow when it has been activated, such
as when it is coming out of a minimized state. |
void |
mainWindowDeactivated()
Invoked by the MainWindow when it has been minimized in the toolbar. |
void |
showIncomingRequest()
Notify agent that there is a new incoming chat request. |
void |
showMessage(java.lang.String title,
java.lang.String message)
Displays an incoming message. |
void |
showMessageReceived(java.lang.String from,
java.lang.String message)
Displays an incoming message. |
void |
showNotificationDialog(java.lang.String from,
java.lang.String body)
Shows notification dialog for incoming messages. |
void |
showWindow(javax.swing.JPanel panel,
int timeout)
|
void |
shutdown()
Invoked by the MainWindow when it is about the shutdown. |
void |
stopFlashing()
Stops the icon from flashing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Notifications()
Method Detail |
---|
public void changePresence(org.jivesoftware.smack.packet.Presence presence)
presence
- the new presence.public void showMessageReceived(java.lang.String from, java.lang.String message)
from
- who the message was from.message
- the message body.public void showMessage(java.lang.String title, java.lang.String message)
title
- the title to use.message
- the message to display.public final void showIncomingRequest()
public void stopFlashing()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void shutdown()
MainWindowListener
MainWindow
when it is about the shutdown.
When invoked, the MainWindowListener
should do anything necessary to persist their current state.
MainWindowListeners
authors should take care to ensure
that any extraneous processing is not performed on this method, as it would
cause a delay in the shutdown process.
shutdown
in interface MainWindowListener
MainWindow
public void mainWindowActivated()
MainWindowListener
MainWindow
when it has been activated, such
as when it is coming out of a minimized state.
When invoked, the MainWindowListener
should do anything necessary to smoothly transition back to the application.
mainWindowActivated
in interface MainWindowListener
MainWindow
public void mainWindowDeactivated()
MainWindowListener
MainWindow
when it has been minimized in the toolbar.
mainWindowDeactivated
in interface MainWindowListener
MainWindow
public void showNotificationDialog(java.lang.String from, java.lang.String body)
from
- who the body is from.body
- the body of the body.public void showWindow(javax.swing.JPanel panel, int timeout)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |