Class DateTextField

    • Constructor Detail

      • DateTextField

        public DateTextField​(String format)
        Constructs a new TextField. A default model is created, the initial string is null, and the number of columns is set to 0.
        Parameters:
        format - the date format to use
      • DateTextField

        public DateTextField​(String format,
                             String text)
        Constructs a new TextField initialized with the specified text. A default model is created and the number of columns is 0.
        Parameters:
        format - the date format to use
        text - the text to be displayed, or null
      • DateTextField

        public DateTextField​(String format,
                             int columns)
        Constructs a new empty TextField with the specified number of columns. A default model is created and the initial string is set to null.
        Parameters:
        format - the date format to use
        columns - the number of columns to use to calculate the preferred width; if columns is set to zero, the preferred width will be whatever naturally results from the component implementation
      • DateTextField

        public DateTextField​(String format,
                             String text,
                             int columns)
        Constructs a new TextField initialized with the specified text and columns. A default model is created.
        Parameters:
        format - the date format to use
        text - the text to be displayed, or null
        columns - the number of columns to use to calculate the preferred width; if columns is set to zero, the preferred width will be whatever naturally results from the component implementation
      • DateTextField

        public DateTextField​(String format,
                             Document doc,
                             String text,
                             int columns)
        Constructs a new BaseTextField that uses the given text storage model and the given number of columns. This is the constructor through which the other constructors feed. If the document is null, a default model is created.
        Parameters:
        format - the date format to use
        doc - the text storage to use; if this is null, a default will be provided by calling the createDefaultModel method
        text - the initial string to display, or null
        columns - the number of columns to use to calculate the preferred width >= 0; if columns is set to zero, the preferred width will be whatever naturally results from the component implementation