DhResetButton Class

DhResetButton Class

This Package | All Packages

DhElement
  |
  +--DhButtonBase
    |
    +--DhResetButton
public class DhResetButton
extends DhButtonBase

Represents a reset button for an HTML form. This button resets the state of all controls on the form to their initial values.

Adding a DhResetButton to a DhSection object causes the DhSection to represent an HTML form element.

Also see wfc.html.DhSection

Constructors
Name Description
DhResetButton() Creates a DhResetButton object.
DhResetButton( String caption ) Creates a DhResetButton object.

Methods
Name Description
getText() Retrieves the button's current text caption.
setText( String strCaption ) Sets the button caption.

Constructors

DhResetButton.DhResetButton

Syntax 1
public DhResetButton();
Description

Creates a DhResetButton object. This default constructor creates a reset button with the caption "Reset".



Syntax 2
public DhResetButton( String caption );
Parameters
caption
The caption for the new reset button.
Description

Creates a DhResetButton object. This constructor creates a reset button with a specified caption.

Methods

DhResetButton.getText

Syntax
public String getText();
Return Value

Returns the button caption.

Description

Retrieves the button's current text caption.

Overrides

getText() in DhButtonBase.

DhResetButton.setText

Syntax
public void setText( String strCaption );
Parameters
strCaption
The new caption string.
Description

Sets the button caption.

Overrides

setText(String) in DhButtonBase.