Class InformationSubtextPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.eventstream.designer.InformationSubtextPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class InformationSubtextPanel extends JPanel
See Also:
  • Constructor Details

    • InformationSubtextPanel

      public InformationSubtextPanel()
  • Method Details

    • setTitle

      public void setTitle(String title)
    • setState

      public void setState(SubtextStateInfo.State state)
    • setState

      public void setState(SubtextStateInfo.State state, String supplementalText)
      Sets the state of the subtext panel. supplementalText adds additional information that isn't covered by the state's default text. If provided, it will be appended to the state's default text.

      For instance, for the SubtextStateInfo.State.STOPPED state, the default text is "Stopped". We can provide additional information about why it's stopped by passing in supplemental text, such as "Trial Expired". The resulting subtext will read: "Stopped. Trial Expired."

      Parameters:
      state - The new state to set.
      supplementalText - Additional text to append to the state's default text.