Class TextOptionsPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Modifiable

public class TextOptionsPanel extends RmaJPanel
Copyright (C) 2017 Hydrologic Engineering Center, United States Army Corps of Engineers, All Rights Reserved

HEC-Java NEXGEN

See Also:
  • Constructor Details

    • TextOptionsPanel

      public TextOptionsPanel()
  • Method Details

    • setObjectTitle

      public void setObjectTitle(String title)
      Parameters:
      title - the title to give this panel
    • getObjectTitle

      public String getObjectTitle()
      Returns:
      the panel's title
    • setObjectText

      public void setObjectText(String text)
      Parameters:
      text - the text to display in the label formatting
    • getObjectText

      public String getObjectText()
      Returns:
      the panel's text format
    • setObjectFont

      public void setObjectFont(Font font)
      Parameters:
      font - the font to use for the panel's text
    • getObjectFont

      public Font getObjectFont()
      Returns:
      the panel's font
    • setObjectColor

      public void setObjectColor(Color color)
      Parameters:
      color - the text color to use for the panel's text
    • getObjectColor

      public Color getObjectColor()
      Returns:
      the panel's text color
    • setEnabled

      public void setEnabled(boolean enabled)
      Description copied from class: EnabledJPanel
      Sets whether or not this component is enabled. A component that is enabled may respond to user input, while a component that is not enabled cannot respond to user input. Some components may alter their visual representation when they are disabled in order to provide feedback to the user that they cannot take input.

      Note: Disabling this component also disables it's immediate children.

      Note: Disabling a lightweight component does not prevent it from receiving MouseEvents.

      Overrides:
      setEnabled in class EnabledJPanel
      Parameters:
      enabled - true if this component should be enabled, false otherwise
      See Also: