fbench.dom.events
Class ElementSelectionEvent

java.lang.Object
  extended by org.apache.xerces.dom.events.EventImpl
      extended by fbench.dom.events.ElementSelectionEvent
All Implemented Interfaces:
org.w3c.dom.events.Event

public class ElementSelectionEvent
extends org.apache.xerces.dom.events.EventImpl

A cancelable, bubbling DOM Level 2 Event representing the selection of an Element from a UI.

Version:
20051110/JHC
Author:
JHC

Field Summary
static int ACTIVATE
          The detail code for activation, e.g., mouse click.
static int HYPERACTIVATE
          The detail code for hyperactivation, e.g., double click.
 
Fields inherited from class org.apache.xerces.dom.events.EventImpl
bubbles, cancelable, currentTarget, eventPhase, initialized, preventDefault, stopPropagation, target, type
 
Fields inherited from interface org.w3c.dom.events.Event
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE
 
Constructor Summary
ElementSelectionEvent()
           
 
Method Summary
 int getDetail()
           
 org.w3c.dom.Element getSelectedElement()
           
 java.lang.Object getSource()
           
 void initSelectionEvent(org.w3c.dom.Element selectedElementArg, java.lang.Object sourceArg, int detailArg)
          Initialize the selection event.
 
Methods inherited from class org.apache.xerces.dom.events.EventImpl
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTIVATE

public static final int ACTIVATE
The detail code for activation, e.g., mouse click.

See Also:
Constant Field Values

HYPERACTIVATE

public static final int HYPERACTIVATE
The detail code for hyperactivation, e.g., double click.

See Also:
Constant Field Values
Constructor Detail

ElementSelectionEvent

public ElementSelectionEvent()
Method Detail

getDetail

public int getDetail()

getSelectedElement

public org.w3c.dom.Element getSelectedElement()

getSource

public java.lang.Object getSource()

initSelectionEvent

public void initSelectionEvent(org.w3c.dom.Element selectedElementArg,
                               java.lang.Object sourceArg,
                               int detailArg)
Initialize the selection event.

Parameters:
selectedElementArg - The selected DOM Element.
sourceArg - The source of the selection (typically a Component).
detailArg - The selection type (ACTIVATE or HYPERACTIVATE).