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

KHTML

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

#include <dom2_events.h>

Inheritance diagram for DOM::TextEvent:
Inheritance graph
[legend]

Public Member Functions

 TextEvent ()
 
 TextEvent (const TextEvent &other)
 
 TextEvent (const Event &other)
 
virtual ~TextEvent ()
 
DOMString data () const
 
void initTextEvent (const DOMString &typeArg, bool canBubbleArg, bool cancelableArg, const AbstractView &viewArg, const DOMString &dataArg)
 
TextEvent & operator= (const TextEvent &other)
 
TextEvent & operator= (const Event &other)
 
- Public Member Functions inherited from DOM::UIEvent
 UIEvent ()
 
 UIEvent (const UIEvent &other)
 
 UIEvent (const Event &other)
 
virtual ~UIEvent ()
 
int charCode () const
 
long detail () const
 
void initUIEvent (const DOMString &typeArg, bool canBubbleArg, bool cancelableArg, const AbstractView &viewArg, long detailArg)
 
int keyCode () const
 
int layerX () const
 
int layerY () const
 
UIEvent & operator= (const UIEvent &other)
 
UIEvent & operator= (const Event &other)
 
int pageX () const
 
int pageY () const
 
AbstractView view () const
 
int which () const
 
- Public Member Functions inherited from DOM::Event
 Event ()
 
 Event (const Event &other)
 
 Event (EventImpl *i)
 
virtual ~Event ()
 
bool bubbles () const
 
bool cancelable () const
 
Node currentTarget () const
 
unsigned short eventPhase () const
 
EventImpl * handle () const
 
void initEvent (const DOMString &eventTypeArg, bool canBubbleArg, bool cancelableArg)
 
bool isNull () const
 
Event & operator= (const Event &other)
 
void preventDefault ()
 
void stopPropagation ()
 
Node target () const
 
DOMTimeStamp timeStamp () const
 
DOMString type () const
 

Additional Inherited Members

- Public Types inherited from DOM::Event
enum  PhaseType { CAPTURING_PHASE = 1, AT_TARGET = 2, BUBBLING_PHASE = 3 }
 
- Protected Member Functions inherited from DOM::UIEvent
 UIEvent (UIEventImpl *impl)
 
- Protected Attributes inherited from DOM::Event
EventImpl * impl
 

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 568 of file dom2_events.h.

Constructor & Destructor Documentation

TextEvent::TextEvent ( )

Definition at line 490 of file dom2_events.cpp.

TextEvent::TextEvent ( const TextEvent &  other)

Definition at line 494 of file dom2_events.cpp.

TextEvent::TextEvent ( const Event &  other)

Definition at line 498 of file dom2_events.cpp.

TextEvent::~TextEvent ( )
virtual

Definition at line 521 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 525 of file dom2_events.cpp.

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

Definition at line 503 of file dom2_events.cpp.

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

Definition at line 509 of file dom2_events.cpp.


The documentation for this class was generated from the following files:
  • dom2_events.h
  • dom2_events.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal