• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KHTML

DOM::TextEvent

DOM::TextEvent Class Reference

Introduced in DOM Level 3. More...

#include <dom2_events.h>

Inheritance diagram for DOM::TextEvent:
DOM::UIEvent DOM::Event

List of all members.

Public Member Functions

DOMString data () const
void initTextEvent (const DOMString &typeArg, bool canBubbleArg, bool cancelableArg, const AbstractView &viewArg, const DOMString &dataArg)
TextEvent & operator= (const Event &other)
TextEvent & operator= (const TextEvent &other)
 TextEvent (const Event &other)
 TextEvent (const TextEvent &other)
 TextEvent ()
virtual ~TextEvent ()

Detailed Description

Introduced in DOM Level 3.

DOM::TextEvent is used to indicate actual text entry during text input. It corresponds to the HTML keypress events

Definition at line 558 of file dom2_events.h.


Constructor & Destructor Documentation

TextEvent::TextEvent (  ) 

Definition at line 464 of file dom2_events.cpp.

TextEvent::TextEvent ( const TextEvent &  other  ) 

Definition at line 468 of file dom2_events.cpp.

TextEvent::TextEvent ( const Event &  other  ) 

Definition at line 472 of file dom2_events.cpp.

TextEvent::~TextEvent (  )  [virtual]

Definition at line 495 of file dom2_events.cpp.


Member Function Documentation

DOMString DOM::TextEvent::data (  )  const

data of type DOMString, readonly

data holds the value of the characters generated by the character device. This may be a single Unicode character or a non-empty sequence of Unicode characters [Unicode]. Characters should be normalized as defined by the Unicode normalization form NFC, defined in [UTR #15]. Note: while the DOM spec specifies that the string never be empty, KHTML can not guarantee that

void TextEvent::initTextEvent ( const DOMString &  typeArg,
bool  canBubbleArg,
bool  cancelableArg,
const AbstractView &  viewArg,
const DOMString &  dataArg 
)

initTextEvent The initTextEvent method is used to initialize the value of a TextEvent object and has the same behavior as UIEvent.initUIEvent().

The value of UIEvent.detail remains undefined.

Parameters:

Specifies the event type. canBubbleArg of type boolean Specifies whether or not the event can bubble. cancelableArg of type boolean Specifies whether or not the event's default action can be prevent. viewArg of type views::AbstractView Specifies the TextEvent's AbstractView. dataArg of type DOMString Specifies TextEvent.data.

Definition at line 499 of file dom2_events.cpp.

TextEvent & TextEvent::operator= ( const Event &  other  ) 

Reimplemented from DOM::UIEvent.

Definition at line 483 of file dom2_events.cpp.

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

Reimplemented from DOM::UIEvent.

Definition at line 477 of file dom2_events.cpp.


The documentation for this class was generated from the following files:
  • dom2_events.h
  • dom2_events.cpp

KHTML

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal