Class ResetInput<T extends ResetInput<T>>


public class ResetInput<T extends ResetInput<T>> extends Input<T>
Represents an HTML <input type="reset"> element for resetting form fields.

The ResetInput creates a button that, when clicked, resets all form fields to their initial values. The value attribute specifies the text displayed on the button.

Usage Example:


 ResetInput resetBtn = new ResetInput("reset", "Clear Form");
 form.addElement(resetBtn);
 
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • ResetInput

      public ResetInput()
      Creates a new ResetInput with no name or label.
    • ResetInput

      public ResetInput(String name)
      Creates a new ResetInput with the specified name.
      Parameters:
      name - The name attribute for the input element.
    • ResetInput

      public ResetInput(String name, String value)
      Creates a new ResetInput with the specified name and button label.
      Parameters:
      name - The name attribute for the input element.
      value - The text to display on the reset button.