Class TLcyProgressBar

All Implemented Interfaces:
ILcdStatusListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, SwingConstants

public class TLcyProgressBar extends JProgressBar implements ILcdStatusListener
This progress bar automatically updates itself according to the TLcdStatusEvents it receives. It is up to the user of this class to attach this ILcdStatusListener to a source of status events.
See Also:
  • Constructor Details

    • TLcyProgressBar

      public TLcyProgressBar()
      Constructs a new TLcyProgressBar. It is up to the user of this method to add it to a source of TLcdStatusEvents (e.g. ILcyLucyEnv) and insert it somewhere in the GUI.
  • Method Details

    • isAutoHide

      public boolean isAutoHide()
      Returns true if the status bar should be automatically hidden.
      Returns:
      true if the status bar should be automatically hidden.
      See Also:
    • setAutoHide

      public void setAutoHide(boolean aAutoHide)
      True if the status bar should be automatically hidden if no progress information is available. False to keep the progress bar always visible. Whenever the progress bar makes itself visible or invisible, a "visible" property change event is fired.

      This property should only be changed before any TLcdStatusEvents are received.

      Parameters:
      aAutoHide - true to automatically hide the progress bar if no status information is available, false to keep it always visible.
      See Also:
    • statusChanged

      public void statusChanged(TLcdStatusEvent aStatusEvent)
      Handles the event by setting the (progress) value of this JProgressBar to match the value of the event. The progressIndeterminate property of the event is also forwarded to the indeterminate property of this JProgressBar.
      Specified by:
      statusChanged in interface ILcdStatusListener
      Parameters:
      aStatusEvent - The status event describing the status change.