The FormButton class implements a control that is intended for use in form-style user interfaces. A form button is typically used to let users trigger actions.
[FormButton] new FormButton(String id, String text)
Creates a new instance of the FormButton class.
id
Unique identifier for the control. Can be retrieved using the id property defined in the UIElement class that this control inherits from. Useful for example to identify the source of an event in event callback functions or to apply a CSS rule to only this particular control. The identifier can be null, in which case no id will be set for the control.
text
Text that is displayed on the face of the button. Typically this should be a verb that indicates what happens when the button is pressed. The value is an XHTML string.
A new instance of the FormButton class.
[String] FormButton.getText(void)
Retrieves the current text of the button. The value is an XHTML string.
This method does not take any arguments.
The current text of the button.
[void] FormButton.setText(String text)
Sets the text of the button. The text is displayed on the face of the button and indicates what happens when the button is pressed. The value is an XHTML string.
text
The text to be displayed on the face of the button. Passing null results in no text.
This method does not return a value.