public class StatusEvent extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
maximum
Current progress maximum.
|
protected int |
progress
Current progress value.
|
protected String |
status
Current status message.
|
protected boolean |
warning
Whether or not this is a warning event.
|
Constructor and Description |
---|
StatusEvent(int progress,
int maximum,
String message)
Constructs a non-warning status event.
|
StatusEvent(int progress,
int maximum,
String message,
boolean warn)
Constructs a status event.
|
StatusEvent(String message)
Constructs a non-warning status event.
|
StatusEvent(String message,
boolean warn)
Constructs a status event.
|
Modifier and Type | Method and Description |
---|---|
int |
getProgressMaximum() |
int |
getProgressValue() |
String |
getStatusMessage() |
boolean |
isWarning() |
String |
toString() |
protected int progress
protected int maximum
protected String status
protected boolean warning
public StatusEvent(String message)
message
- the initial status messagepublic StatusEvent(String message, boolean warn)
message
- the initial status messagewarn
- true if this is a warning eventpublic StatusEvent(int progress, int maximum, String message)
progress
- the current progress valuemaximum
- the maximum progress valuemessage
- the initial status messagepublic StatusEvent(int progress, int maximum, String message, boolean warn)
progress
- the current progress valuemaximum
- the maximum progress valuemessage
- the initial status messagewarn
- true if this is a warning eventpublic int getProgressValue()
public int getProgressMaximum()
public String getStatusMessage()
public boolean isWarning()
Copyright © 2005–2023 Open Microscopy Environment. All rights reserved.