• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdehtml
 

tdehtml

  • DOM
  • HTMLInputElement
Public Member Functions | Protected Member Functions | List of all members
DOM::HTMLInputElement Class Reference

#include <html_form.h>

Inheritance diagram for DOM::HTMLInputElement:
DOM::HTMLElement DOM::Element DOM::Node

Public Member Functions

 HTMLInputElement (const HTMLInputElement &other)
 
 HTMLInputElement (const Node &other)
 
HTMLInputElement & operator= (const HTMLInputElement &other)
 
HTMLInputElement & operator= (const Node &other)
 
DOMString defaultValue () const
 
void setDefaultValue (const DOMString &)
 
bool defaultChecked () const
 
void setDefaultChecked (bool)
 
HTMLFormElement form () const
 
DOMString accept () const
 
void setAccept (const DOMString &)
 
DOMString accessKey () const
 
void setAccessKey (const DOMString &)
 
DOMString align () const
 
void setAlign (const DOMString &)
 
DOMString alt () const
 
void setAlt (const DOMString &)
 
bool checked () const
 
void setChecked (bool)
 
bool indeterminate () const
 
void setIndeterminate (bool)
 
bool disabled () const
 
void setDisabled (bool)
 
long maxLength () const
 
void setMaxLength (long)
 
DOMString name () const
 
void setName (const DOMString &)
 
bool readOnly () const
 
void setReadOnly (bool)
 
DOMString size () const TDE_DEPRECATED
 
void setSize (const DOMString &) TDE_DEPRECATED
 
long getSize () const
 
void setSize (long)
 
DOMString src () const
 
void setSrc (const DOMString &)
 
long tabIndex () const
 
void setTabIndex (long)
 
DOMString type () const
 
void setType (const DOMString &)
 
DOMString useMap () const
 
void setUseMap (const DOMString &)
 
DOMString value () const
 
void setValue (const DOMString &)
 
void blur ()
 
void focus ()
 
void select ()
 
void click ()
 
long selectionStart ()
 
void setSelectionStart (long offset)
 
long selectionEnd ()
 
void setSelectionEnd (long offset)
 
void setSelectionRange (long start, long end)
 
- Public Member Functions inherited from DOM::HTMLElement
 HTMLElement (const HTMLElement &other)
 
 HTMLElement (const Node &other)
 
HTMLElement & operator= (const HTMLElement &other)
 
HTMLElement & operator= (const Node &other)
 
DOMString id () const
 
void setId (const DOMString &)
 
DOMString title () const
 
void setTitle (const DOMString &)
 
DOMString lang () const
 
void setLang (const DOMString &)
 
DOMString dir () const
 
void setDir (const DOMString &)
 
DOMString className () const
 
void setClassName (const DOMString &)
 
DOMString innerHTML () const
 
void setInnerHTML (const DOMString &html)
 
DOMString innerText () const
 
void setInnerText (const DOMString &text)
 
HTMLCollection children () const
 
HTMLCollection all () const
 
void removeCSSProperty (const DOMString &property)
 
void addCSSProperty (const DOMString &property, const DOMString &value)
 
- Public Member Functions inherited from DOM::Element
 Element (const Node &other)
 
 Element (const Element &other)
 
Element & operator= (const Node &other)
 
Element & operator= (const Element &other)
 
DOMString tagName () const
 
DOMString getAttribute (const DOMString &name)
 
void setAttribute (const DOMString &name, const DOMString &value)
 
void removeAttribute (const DOMString &name)
 
Attr getAttributeNode (const DOMString &name)
 
Attr setAttributeNode (const Attr &newAttr)
 
Attr removeAttributeNode (const Attr &oldAttr)
 
NodeList getElementsByTagName (const DOMString &name)
 
NodeList getElementsByTagNameNS (const DOMString &namespaceURI, const DOMString &localName)
 
DOMString getAttributeNS (const DOMString &namespaceURI, const DOMString &localName)
 
void setAttributeNS (const DOMString &namespaceURI, const DOMString &qualifiedName, const DOMString &value)
 
void removeAttributeNS (const DOMString &namespaceURI, const DOMString &localName)
 
Attr getAttributeNodeNS (const DOMString &namespaceURI, const DOMString &localName)
 
Attr setAttributeNodeNS (const Attr &newAttr)
 
bool hasAttribute (const DOMString &name)
 
bool hasAttributeNS (const DOMString &namespaceURI, const DOMString &localName)
 
CSSStyleDeclaration style ()
 
bool contentEditable () const
 
void setContentEditable (bool enabled)
 
bool isHTMLElement () const
 
Element form () const
 
- Public Member Functions inherited from DOM::Node
 Node (const Node &other)
 
 Node (NodeImpl *_impl)
 
Node & operator= (const Node &other)
 
bool operator== (const Node &other) const
 
bool operator!= (const Node &other) const
 
DOMString nodeName () const
 
DOMString nodeValue () const
 
void setNodeValue (const DOMString &)
 
unsigned short nodeType () const
 
Node parentNode () const
 
NodeList childNodes () const
 
Node firstChild () const
 
Node lastChild () const
 
Node previousSibling () const
 
Node nextSibling () const
 
NamedNodeMap attributes () const
 
Document ownerDocument () const
 
Node insertBefore (const Node &newChild, const Node &refChild)
 
Node replaceChild (const Node &newChild, const Node &oldChild)
 
Node removeChild (const Node &oldChild)
 
Node appendChild (const Node &newChild)
 
bool hasChildNodes ()
 
Node cloneNode (bool deep)
 
void normalize ()
 
bool isSupported (const DOMString &feature, const DOMString &version) const
 
DOMString namespaceURI () const
 
DOMString prefix () const
 
void setPrefix (const DOMString &prefix)
 
DOMString localName () const
 
bool hasAttributes ()
 
DOMString textContent () const
 
void setTextContent (const DOMString &content) const
 
void addEventListener (const DOMString &type, EventListener *listener, const bool useCapture)
 
void removeEventListener (const DOMString &type, EventListener *listener, bool useCapture)
 
bool dispatchEvent (const Event &evt)
 
TQ_UINT32 elementId () const
 
bool isNull () const
 
NodeImpl * handle () const
 
unsigned long index () const
 
TQString toHTML () TDE_DEPRECATED
 
void applyChanges ()
 
void getCursor (int offset, int &_x, int &_y, int &height) TDE_DEPRECATED
 
TQRect getRect ()
 

Protected Member Functions

 HTMLInputElement (HTMLInputElementImpl *impl)
 
- Protected Member Functions inherited from DOM::HTMLElement
 HTMLElement (HTMLElementImpl *impl)
 
void assignOther (const Node &other, int elementId)
 
- Protected Member Functions inherited from DOM::Element
 Element (ElementImpl *_impl)
 

Additional Inherited Members

- Public Types inherited from DOM::Node
enum  NodeType {
  ELEMENT_NODE = 1 , ATTRIBUTE_NODE = 2 , TEXT_NODE = 3 , CDATA_SECTION_NODE = 4 ,
  ENTITY_REFERENCE_NODE = 5 , ENTITY_NODE = 6 , PROCESSING_INSTRUCTION_NODE = 7 , COMMENT_NODE = 8 ,
  DOCUMENT_NODE = 9 , DOCUMENT_TYPE_NODE = 10 , DOCUMENT_FRAGMENT_NODE = 11 , NOTATION_NODE = 12
}
 
- Static Public Member Functions inherited from DOM::Element
static bool tdehtmlValidAttrName (const DOMString &name)
 
static bool tdehtmlValidPrefix (const DOMString &name)
 
static bool tdehtmlValidQualifiedName (const DOMString &name)
 
static bool tdehtmlMalformedQualifiedName (const DOMString &name)
 
static bool tdehtmlMalformedPrefix (const DOMString &name)
 
- Protected Attributes inherited from DOM::Node
NodeImpl * impl
 

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() [1/4]

HTMLInputElement::HTMLInputElement ( )

Definition at line 300 of file html_form.cpp.

◆ HTMLInputElement() [2/4]

HTMLInputElement::HTMLInputElement ( const HTMLInputElement &  other)

Definition at line 304 of file html_form.cpp.

◆ HTMLInputElement() [3/4]

DOM::HTMLInputElement::HTMLInputElement ( const Node &  other)
inline

Definition at line 354 of file html_form.h.

◆ HTMLInputElement() [4/4]

HTMLInputElement::HTMLInputElement ( HTMLInputElementImpl *  impl)
protected

Definition at line 308 of file html_form.cpp.

◆ ~HTMLInputElement()

HTMLInputElement::~HTMLInputElement ( )

Definition at line 324 of file html_form.cpp.

Member Function Documentation

◆ accept()

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.

◆ accessKey()

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.

◆ align()

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.

◆ alt()

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.

◆ blur()

void HTMLInputElement::blur ( )

Removes keyboard focus from this element.

Definition at line 561 of file html_form.cpp.

◆ checked()

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.

◆ click()

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.

◆ defaultChecked()

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.

◆ defaultValue()

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.

◆ disabled()

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.

◆ focus()

void HTMLInputElement::focus ( )

Gives keyboard focus to this element.

Definition at line 567 of file html_form.cpp.

◆ form()

HTMLFormElement HTMLInputElement::form ( ) const

KDE 4.0: remove.

Definition at line 354 of file html_form.cpp.

◆ getSize()

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.

◆ indeterminate()

bool HTMLInputElement::indeterminate ( ) const

Describes whether a radio box is indeterminate.

Definition at line 415 of file html_form.cpp.

◆ maxLength()

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.

◆ name()

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.

◆ operator=() [1/2]

HTMLInputElement & HTMLInputElement::operator= ( const HTMLInputElement &  other)

Definition at line 318 of file html_form.cpp.

◆ operator=() [2/2]

HTMLInputElement & HTMLInputElement::operator= ( const Node &  other)

Definition at line 312 of file html_form.cpp.

◆ readOnly()

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.

◆ select()

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.

◆ selectionEnd()

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.

◆ selectionStart()

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.

◆ setAccept()

void HTMLInputElement::setAccept ( const DOMString &  value)

see accept

Definition at line 365 of file html_form.cpp.

◆ setAccessKey()

void HTMLInputElement::setAccessKey ( const DOMString &  value)

see accessKey

Definition at line 376 of file html_form.cpp.

◆ setAlign()

void HTMLInputElement::setAlign ( const DOMString &  value)

see align

Definition at line 387 of file html_form.cpp.

◆ setAlt()

void HTMLInputElement::setAlt ( const DOMString &  value)

see alt

Definition at line 398 of file html_form.cpp.

◆ setChecked()

void HTMLInputElement::setChecked ( bool  _checked)

see checked

Definition at line 409 of file html_form.cpp.

◆ setDefaultChecked()

void HTMLInputElement::setDefaultChecked ( bool  _defaultChecked)

see defaultChecked

Definition at line 348 of file html_form.cpp.

◆ setDefaultValue()

void HTMLInputElement::setDefaultValue ( const DOMString &  value)

see defaultValue

Definition at line 337 of file html_form.cpp.

◆ setDisabled()

void HTMLInputElement::setDisabled ( bool  _disabled)

see disabled

Definition at line 433 of file html_form.cpp.

◆ setIndeterminate()

void HTMLInputElement::setIndeterminate ( bool  _indeterminate)

see indeterminate

Definition at line 421 of file html_form.cpp.

◆ setMaxLength()

void HTMLInputElement::setMaxLength ( long  _maxLength)

see maxLength

Definition at line 447 of file html_form.cpp.

◆ setName()

void HTMLInputElement::setName ( const DOMString &  value)

see name

Definition at line 461 of file html_form.cpp.

◆ setReadOnly()

void HTMLInputElement::setReadOnly ( bool  _readOnly)

see readOnly

Definition at line 472 of file html_form.cpp.

◆ setSelectionEnd()

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.

◆ setSelectionRange()

void HTMLInputElement::setSelectionRange ( long  start,
long  end 
)

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.

◆ setSelectionStart()

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.

◆ setSize() [1/2]

void HTMLInputElement::setSize ( const DOMString &  value)
Deprecated:

Definition at line 485 of file html_form.cpp.

◆ setSize() [2/2]

void HTMLInputElement::setSize ( long  value)

see getSize

Definition at line 496 of file html_form.cpp.

◆ setSrc()

void HTMLInputElement::setSrc ( const DOMString &  value)

see src

Definition at line 508 of file html_form.cpp.

◆ setTabIndex()

void HTMLInputElement::setTabIndex ( long  _tabIndex)

see tabIndex

Definition at line 519 of file html_form.cpp.

◆ setType()

void HTMLInputElement::setType ( const DOMString &  _type)

see type

Definition at line 531 of file html_form.cpp.

◆ setUseMap()

void HTMLInputElement::setUseMap ( const DOMString &  value)

see useMap

Definition at line 543 of file html_form.cpp.

◆ setValue()

void HTMLInputElement::setValue ( const DOMString &  value)

see value

Definition at line 554 of file html_form.cpp.

◆ size()

DOMString HTMLInputElement::size ( ) const
Deprecated:

Definition at line 479 of file html_form.cpp.

◆ src()

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.

◆ tabIndex()

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.

◆ type()

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.

◆ useMap()

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.

◆ value()

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:
  • html_form.h
  • html_form.cpp

tdehtml

Skip menu "tdehtml"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdehtml

Skip menu "tdehtml"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdehtml by doxygen 1.9.4
This website is maintained by Timothy Pearson.