Class ProgressWindow

    • Field Detail

      • UNKNOWN

        public static final int UNKNOWN
        Progress state: Indeterminate or not yet started.
        See Also:
        Constant Field Values
      • DOWNLOADING

        public static final int DOWNLOADING
        Progress state: URI is being downloaded.
        See Also:
        Constant Field Values
      • PROCESSING

        public static final int PROCESSING
        Progress state: Processing the document.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProgressWindow

        public ProgressWindow​(ActionListener canceler)
        Constructor.
        Parameters:
        canceler - An ActionListener which responds to the Cancel button.
    • Method Detail

      • setContentLength

        public void setContentLength​(long length,
                                     boolean update)
        Set the total length to be displayed. If this is set to a positive number, then the display will show "xxxx bytes of yyyy". If it is not set, or is set to a zero or negative number, the display will show "xxxx bytes".
        Parameters:
        length - The length to display
        update - If true, requests a display update.
      • setProgressState

        public void setProgressState​(int state,
                                     boolean update)
        Set the progress state.
        Parameters:
        state - The state value to assign. Valid values are UNKNOWN, DOWNLOADING, and PROCESSING.
        update - If true, requests a display update
      • setDocName

        public void setDocName​(String name,
                               boolean update)
        Set the name of the document being displayed.
        Parameters:
        name - The file name or URL to display
        update - If true, requests a display update
      • setByteCount

        public void setByteCount​(long count,
                                 boolean update)
        Update the byte count. Setting the count to a negative number blanks the byte count pane.
        Parameters:
        count - The new byte count value
        update - If true, requests a display update