Class MonthInput<T extends MonthInput<T>>


public class MonthInput<T extends MonthInput<T>> extends Input<T>
Represents an HTML5 <input type="month"> element for selecting a month and year.

The MonthInput provides a month picker interface that allows users to select a specific month and year. The value is represented in ISO 8601 format (YYYY-MM).

Usage Example:


 MonthInput expiryMonth = new MonthInput("cardExpiry", "2025-12");
 form.addElement(expiryMonth);
 
Since:
HTML5
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • MonthInput

      public MonthInput()
      Creates a new MonthInput with no name or initial value.
    • MonthInput

      public MonthInput(String name)
      Creates a new MonthInput with the specified name.
      Parameters:
      name - The name attribute for the input element, used for form submission.
    • MonthInput

      public MonthInput(String name, String value)
      Creates a new MonthInput with the specified name and initial month value.
      Parameters:
      name - The name attribute for the input element, used for form submission.
      value - The initial month value in ISO 8601 format (YYYY-MM).