Package io.github.jonestimd.swing
Class DeferredStatusIndicator
- java.lang.Object
-
- io.github.jonestimd.swing.DeferredStatusIndicator
-
- All Implemented Interfaces:
StatusIndicator
public class DeferredStatusIndicator extends java.lang.Object implements StatusIndicator
This class saves status messages and the enabled state until a component is showing within aStatusIndicator. Once the component is showing, messages and state changes are passed to its containingStatusIndicator.
-
-
Constructor Summary
Constructors Constructor Description DeferredStatusIndicator(java.awt.Component component)
-
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.
-
-
-
Method Detail
-
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
-
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
-
-