Class ButtonInput<T extends ButtonInput<T>>


public class ButtonInput<T extends ButtonInput<T>> extends Input<T>
HTML button input element for clickable buttons.

This class extends Input to provide a clickable button control that does not have default form submission behavior. Useful for buttons that trigger JavaScript actions or custom event handlers.

Features:

  • Clickable button without form submission
  • Custom event handler support
  • Named button for identification

Usage:

 ButtonInput button = new ButtonInput("action");
 button.setValue("Click Me");
 button.setOnClick("handleAction()");
 
Since:
2015
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • ButtonInput

      public ButtonInput()
      Creates a new ButtonInput with no name.
    • ButtonInput

      public ButtonInput(String name)
      Creates a new ButtonInput with the specified name.
      Parameters:
      name - The name attribute for the button.