Package examples

Class StatusBar

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible

public class StatusBar extends JPanel implements PropertyChangeListener
A StatusBar panel that tracks a TaskMonitor. Although one could certainly create a more elaborate StatusBar class, this one is sufficient for the examples that need one.

This class loads resources from the ResourceBundle called resources.StatusBar.

See Also:
  • Constructor Details

    • StatusBar

      public StatusBar(Application app, TaskMonitor taskMonitor)
      Constructs a panel that displays messages/progress/state properties of the taskMonitor's foreground task.
      Parameters:
      taskMonitor - the TaskMonitor whose PropertyChangeEvents this StatusBar will track.
  • Method Details

    • setMessage

      public void setMessage(String s)
    • showBusyAnimation

      public void showBusyAnimation()
    • stopBusyAnimation

      public void stopBusyAnimation()
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      The TaskMonitor (constructor arg) tracks a "foreground" task; this method is called each time a foreground task property changes.
      Specified by:
      propertyChange in interface PropertyChangeListener