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 LoggerStatusIndicatorINSTANCE
-
Constructor Summary
Constructors Constructor Description LoggerStatusIndicator(java.util.logging.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisableUI(java.lang.String message)Disable the UI while a background task is running.voidenableUI()Enable the UI after a background task has completed.voidsetStatusMessage(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:StatusIndicatorDisable the UI while a background task is running.- Specified by:
disableUIin interfaceStatusIndicator- Parameters:
message- the message to display to the user while the task is running.
-
enableUI
public void enableUI()
Description copied from interface:StatusIndicatorEnable the UI after a background task has completed.- Specified by:
enableUIin interfaceStatusIndicator
-
setStatusMessage
public void setStatusMessage(java.lang.String message)
Description copied from interface:StatusIndicatorChange the status message to indicate the progress of a background task.- Specified by:
setStatusMessagein interfaceStatusIndicator
-
-