java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
com.inductiveautomation.ignition.client.util.gui.StatusLabel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public class StatusLabel extends JLabel
A JLabel that will display a status message with an optional hold time. This means that the message will be shown for at least that amount of time, even if another message comes in soon afterwards.
See Also:
  • Field Details

    • LOADING_ICON

      public static final Icon LOADING_ICON
    • SUCCESS_ICON

      public static final Icon SUCCESS_ICON
    • ERROR_ICON

      public static final Icon ERROR_ICON
    • ATTENTION_ICON

      public static final Icon ATTENTION_ICON
  • Constructor Details

    • StatusLabel

      public StatusLabel()
  • Method Details

    • setStatus

      public void setStatus(Icon icon, String message, int holdTime)
      Set the status message.
      Parameters:
      icon - Icon for the status
      message - String for the status
      holdTime - Min hold time in millis to show this message
    • clearStatus

      public void clearStatus()
    • setStatus

      protected void setStatus(StatusLabel.StatusMessage m)
    • paintComponent

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