|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.storm.DynamicObject
ice.pilots.html4.DOMEvent
| Field Summary | |
static int |
ABORT
|
static int |
BLUR
|
static int |
CHANGE
|
static int |
CLICK
|
static int |
CONTEXTMENU
|
static int |
CSSModified
|
static int |
DBLCLICK
|
protected DNode |
defaultActionTarget
|
protected DDocument |
doc
|
static int |
DOMAttrModified
|
static int |
DOMNodeInserted
|
static int |
DOMNodeRemoved
|
static int |
DOMSubtreeModified
|
static int |
ERROR
|
static int |
FOCUS
|
static int |
GOTO
|
static int |
HELP
|
static int |
KEYDOWN
|
static int |
KEYPRESS
|
static int |
KEYUP
|
static int |
LOAD
|
static int |
MOUSEDOWN
|
static int |
MOUSEMOVE
|
static int |
MOUSEOUT
|
static int |
MOUSEOVER
|
static int |
MOUSEUP
|
static int |
NUM_EVENTS
|
static int |
RESET
|
static int |
RESIZE
|
static int |
SCROLL
|
static int |
SELECT
|
static int |
SUBMIT
|
static int |
UNLOAD
|
| Fields inherited from class ice.storm.DynamicObject |
NOT_FOUND, SETD_IGNORE, SETD_NOT_FOUND, SETD_OK |
| Fields inherited from interface org.w3c.dom.events.Event |
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE |
| Constructor Summary | |
protected |
DOMEvent(DDocument doc,
int id)
|
| Method Summary | |
protected void |
copyUIDataFrom(DOMEvent source)
|
Object |
execDynamicMethod(String name,
Object[] args,
DynEnv env)
Perform function-like actions for `name' with the given args. |
boolean |
getBubbles()
Used to indicate whether or not an event is a bubbling event. |
boolean |
getCancelable()
Used to indicate whether or not an event can have its default action prevented. |
Node |
getCurrentNode()
|
EventTarget |
getCurrentTarget()
Used to indicate the EventTarget whose
EventListeners are currently being processed. |
DDocument |
getDDocument()
|
Object |
getDynamicValue(String name,
DynEnv env)
Returns the `key' field or Defs.NOT_FOUND if `name' does not exist. |
short |
getEventPhase()
Used to indicate which phase of event flow is currently being evaluated. |
Object |
getSystemEvent()
|
EventTarget |
getTarget()
Used to indicate the EventTarget to which the event was
originally dispatched. |
long |
getTimeStamp()
Used to specify the time (in milliseconds relative to the epoch) at which the event was created. |
String |
getType()
The name of the event (case-insensitive). |
int |
getTypeId()
|
Viewport |
getViewport()
|
void |
initEvent(String eventTypeArg,
boolean canBubbleArg,
boolean cancelableArg)
The initEvent method is used to initialize the value of an
Event created through the DocumentEvent
interface. |
boolean |
isDefaultCancelled()
|
boolean |
isDefaultDone()
|
void |
preventDefault()
If an event is cancelable, the preventDefault method is
used to signify that the event is to be canceled, meaning any default
action normally taken by the implementation as a result of the event
will not occur. |
void |
setDefaultDone()
|
int |
setDynamicValue(String name,
Object value,
DynEnv env)
Set field `name' to `value'. |
void |
setSystemEvent(Object event)
Set system event that this event wraps. |
void |
stopPropagation()
The stopPropagation method is used prevent further
propagation of an event during event flow. |
String |
toString()
|
| Methods inherited from class ice.storm.DynamicObject |
deleteSlot, deleteSlot, getDynamicScopeParent, getEnumeratableIds, getMethodPropertySource, getScriptDataLock, getScriptWrapper, getSlot, getSlot, hasSlot, hasSlot, javaReflectionTarget, readOnlySlots, script_toSource, script_toString, setScriptWrapperIfAbsent, setSlot, setSlot, unlinkAllSlots |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int CLICK
public static final int DBLCLICK
public static final int MOUSEDOWN
public static final int MOUSEUP
public static final int MOUSEOVER
public static final int MOUSEMOVE
public static final int MOUSEOUT
public static final int KEYPRESS
public static final int KEYDOWN
public static final int KEYUP
public static final int RESIZE
public static final int SCROLL
public static final int LOAD
public static final int UNLOAD
public static final int ABORT
public static final int ERROR
public static final int SELECT
public static final int CHANGE
public static final int SUBMIT
public static final int RESET
public static final int FOCUS
public static final int BLUR
public static final int HELP
public static final int CONTEXTMENU
public static final int DOMSubtreeModified
public static final int DOMNodeInserted
public static final int DOMNodeRemoved
public static final int DOMAttrModified
public static final int CSSModified
public static final int GOTO
public static final int NUM_EVENTS
protected DDocument doc
protected DNode defaultActionTarget
| Constructor Detail |
protected DOMEvent(DDocument doc,
int id)
| Method Detail |
public final DDocument getDDocument()
public final Viewport getViewport()
protected void copyUIDataFrom(DOMEvent source)
public int getTypeId()
public String getType()
Event
getType in interface Eventpublic EventTarget getTarget()
EventEventTarget to which the event was
originally dispatched.
getTarget in interface Eventpublic Node getCurrentNode()
public EventTarget getCurrentTarget()
EventEventTarget whose
EventListeners are currently being processed. This is
particularly useful during capturing and bubbling.
getCurrentTarget in interface Eventpublic short getEventPhase()
Event
getEventPhase in interface Eventpublic boolean getBubbles()
Event
getBubbles in interface Eventpublic boolean getCancelable()
Event
getCancelable in interface Eventpublic void stopPropagation()
EventstopPropagation method is used prevent further
propagation of an event during event flow. If this method is called
by any EventListener the event will cease propagating
through the tree. The event will complete dispatch to all listeners
on the current EventTarget before event flow stops. This
method may be used during any stage of event flow.
stopPropagation in interface Eventpublic void preventDefault()
EventpreventDefault method is
used to signify that the event is to be canceled, meaning any default
action normally taken by the implementation as a result of the event
will not occur. If, during any stage of event flow, the
preventDefault method is called the event is canceled.
Any default action associated with the event will not occur. Calling
this method for a non-cancelable event has no effect. Once
preventDefault has been called it will remain in effect
throughout the remainder of the event's propagation. This method may
be used during any stage of event flow.
preventDefault in interface Event
public void initEvent(String eventTypeArg,
boolean canBubbleArg,
boolean cancelableArg)
EventinitEvent method is used to initialize the value of an
Event created through the DocumentEvent
interface. This method may only be called before the
Event has been dispatched via the
dispatchEvent method, though it may be called multiple
times during that phase if necessary. If called multiple times the
final invocation takes precedence. If called from a subclass of
Event interface only the values specified in the
initEvent method are modified, all other attributes are
left unchanged.
initEvent in interface Eventpublic boolean isDefaultCancelled()
public long getTimeStamp()
EventtimeStamp may
be not available for all events. When not available, a value of 0
will be returned. Examples of epoch time are the time of the system
start or 0:0:0 UTC 1st January 1970.
getTimeStamp in interface Eventpublic String toString()
public boolean isDefaultDone()
public void setDefaultDone()
public Object getSystemEvent()
public void setSystemEvent(Object event)
public Object getDynamicValue(String name,
DynEnv env)
DynamicObject
getDynamicValue in class DynamicObject
public int setDynamicValue(String name,
Object value,
DynEnv env)
DynamicObject
setDynamicValue in class DynamicObject
public Object execDynamicMethod(String name,
Object[] args,
DynEnv env)
DynamicObject
execDynamicMethod in class DynamicObjectDynEnv
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||