Class WeekInput<T extends WeekInput<T>>


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

The WeekInput provides a week picker interface that allows users to select a specific week of a year. The value is represented in ISO 8601 week format (YYYY-Www, e.g., "2024-W15").

Usage Example:


 WeekInput weekPicker = new WeekInput("deliveryWeek", "2024-W15");
 form.addElement(weekPicker);
 
Since:
HTML5
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • WeekInput

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

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

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