|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.regexlab.j2e.ServiceStatusManager
public class ServiceStatusManager
Send command to service manager
| Field Summary | |
|---|---|
static boolean |
isRunAsService
Whether runs as service, will be set by frame, do not modify it by yourself |
static int |
STATUS_PAUSED
Service status constants |
static int |
STATUS_RUNNING
Service status constants |
| Constructor Summary | |
|---|---|
ServiceStatusManager()
|
|
| Method Summary | |
|---|---|
static void |
setServiceStatus(int status)
Set service status, this will not leads to onPause/onContinue event. |
static void |
setServiceStatusHandler(ServiceStatusHandler handler)
Set status callback handler |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STATUS_PAUSED
public static final int STATUS_RUNNING
public static boolean isRunAsService
| Constructor Detail |
|---|
public ServiceStatusManager()
| Method Detail |
|---|
public static void setServiceStatus(int status)
status - New status to set, use the constants beforepublic static void setServiceStatusHandler(ServiceStatusHandler handler)
callback - Callback instance to do events
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||