KHTML
DOM::HTMLInputElement Class Reference
Form control. More...
#include <html_form.h>
Detailed Description
Form control.Note. Depending upon the environment the page is being viewed, the value property may be read-only for the file upload input type. For the "password" input type, the actual value returned may be masked to prevent unauthorized use. See the INPUT element definition in HTML 4.0.
Definition at line 349 of file html_form.h.
Constructor & Destructor Documentation
HTMLInputElement::HTMLInputElement | ( | ) |
Definition at line 300 of file html_form.cpp.
HTMLInputElement::HTMLInputElement | ( | const HTMLInputElement & | other | ) |
Definition at line 304 of file html_form.cpp.
DOM::HTMLInputElement::HTMLInputElement | ( | const Node & | other | ) | [inline] |
Definition at line 354 of file html_form.h.
HTMLInputElement::HTMLInputElement | ( | HTMLInputElementImpl * | impl | ) | [protected] |
Definition at line 308 of file html_form.cpp.
HTMLInputElement::~HTMLInputElement | ( | ) |
Definition at line 324 of file html_form.cpp.
Member Function Documentation
DOMString HTMLInputElement::accept | ( | ) | const |
A comma-separated list of content types that a server processing this form will handle correctly.
See the accept attribute definition in HTML 4.0.
Definition at line 359 of file html_form.cpp.
DOMString HTMLInputElement::accessKey | ( | ) | const |
A single character access key to give access to the form control.
See the accesskey attribute definition in HTML 4.0.
Definition at line 370 of file html_form.cpp.
DOMString HTMLInputElement::align | ( | ) | const |
Aligns this object (vertically or horizontally) with respect to its surrounding text.
See the align attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
Definition at line 381 of file html_form.cpp.
DOMString HTMLInputElement::alt | ( | ) | const |
Alternate text for user agents not rendering the normal content of this element.
See the alt attribute definition in HTML 4.0.
Definition at line 392 of file html_form.cpp.
void HTMLInputElement::blur | ( | ) |
bool HTMLInputElement::checked | ( | ) | const |
Describes whether a radio or check box is checked, when type
has the value "Radio" or "Checkbox".
The value is true if explicitly set. Represents the current state of the checkbox or radio button. See the checked attribute definition in HTML 4.0.
Definition at line 403 of file html_form.cpp.
void HTMLInputElement::click | ( | ) |
Simulate a mouse-click.
For INPUT
elements whose type
attribute has one of the following values: "Button", "Checkbox", "Radio", "Reset", or "Submit".
Definition at line 579 of file html_form.cpp.
bool HTMLInputElement::defaultChecked | ( | ) | const |
When type
has the value "Radio" or "Checkbox", stores the initial value of the checked
attribute.
Definition at line 342 of file html_form.cpp.
DOMString HTMLInputElement::defaultValue | ( | ) | const |
Stores the initial control value (i.e., the initial value of value
).
Definition at line 328 of file html_form.cpp.
bool HTMLInputElement::disabled | ( | ) | const |
The control is unavailable in this context.
See the disabled attribute definition in HTML 4.0.
Definition at line 427 of file html_form.cpp.
void HTMLInputElement::focus | ( | ) |
HTMLFormElement HTMLInputElement::form | ( | ) | const |
long HTMLInputElement::getSize | ( | ) | const |
Size information.
The precise meaning is specific to each type of field. See the size attribute definition in HTML 4.0.
Definition at line 490 of file html_form.cpp.
bool HTMLInputElement::indeterminate | ( | ) | const |
long HTMLInputElement::maxLength | ( | ) | const |
Maximum number of characters for text fields, when type
has the value "Text" or "Password".
See the maxlength attribute definition in HTML 4.0.
Definition at line 441 of file html_form.cpp.
DOMString HTMLInputElement::name | ( | ) | const |
Form control or object name when submitted with a form.
See the name attribute definition in HTML 4.0.
Definition at line 455 of file html_form.cpp.
HTMLInputElement & HTMLInputElement::operator= | ( | const Node & | other | ) |
HTMLInputElement & HTMLInputElement::operator= | ( | const HTMLInputElement & | other | ) |
Definition at line 318 of file html_form.cpp.
bool HTMLInputElement::readOnly | ( | ) | const |
This control is read-only.
When type
has the value "text" or "password" only. See the readonly attribute definition in HTML 4.0.
Definition at line 466 of file html_form.cpp.
void HTMLInputElement::select | ( | ) |
Select the contents of the text area.
For INPUT
elements whose type
attribute has one of the following values: "Text", "File", or "Password".
Definition at line 573 of file html_form.cpp.
long HTMLInputElement::selectionEnd | ( | ) |
Returns the character offset of end of selection, or if none, the cursor position.
This operation is only supported if the type of this element is text; otherwise -1 is returned. NOTE: this method is not part of the DOM, but a Mozilla extension
- Since:
- 3.5.2
Definition at line 592 of file html_form.cpp.
long HTMLInputElement::selectionStart | ( | ) |
Returns the character offset of beginning of selection, or if none, the cursor position.
This operation is only supported if the type of this element is text; otherwise -1 is returned. NOTE: this method is not part of the DOM, but a Mozilla extension
- Since:
- 3.5.2
Definition at line 585 of file html_form.cpp.
void HTMLInputElement::setAccept | ( | const DOMString & | value | ) |
void HTMLInputElement::setAccessKey | ( | const DOMString & | value | ) |
void HTMLInputElement::setAlign | ( | const DOMString & | value | ) |
void HTMLInputElement::setAlt | ( | const DOMString & | value | ) |
void HTMLInputElement::setChecked | ( | bool | _checked | ) |
void HTMLInputElement::setDefaultChecked | ( | bool | _defaultChecked | ) |
void HTMLInputElement::setDefaultValue | ( | const DOMString & | value | ) |
void HTMLInputElement::setDisabled | ( | bool | _disabled | ) |
void HTMLInputElement::setIndeterminate | ( | bool | _indeterminate | ) |
void HTMLInputElement::setMaxLength | ( | long | _maxLength | ) |
void HTMLInputElement::setName | ( | const DOMString & | value | ) |
void HTMLInputElement::setReadOnly | ( | bool | _readOnly | ) |
void HTMLInputElement::setSelectionEnd | ( | long | offset | ) |
Move the end of the selection (and the cursor) to the given offset in text This call has no effect if the type of this input element isn't text NOTE: this method is not part of the DOM, but a Mozilla extension.
- Since:
- 3.5.2
Definition at line 605 of file html_form.cpp.
Makes the position span from start to end, and positions the cursor after the selection.
This call has no effect if the type of this input element isn't text or if it is not rendered. NOTE: this method is not part of the DOM, but a Mozilla extension
- Since:
- 3.5.2
Definition at line 611 of file html_form.cpp.
void HTMLInputElement::setSelectionStart | ( | long | offset | ) |
Move the beginning of the selection to the given offset in text This call has no effect if the type of this input element isn't text NOTE: this method is not part of the DOM, but a Mozilla extension.
- Since:
- 3.5.2
Definition at line 599 of file html_form.cpp.
void HTMLInputElement::setSize | ( | long | value | ) |
void HTMLInputElement::setSize | ( | const DOMString & | value | ) |
void HTMLInputElement::setSrc | ( | const DOMString & | value | ) |
void HTMLInputElement::setTabIndex | ( | long | _tabIndex | ) |
void HTMLInputElement::setType | ( | const DOMString & | _type | ) |
void HTMLInputElement::setUseMap | ( | const DOMString & | value | ) |
void HTMLInputElement::setValue | ( | const DOMString & | value | ) |
DOMString HTMLInputElement::size | ( | ) | const |
DOMString HTMLInputElement::src | ( | ) | const |
When the type
attribute has the value "Image", this attribute specifies the location of the image to be used to decorate the graphical submit button.
See the src attribute definition in HTML 4.0.
Definition at line 501 of file html_form.cpp.
long HTMLInputElement::tabIndex | ( | ) | const |
Index that represents the element's position in the tabbing order.
See the tabindex attribute definition in HTML 4.0.
Definition at line 513 of file html_form.cpp.
DOMString HTMLInputElement::type | ( | ) | const |
The type of control created.
See the type attribute definition in HTML 4.0.
Definition at line 525 of file html_form.cpp.
DOMString HTMLInputElement::useMap | ( | ) | const |
Use client-side image map.
See the usemap attribute definition in HTML 4.0.
Definition at line 537 of file html_form.cpp.
DOMString HTMLInputElement::value | ( | ) | const |
The current form control value.
Used for radio buttons and check boxes. See the value attribute definition in HTML 4.0.
Definition at line 548 of file html_form.cpp.
The documentation for this class was generated from the following files: