public class SystemActivityEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
EVENT_DISPLAY_SLEEP
Computer display has stand by.
|
static int |
EVENT_DISPLAY_WAKE
Computer display wakes up after stand by.
|
static int |
EVENT_DNS_CHANGE
A change in dns configuration has occurred.
|
static int |
EVENT_ENDSESSION
The log off or shutdown is in process for us, no matter
what other process has replied, whether one of them has canceled
or not the current end of session.
|
static int |
EVENT_NETWORK_CHANGE
A change in network configuration has occurred.
|
static int |
EVENT_QUERY_ENDSESSION
Informing that the machine is logging of or shutting down.
|
static int |
EVENT_SCREEN_LOCKED
Screen has been locked.
|
static int |
EVENT_SCREEN_UNLOCKED
Screen has been unlocked.
|
static int |
EVENT_SCREENSAVER_START
Screensaver has been started.
|
static int |
EVENT_SCREENSAVER_STOP
Screensaver has been stopped.
|
static int |
EVENT_SCREENSAVER_WILL_STOP
Screensaver will stop.
|
static int |
EVENT_SLEEP
Notify that computers is going to sleep.
|
static int |
EVENT_SYSTEM_IDLE
A system idle event has occurred.
|
static int |
EVENT_SYSTEM_IDLE_END
A system was in idle state and now exits.
|
static int |
EVENT_WAKE
Notify that computer is wakeing up after stand by.
|
Constructor and Description |
---|
SystemActivityEvent(java.lang.Object source,
int eventID)
Constructs a prototypical Event.
|
Modifier and Type | Method and Description |
---|---|
int |
getEventID()
Returns the type of the event.
|
java.lang.String |
toString()
Returns a String representation of this SystemActivityEvent object.
|
public static final int EVENT_SLEEP
public static final int EVENT_WAKE
public static final int EVENT_DISPLAY_SLEEP
public static final int EVENT_DISPLAY_WAKE
public static final int EVENT_SCREENSAVER_START
public static final int EVENT_SCREENSAVER_WILL_STOP
public static final int EVENT_SCREENSAVER_STOP
public static final int EVENT_SCREEN_LOCKED
public static final int EVENT_SCREEN_UNLOCKED
public static final int EVENT_NETWORK_CHANGE
public static final int EVENT_SYSTEM_IDLE
public static final int EVENT_SYSTEM_IDLE_END
public static final int EVENT_DNS_CHANGE
public static final int EVENT_QUERY_ENDSESSION
public static final int EVENT_ENDSESSION
public SystemActivityEvent(java.lang.Object source, int eventID)
source
- The object on which the Event initially occurred.eventID
- the type of the event.java.lang.IllegalArgumentException
- if source is null.public int getEventID()
public java.lang.String toString()
toString
in class java.util.EventObject
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.