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, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initialize, registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
public void showProgress(int value, int maximum)
StatusService
showProgress
in interface StatusService
public void showStatus(String message)
StatusService
showStatus
in interface StatusService
public void showStatus(int progress, int maximum, String message)
StatusService
showStatus
in interface StatusService
public void warn(String message)
StatusService
warn
in interface StatusService
public void showStatus(int progress, int maximum, String message, boolean warn)
StatusService
showStatus
in interface StatusService
progress
- New progress valuemaximum
- New progress maximummessage
- New status messagewarn
- Whether or not this notification constitutes a warningpublic void clearStatus()
StatusService
clearStatus
in interface StatusService
public String getStatusMessage(String appName, StatusEvent statusEvent)
StatusService
getStatusMessage
in interface StatusService
StatusEvent.getStatusMessage()
,
App.getInfo(boolean)
protected void publish(StatusEvent statusEvent)
statusEvent
- the event to send to status listeners.Copyright © 2015–2022 SciJava. All rights reserved.