Class 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 a StatusIndicator. Once the component is showing, messages and state changes are passed to its containing StatusIndicator.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DeferredStatusIndicator

        public DeferredStatusIndicator​(java.awt.Component component)
    • 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 interface StatusIndicator
      • 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 interface StatusIndicator
        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 interface StatusIndicator