EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Especificações Página 149

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 304
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 148
CHAPTER 4: User-Interface Tools Event handling 149
Event handling
Several helper classes provide low-level event-handling capabilities.
X Event objects are normally created by ScriptUI and passed to your event handler. However, you can
simulate a user action by constructing an event object using
ScriptUI.events.events.createEvent(),
and sending it to a target object’s dispatchEvent()
function.
X A helper object, Keyboard state object, provides global access to the keyboard state during function
execution, outside the event-handling framework.
UIEvent base class
Encapsulates input event information for an event that propagates through a container and control
hierarchy. This is a base class for the more specialized KeyboardEvent object
and MouseEvent object.
UIEvent object properties
Both keyboard and mouse events have these properties.
bubbles
Boolean When true, the event supports the bubbling phase.
cancelable
Boolean When true, the handler can call this object’s preventDefault() method to
cancel the default action of the event.
currentTarget
Object The element object where the currently executing handler was registered.
This could be an ancestor of the target object, if the handler is invoked
during the capture or bubbling phase.
eventPhase
Number Current event propagation phase. One of these constants:
Event.NOT_DISPATCHING
Event.CAPTURING_PHASE
Event.AT_TARGET
Event.BUBBLING_PHASE
target
Object The element object where the event occurred.
timeStamp
Object Time the event was initiated. A JavaScript Date object.
type
String The name of the event that occurred. Predefined events types are:
change changing
move moving
resize resizing
show enterKey
focus blur
Additional type names apply specifically to keyboard and mouse events.
view
Object The container or control object that dispatched the event.
Vista de página 148
1 2 ... 144 145 146 147 148 149 150 151 152 153 154 ... 303 304

Comentários a estes Manuais

Sem comentários