java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.factorypmi.application.components.managementpanel.TitlePanel
All Implemented Interfaces:
LocaleListener, ImageObserver, MenuContainer, Serializable, Accessible

public class TitlePanel extends JPanel implements LocaleListener
The shared title pane for any AbstractManagerPanel. Uses the names of the components in the SlidingPane to come up with the titles.
See Also:
  • Field Details

    • TITLE_FOREGROUND

      public static final Color TITLE_FOREGROUND
    • TITLE_BACKGROUND

      public static final Color TITLE_BACKGROUND
  • Method Details

    • setFont

      public void setFont(Font font)
      Overrides:
      setFont in class JComponent
    • localeChanged

      public void localeChanged(Locale newLocale)
      Specified by:
      localeChanged in interface LocaleListener
    • setTranslatedTitle

      protected void setTranslatedTitle()
    • setTitleForeground

      public void setTitleForeground(Color color)
      Sets the text color of the title's text and its contained buttons' text. This supports colorization via property edit.
      Parameters:
      color - the Color to set the title text to. Must not be null
    • setSaveButtonForeground

      public void setSaveButtonForeground(Color color)
      Sets the text color of the save Button's text. This supports colorization via property edit.
      Parameters:
      color - the Color to set the title text to. Must not be null
    • getSaveButtonForeground

      public Color getSaveButtonForeground()
      Returns the color of the save button.
      Returns:
      the Color of the save button. Will not be null
    • setTitleBackground

      public void setTitleBackground(Color color)
      Sets the background color of the title. This supports colorization via property edit.
      Parameters:
      color - the Color to set the background to. Must not be null
    • setSaveButtonBackground

      public void setSaveButtonBackground(Color color)
      Sets the background color of the save button. This supports colorization via property edit.
      Parameters:
      color - the Color to set the background to. Must not be null
    • getSaveButtonBackground

      public Color getSaveButtonBackground()
      Gets the save button's background. This supports colorization via property edit.
      Returns:
      the Color of the save button's background. Will not be null
    • getTitleForeground

      public Color getTitleForeground()
      Gets the titles text color. This supports colorization via property edit.
      Returns:
      the Color of the text. Will not be null
    • getTitleBackground

      public Color getTitleBackground()
      Gets the title's background. This supports colorization via property edit.
      Returns:
      the Color of the background. Will not be null