DhElement | +--DhBaseContainer | +--DhCheckBoxpublic class DhCheckBox
Represents an HTML-intrinsic check box with a text label.
Constructors
Name | Description |
---|---|
DhCheckBox() | Creates a check box. |
DhCheckBox( String strText, boolean fChecked ) | Creates a check box. |
Methods
Name | Description |
---|---|
getChecked() | Retrieves the checked state of the check box. |
getEnabled() | Retrieves the enabled state of the check box. |
getSubmitName( ) | Retrieves the current name attribute for this check box. |
getSubmitValue( ) | Retrieves the submit value for this check box. |
getText( ) | Retrieves the current text label for the check box. |
getTextAlignment() | Retrieves the current alignment. |
setChecked( boolean fChecked ) | Sets the checked state of the check box. |
setEnabled( boolean f) | Sets the enabled state of the check box. |
setFocus() | Sets the input focus to this control |
setSubmitName( String strName ) | Sets the name for this check box. |
setSubmitValue( String strValue ) | Sets the submit value for this check box. |
setText( String strText ) | Sets the text label for the check box. |
setTextAlignment( int newAlignment ) | Sets the current alignment. |
Creates a check box. By default, this check box has neither a label nor a check mark.
Creates a check box. By default, this check box has a right-aligned label.
Returns true if the box is checked; returns false if not checked.
Retrieves the checked state of the check box.
Returns true if the box is enabled; returns false if it is not.
Retrieves the enabled state of the check box.
Returns the name attribute. This attribute is used only for HTTP form submission; otherwise, it is not required.
Retrieves the current name attribute for this check box.
Returns the current submit value.
Retrieves the submit value for this check box.
Returns the current text label.
Retrieves the current text label for the check box.
Returns the current alignment, which can be either TEXT_RIGHT or TEXT_LEFT.
Retrieves the current alignment.
Sets the checked state of the check box.
Sets the enabled state of the check box.
Sets the input focus to this control
Sets the name for this check box. This name is used during HTTP form submission.
Sets the submit value for this check box.
Sets the text label for the check box. The check box can be selected or cleared by clicking this label.
Sets the current alignment.