Package io.github.jonestimd.swing
Class LoggerStatusIndicator
- java.lang.Object
-
- io.github.jonestimd.swing.LoggerStatusIndicator
-
- All Implemented Interfaces:
StatusIndicator
public class LoggerStatusIndicator extends java.lang.Object implements StatusIndicator
-
-
Field Summary
Fields Modifier and Type Field Description static LoggerStatusIndicator
INSTANCE
-
Constructor Summary
Constructors Constructor Description LoggerStatusIndicator(java.util.logging.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disableUI(java.lang.String message)
Disable the UI while a background task is running.void
enableUI()
Enable the UI after a background task has completed.void
setStatusMessage(java.lang.String message)
Change the status message to indicate the progress of a background task.
-
-
-
Field Detail
-
INSTANCE
public static final LoggerStatusIndicator INSTANCE
-
-
Method Detail
-
disableUI
public void disableUI(java.lang.String message)
Description copied from interface:StatusIndicator
Disable the UI while a background task is running.- Specified by:
disableUI
in interfaceStatusIndicator
- Parameters:
message
- the message to display to the user while the task is running.
-
enableUI
public void enableUI()
Description copied from interface:StatusIndicator
Enable the UI after a background task has completed.- Specified by:
enableUI
in interfaceStatusIndicator
-
setStatusMessage
public void setStatusMessage(java.lang.String message)
Description copied from interface:StatusIndicator
Change the status message to indicate the progress of a background task.- Specified by:
setStatusMessage
in interfaceStatusIndicator
-
-