DhSubmitButton Class

DhSubmitButton Class

This Package | All Packages

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

Represents a submit button for an HTML form. The submit button invokes the URL specified in the form's ACTION attribute (For more information, see DhSection.setHTTPSubmitUrl().) Adding a DhSubmitButton to a DhSection object causes the DhSection to represent an HTML form element

Also see wfc.html.DhSection

Fields
Name Description
METHOD_GET Topic under construction.
METHOD_POST Topic under construction.

Constructors
Name Description
DhSubmitButton() Creates a DhSubmitButton object.
DhSubmitButton( String strCaption ) Creates a DhSubmitButton object.

Methods
Name Description
getSubmitMethod() Topic under construction.
getSubmitUrl( ) Retrieves the current URL that will be called if the form's Submit button is clicked.
getText() Retrieves the button's current text caption.
setSubmitMethod( int newMethod ) Topic under construction.
setSubmitUrl( String strActionUrl ) Sets the URL to be called when the form's Submit button is clicked.
setText( String strCaption ) Sets the button caption.

Fields

DhSubmitButton.METHOD_GET

Syntax
public static final int METHOD_GET;
Description
Topic under construction.

DhSubmitButton.METHOD_POST

Syntax
public static final int METHOD_POST;
Description
Topic under construction.

Constructors

DhSubmitButton.DhSubmitButton

Syntax 1
public DhSubmitButton();
Description

Creates a DhSubmitButton object. This default constructor creates a DhSubmitButton with Submit as its caption.



Syntax 2
public DhSubmitButton( String strCaption );
Parameters
strCaption
The initial caption for the new button.
Description

Creates a DhSubmitButton object. This constructor creates a DhSubmitButton with the specified caption.

Methods

DhSubmitButton.getSubmitMethod

Syntax
public int getSubmitMethod();
Description

Topic under construction.

DhSubmitButton.getSubmitUrl

Syntax
public String getSubmitUrl( );
Return Value

Returns the URL to be called.

Description

Retrieves the current URL that will be called if the form's Submit button is clicked.

See Also
setHTTPSubmitUrl

DhSubmitButton.getText

Syntax
public String getText();
Return Value

Returns the button caption.

Description

Retrieves the button's current text caption.

Overrides

getText() in DhButtonBase.

DhSubmitButton.setSubmitMethod

Syntax
public void setSubmitMethod( int newMethod );
Description

Topic under construction.

DhSubmitButton.setSubmitUrl

Syntax
public void setSubmitUrl( String strActionUrl );
Parameters
strActionUrl
The URL to be called on submit.
Description

Sets the URL to be called when the form's Submit button is clicked. Parameters from form fields are concatenated onto this URL.

DhSubmitButton.setText

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

Sets the button caption.

Overrides

setText(String) in DhButtonBase.