Class CheckedTextField.AbstractCheckModel

    • Field Detail

      • m_DefaultValue

        protected String m_DefaultValue
        the default text.
    • Constructor Detail

      • AbstractCheckModel

        public AbstractCheckModel()
        Initializes the model.
      • AbstractCheckModel

        public AbstractCheckModel​(String defValue)
        Initializes the model with the specified default value.
        Parameters:
        defValue - the default value to use
    • Method Detail

      • isValid

        public abstract boolean isValid​(String text)
        Checks whether the content is valid.
        Parameters:
        text - the string to check
        Returns:
        true if valid
      • setDefaultValue

        public void setDefaultValue​(String value)
        Sets the default value to use.
        Parameters:
        value - the default
      • getDefaultValue

        public String getDefaultValue()
        Returns the default value in case the current string is not valid.
        Returns:
        the default string to use
      • toString

        public String toString()
        Returns a short string representation.
        Overrides:
        toString in class Object
        Returns:
        the string representation