Class BaseColorTextField

    • Constructor Detail

      • BaseColorTextField

        public BaseColorTextField()
        Constructs a new TextField.
      • BaseColorTextField

        public BaseColorTextField​(Color initial)
        Constructs a new TextField.
        Parameters:
        initial - the initial color
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BasePanel
      • finishInit

        protected void finishInit()
        Finishes the initialization.
        Overrides:
        finishInit in class BasePanel
      • updateButtonColor

        protected void updateButtonColor​(Color color)
        Updates the color of the button.
        Parameters:
        color - the color to use
      • setColumns

        public void setColumns​(int columns)
        Sets the number of columns in this TextField, and then invalidate the layout.
        Parameters:
        columns - the number of columns >= 0
        Throws:
        IllegalArgumentException - if columns is less than 0
      • getColumns

        public int getColumns()
        Returns the number of columns in this TextField.
        Returns:
        the number of columns >= 0
      • setText

        public void setText​(String value)
        Sets the text in the field.
        Parameters:
        value - the text
      • getText

        public String getText()
        Returns the text in the field.
        Returns:
        the text
      • setObject

        public void setObject​(BaseColor value)
        Sets the object.
        Parameters:
        value - the object
      • getObject

        public BaseColor getObject()
        Returns the current color.
        Returns:
        the color
      • setColor

        public void setColor​(Color value)
        Sets the color.
        Parameters:
        value - the object
      • getColor

        public Color getColor()
        Returns the current color.
        Returns:
        the color