Class StopButton

    • Constructor Detail

      • StopButton

        public StopButton()
      • StopButton

        public StopButton​(String tooltip)
    • Method Detail

      • addActionListener

        public void addActionListener​(ActionListener l)
        Add listener: action event sent when task is done. event.getActionCommand() =
        • "success"
        • "error"
        • "cancel"
        • "done" if done, but success/error/cancel not set
        Overrides:
        addActionListener in class AbstractButton
      • isCancel

        public boolean isCancel()
      • setCancel

        public void setCancel​(boolean isCancelled)
      • setError

        public void setError​(String msg)
      • setProgress

        public void setProgress​(String msg,
                                int progress)
      • startProgressMonitorTask

        public boolean startProgressMonitorTask​(ProgressMonitorTask pmt)
        The given task is run in a background thread. Progress is indicated once a second. You cannot call this method again till the task is completed.
        Parameters:
        pmt - heres where the work is done.
        Returns:
        true task was started, false if still busy with previous task.
      • clear

        public void clear()