|
java-gnome version 4.0.19 | ||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.gnome.glib.Glib
org.gnome.notify.Notify
public final class Notify
Notification system initialization point. A notification enabled program written with java-gnome will boil down to this:
public class ExampleNotificationApp public static void main(String[] args) { Gtk.init(args); Notify.init("example-app"); // build user interface // create and display notifications for application events Gtk.main(); } }
The meat of this library is the Notification
class; see there.
Method Summary | |
---|---|
static String |
getApplicationName()
Returns the registered application name. |
static String[] |
getServerCapabilities()
Returns a list of features supported by the notification system. |
static boolean |
init(String applicationName)
Initialize the notification system. |
static boolean |
isInitialized()
Tests whether notification system is initialized or not. |
static void |
uninit()
Uninitialize the notification system. |
Methods inherited from class org.gnome.glib.Glib |
---|
formatSizeForDisplay, getRealName, getSystemConfigDirs, getSystemDataDirs, getUserCacheDir, getUserConfigDir, getUserDataDir, getUserName, getUserSpecialDir, markupEscapeText, reloadUserSpecialDirsCache, setProgramName |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getApplicationName()
Notify.init()
.
public static String[] getServerCapabilities()
See the "D-BUS Protocol" section in Desktop Notifications Specification for standard capabilities.
public static boolean init(String applicationName)
Notification
methods are used.
applicationName
- Name of the application initializing notification system.public static boolean isInitialized()
public static void uninit()
|
![]() java-gnome |
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |