Class BaseFlatButton

    • Field Detail

      • m_BorderInactive

        protected Border m_BorderInactive
        the inactive border.
      • m_BorderActive

        protected Border m_BorderActive
        the active border.
      • m_BackgroundUnfocused

        protected Color m_BackgroundUnfocused
        the unfocused background color.
      • m_BackgroundFocused

        protected Color m_BackgroundFocused
        the focused background color.
    • Constructor Detail

      • BaseFlatButton

        public BaseFlatButton()
        Creates a button with no set text or icon.
      • BaseFlatButton

        public BaseFlatButton​(Icon icon)
        Creates a button with an icon.
        Parameters:
        icon - the Icon image to display on the button
      • BaseFlatButton

        public BaseFlatButton​(String text)
        Creates a button with text.
        Parameters:
        text - the text of the button
      • BaseFlatButton

        public BaseFlatButton​(Action a)
        Creates a button where properties are taken from the Action supplied.
        Parameters:
        a - the Action used to specify the new button
        Since:
        1.3
      • BaseFlatButton

        public BaseFlatButton​(String text,
                              Icon icon)
        Creates a button with initial text and an icon.
        Parameters:
        text - the text of the button
        icon - the Icon image to display on the button
    • Method Detail

      • initButton

        protected void initButton()
        Initializes members.
        Overrides:
        initButton in class BaseButton
      • setBackgroundFocused

        public void setBackgroundFocused​(Color value)
        Sets the background color when focused.
        Parameters:
        value - the color
      • getBackgroundFocused

        public Color getBackgroundFocused()
        Returns the background color when focused.
        Returns:
        the color
      • setBackgroundUnfocused

        public void setBackgroundUnfocused​(Color value)
        Sets the background color when unfocused.
        Parameters:
        value - the color
      • getBackgroundUnfocused

        public Color getBackgroundUnfocused()
        Returns the background color when unfocused.
        Returns:
        the color