Father Chrysostomos > HTML-DOM-0.053 > HTML::DOM::Event::UI

Download:
HTML-DOM-0.053.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Stalled  1
View/Report Bugs
Module Version: 0.053   Source  

NAME ^

HTML::DOM::Event::UI - A Perl class for HTML DOM UIEvent objects

SYNOPSIS ^

  # ...

DESCRIPTION ^

This class provides UIEvent objects for HTML::DOM, which objects are passed to event handlers for certain event types when they are invoked. It inherits from HTML::DOM::Event.

METHODS ^

See also those inherited from HTML::DOM::Event.

DOM Attributes

These are both read-only and ignore their arguments.

view

The view object associated with the event.

detail

A number that's meant to specify some info about the event. For instance, for the DOMActivate event, 1 is a normal activation, and 2 is a hyperactivation (whatever that means). A click event on an element triggers a DOMActivate event, simply copying the detail attribute from the click event.

Other Methods

initUIEvent ( $name, $propagates_up, $cancellable, $view, $detail )

This initialises the event object. See "initEvent" in HTML::DOM::Event for more detail.

init ( ... )

Alternative to initUIEvent that's easier to use:

  init $event
      type => $type,
      propagates_up => 1,
      cancellable => 1,
      view => $view,
      detail => 1,
  ;

SEE ALSO ^

HTML::DOM

HTML::DOM::Event

HTML::DOM::Event::Mouse

syntax highlighting: