public class DefaultStatusService extends AbstractService implements StatusService
| Constructor and Description |
|---|
DefaultStatusService() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearStatus()
Clears the status message.
|
String |
getStatusMessage(String appName,
StatusEvent statusEvent)
Gets the status message of the given event.
|
protected void |
publish(StatusEvent statusEvent)
Publish the status event to the event service.
|
void |
showProgress(int value,
int maximum)
Updates the progress bar.
|
void |
showStatus(int progress,
int maximum,
String message)
Updates the status message and progress bar.
|
void |
showStatus(int progress,
int maximum,
String message,
boolean warn)
Updates the status message and progress bar, optionally flagging the status
notification as a warning.
|
void |
showStatus(String message)
Updates the status message.
|
void |
warn(String message)
Issues a warning message.
|
getContext, setContext, toStringgetInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitialize, registerEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposepublic void showProgress(int value,
int maximum)
StatusServiceshowProgress in interface StatusServicepublic void showStatus(String message)
StatusServiceshowStatus in interface StatusServicepublic void showStatus(int progress,
int maximum,
String message)
StatusServiceshowStatus in interface StatusServicepublic void warn(String message)
StatusServicewarn in interface StatusServicepublic void showStatus(int progress,
int maximum,
String message,
boolean warn)
StatusServiceshowStatus in interface StatusServiceprogress - New progress valuemaximum - New progress maximummessage - New status messagewarn - Whether or not this notification constitutes a warningpublic void clearStatus()
StatusServiceclearStatus in interface StatusServicepublic String getStatusMessage(String appName, StatusEvent statusEvent)
StatusServicegetStatusMessage in interface StatusServiceStatusEvent.getStatusMessage(),
App.getInfo(boolean)protected void publish(StatusEvent statusEvent)
statusEvent - the event to send to status listeners.Copyright © 2015–2022 SciJava. All rights reserved.