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 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.
-
-
-
Method Detail
-
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
-
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
-
-