Class RegExpConstrainedTextField

    • Constructor Detail

      • RegExpConstrainedTextField

        public RegExpConstrainedTextField​(BaseRegExp regExp)
        Constructs a new TextField. A default model is created, the initial string is , and the number of columns is set to 0.
      • RegExpConstrainedTextField

        public RegExpConstrainedTextField​(BaseRegExp regExp,
                                          String text)
        Constructs a new TextField. A default model is created and the number of columns is set to 0.
        Parameters:
        text - the initial string
    • Method Detail

      • setRegExp

        public void setRegExp​(BaseRegExp value)
        Sets the regular expression.
        Parameters:
        value - the regular expression
      • getRegExp

        public BaseRegExp getRegExp()
        Returns the current regular expression.
        Returns:
        the regular expression