Class DefaultStatusService

    • Constructor Detail

      • DefaultStatusService

        public DefaultStatusService()
    • Method Detail

      • showProgress

        public void showProgress​(int value,
                                 int maximum)
        Description copied from interface: StatusService
        Updates the progress bar.
        Specified by:
        showProgress in interface StatusService
      • showStatus

        public void showStatus​(int progress,
                               int maximum,
                               String message)
        Description copied from interface: StatusService
        Updates the status message and progress bar.
        Specified by:
        showStatus in interface StatusService
      • showStatus

        public void showStatus​(int progress,
                               int maximum,
                               String message,
                               boolean warn)
        Description copied from interface: StatusService
        Updates the status message and progress bar, optionally flagging the status notification as a warning.
        Specified by:
        showStatus in interface StatusService
        Parameters:
        progress - New progress value
        maximum - New progress maximum
        message - New status message
        warn - Whether or not this notification constitutes a warning
      • publish

        protected void publish​(StatusEvent statusEvent)
        Publish the status event to the event service. The default behavior is to publish status asynchronously. You can change this behavior by overriding this method in a derived class.
        Parameters:
        statusEvent - the event to send to status listeners.