|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.ui.notifier.AbstractNotifier
com.mucommander.ui.notifier.SystemTrayNotifier
public class SystemTrayNotifier
SystemTrayNotifier implements a notifier that uses the System Tray to display notifications. When enabled, this
notifier displays an icon in the systrem tray that recalls the current MainFrame
when double-clicked, or shows a popup menu with additional actions ('Bring all to front', 'Quit') when right-clicked.
This notifier is available only with Java 1.6 and up.
| Field Summary |
|---|
| Fields inherited from interface com.mucommander.ui.notifier.NotificationTypes |
|---|
NOTIFICATION_TYPE_JOB_COMPLETED, NOTIFICATION_TYPE_JOB_ERROR |
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent actionEvent)
|
boolean |
displayNotification(int notificationType,
java.lang.String title,
java.lang.String description)
Displays a notification with the specified type, title and description and returns true if the
notification could be displayed. |
protected void |
finalize()
|
java.lang.String |
getPrettyName()
Returns a pretty name for the underlying notification system that can be displayed to the end user. |
boolean |
isEnabled()
Returns true if this notifier is enabled and ready to display notifications. |
boolean |
setEnabled(boolean enabled)
Enables/disables this notifier and returns true if the operation succeeded. |
| Methods inherited from class com.mucommander.ui.notifier.AbstractNotifier |
|---|
displayBackgroundNotification, getNotifier, isAvailable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean setEnabled(boolean enabled)
AbstractNotifiertrue if the operation succeeded. A typical case
for returning false, is when the underlying notification system (e.g. Growl under Mac OS X) could not be reached.
setEnabled in class AbstractNotifierenabled - true to enable this notifier, false to disable it
public boolean isEnabled()
AbstractNotifiertrue if this notifier is enabled and ready to display notifications.
isEnabled in class AbstractNotifier
public boolean displayNotification(int notificationType,
java.lang.String title,
java.lang.String description)
AbstractNotifiertrue if the
notification could be displayed. Unlike AbstractNotifier.displayBackgroundNotification(int, String, String), the
notification will be attempted for display even if muCommander is currently in the foreground.
Returns true if the notification could be displayed, false if:
displayNotification in class AbstractNotifiernotificationType - one of the available notification types, see NotificationTypes for possible valuestitle - the title of the notification to displaydescription - the description of the notification to display
public java.lang.String getPrettyName()
AbstractNotifier
getPrettyName in class AbstractNotifierpublic void actionPerformed(java.awt.event.ActionEvent actionEvent)
actionPerformed in interface java.awt.event.ActionListener
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard