Package snap.util

Class TaskMonitorPanel

All Implemented Interfaces:
PropChange.DoChange

public class TaskMonitorPanel extends TaskMonitor
A TaskMonitor implementation that shows task updates in a panel after a short delay.
  • Field Details

    • _view

      protected View _view
  • Constructor Details

    • TaskMonitorPanel

      public TaskMonitorPanel()
      Constructor.
    • TaskMonitorPanel

      public TaskMonitorPanel(View aView, String aTitle)
      Constructor for view and title.
  • Method Details

    • showPanel

      protected void showPanel()
      Show panel.
    • hide

      protected void hide()
      Hide panel.
    • checkForShowPanel

      protected void checkForShowPanel()
      Check for whether panel should show.
    • setMonitor

      public void setMonitor(TaskMonitor sourceMonitor)
      Override to register for showPanel check.
      Overrides:
      setMonitor in class TaskMonitor
    • setTasksTotal

      protected void setTasksTotal(int aValue)
      Override to register for showPanel check.
      Overrides:
      setTasksTotal in class TaskMonitor
    • setCancelled

      public void setCancelled(boolean aValue)
      Override to hide panel.
      Overrides:
      setCancelled in class TaskMonitor
    • setFinished

      public void setFinished(boolean aValue)
      Override to hide panel.
      Overrides:
      setFinished in class TaskMonitor
    • monitorDidChange

      protected void monitorDidChange(PropChange aPC)
      Override to reset UI if needed.
      Overrides:
      monitorDidChange in class TaskMonitor