Module org.jcommon

Class JTaskProgress

    • Constructor Detail

      • JTaskProgress

        public JTaskProgress​(JProgressBar progressBar,
                             JLabel label)
        Create a new task progress monitor.
        Parameters:
        progressBar - the progress bar to use.
        label - the label of the monitor.
      • JTaskProgress

        public JTaskProgress()
        Create a new default task progress.
      • JTaskProgress

        public JTaskProgress​(boolean labelVisible,
                             boolean progressBarVisible)
        Create a new progress monitor.
        Parameters:
        labelVisible - is the label is visible.
        progressBarVisible - is the progress bar is visible.
    • Method Detail

      • isLabelVisible

        public boolean isLabelVisible()
        Get if the label is visible.
        Returns:
        true if the label is visible and false otherwise.
        See Also:
        setLabelVisible(boolean)
      • setLabelVisible

        public void setLabelVisible​(boolean labelVisible)
        Set if the label is visible.
        Parameters:
        labelVisible - true if the label is visible and false otherwise.
        See Also:
        isLabelVisible()
      • isProgressBarVisible

        public boolean isProgressBarVisible()
        Get if the progress bar is visible.
        Returns:
        true if the progress bar is visible and false otherwise.
        See Also:
        setProgressBarVisible(boolean)
      • setProgressBarVisible

        public void setProgressBarVisible​(boolean progressBarVisible)
        Set if the progress bar is visible.
        Parameters:
        progressBarVisible - true if the progress bar is visible and false otherwise.
        See Also:
        isProgressBarVisible()
      • getProgressBar

        public JProgressBar getProgressBar()
        Get the progress bar attached to this monitor.
        Returns:
        the progress bar attached to this monitor.
      • getLabel

        public JLabel getLabel()
        Get the label of this monitor.
        Returns:
        the label of this monitor.
      • initGUI

        protected void initGUI()
        Initialize the Graphical User Interface (GUI) components.