Class TLcyStatusMessageBar

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

public class TLcyStatusMessageBar extends JPanel implements ILcdStatusListener

This JComponent displays the message of the last TLcdStatusEvent it has received. It is typically used in a status bar to display application feedback to the user.

When multiple tasks are running in parallel, the message bar will show a message that multiple tasks are in progress

See Also:
  • Constructor Details

    • TLcyStatusMessageBar

      @Deprecated public TLcyStatusMessageBar()
      Deprecated.
      Creates a new TLcyStatusMessageBar. 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.
    • TLcyStatusMessageBar

      public TLcyStatusMessageBar(ILcyLucyEnv aLucyEnv)

      Creates a new TLcyStatusMessageBar. 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.

      When TLcdStatusEvent.MESSAGE status events are received which contain an HTML message with links, this class will pass the HyperlinkEvent which is created when the user clicks on the link to the registered HyperlinkListener instances registered on the Lucy back-end.

      Parameters:
      aLucyEnv - The Lucy back-end
      Since:
      2016.1
  • Method Details

    • isAnimated

      public boolean isAnimated()
      Returns true if this status bar uses animation to attract the users attention on new messages.
      Returns:
      true if this status bar uses animation to attract the users attention on new messages.
    • setAnimated

      public void setAnimated(boolean aAnimated)
      Sets if this status bar uses animation to attract the users attention on new messages.
      Parameters:
      aAnimated - true to use animation, false to avoid it.
    • statusChanged

      public void statusChanged(TLcdStatusEvent aStatusEvent)
      Handles the event by setting its message property as the text of this JEditorPane.
      Specified by:
      statusChanged in interface ILcdStatusListener
      Parameters:
      aStatusEvent - The status event describing the status change.
    • paintComponent

      protected void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • getMinimumSize

      public Dimension getMinimumSize()
      Overrides:
      getMinimumSize in class JComponent