Class ProgressChangeEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class ProgressChangeEvent
    extends javax.swing.event.ChangeEvent
    ProgressChangeEvent is used to notify interested parties that progress state has changed in the event source
    Version:
    1.0
    Author:
    Hailong Wang, Ph.D
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String message
      The message which will be shown with the progress bar
      private java.lang.String title
      The title of the progress dialog
      private int value
      The value of the progress bar, the range is from 0~100
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      ProgressChangeEvent​(java.lang.Object source, int value, java.lang.String title, java.lang.String message)
      The only constructor to create an instance of this ProgressChangeEvent
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()
      Returns the progress message
      java.lang.String getTitle()
      Returns the title of the progress dialog
      int getValue()
      Returns the value of the progress bar.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • message

        private java.lang.String message
        The message which will be shown with the progress bar
      • title

        private java.lang.String title
        The title of the progress dialog
      • value

        private int value
        The value of the progress bar, the range is from 0~100
    • Constructor Detail

      • ProgressChangeEvent

        public ProgressChangeEvent​(java.lang.Object source,
                                   int value,
                                   java.lang.String title,
                                   java.lang.String message)
        The only constructor to create an instance of this ProgressChangeEvent
        Parameters:
        source - the event source object.
        value - the value of progress bar.
        title - the title progress dialog.
        message - the message which is shown with the progress bar.
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Returns the progress message
        Returns:
        the progress message
      • getTitle

        public java.lang.String getTitle()
        Returns the title of the progress dialog
        Returns:
        the title of the progress dialog
      • getValue

        public int getValue()
        Returns the value of the progress bar.
        Returns:
        the value of the progress bar.