|
|||||||||||
| 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
ice.pilots.html4.DMutationEvent
Implements relevant parts of the DOM MutationEvent. The parts considered relevant are : DOMSubtreeModified DOMNodeInserted DOMNodeRemoved DOMAttrModified
Note, however, that DOMSubtreeModified is only
dispatched for the document itself, and never on any nodes.
Additionally, a new type has been added, called CSSModified
It is used to indicate that style-information is modified. Its
context-information is attrName and
newValue. Additionally, attrChange is
set to DMutationEvent.DOMATTRCHANGED
| Field Summary | |
static short |
ADDITION
Constants for the attrChangeArg which defines how an
attribute is changed. |
static short |
BUILDING
Indicates that this event is sent during initial DOM building. |
static short |
MODIFICATION
Constants for the attrChangeArg which defines how an
attribute is changed. |
static short |
REMOVAL
Constants for the attrChangeArg which defines how an
attribute is changed. |
| Fields inherited from class ice.pilots.html4.DOMEvent |
ABORT, BLUR, CHANGE, CLICK, CONTEXTMENU, CSSModified, DBLCLICK, defaultActionTarget, doc, DOMAttrModified, DOMNodeInserted, DOMNodeRemoved, DOMSubtreeModified, ERROR, FOCUS, GOTO, HELP, KEYDOWN, KEYPRESS, KEYUP, LOAD, MOUSEDOWN, MOUSEMOVE, MOUSEOUT, MOUSEOVER, MOUSEUP, NUM_EVENTS, RESET, RESIZE, SCROLL, SELECT, SUBMIT, 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 |
| Method Summary | |
short |
getAttrChange()
attrChange indicates the type of change which triggered
the DOMAttrModified event. |
String |
getAttrName()
attrName indicates the name of the changed
Attr node in a DOMAttrModified event. |
boolean |
getBubbles()
Always return true in current implementation |
boolean |
getCancelable()
Always return true in current implementation |
String |
getNewValue()
newValue indicates the new value of the Attr
node in DOMAttrModified events, and of the CharacterData
node in DOMCharDataModified events. |
String |
getPrevValue()
prevValue indicates the previous value of the
Attr node in DOMAttrModified events, and of the
CharacterData node in DOMCharDataModified events. |
Node |
getRelatedNode()
Always returns null in current implementation. |
void |
initMutationEvent(String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
Node relatedNodeArg,
String prevValueArg,
String newValueArg,
String attrNameArg,
short attrChangeArg)
Initiates a MutationEvent. |
| Methods inherited from class ice.pilots.html4.DOMEvent |
copyUIDataFrom, execDynamicMethod, getCurrentNode, getCurrentTarget, getDDocument, getDynamicValue, getEventPhase, getSystemEvent, getTarget, getTimeStamp, getType, getTypeId, getViewport, initEvent, isDefaultCancelled, isDefaultDone, preventDefault, setDefaultDone, setDynamicValue, setSystemEvent, stopPropagation, 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 |
| Methods inherited from interface org.w3c.dom.events.Event |
getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagation |
| Field Detail |
public static final short BUILDING
public static final short MODIFICATION
attrChangeArg which defines how an
attribute is changed. Note that the context-info in mutation events is
redefined compared to the standard.
initMutationEvent(java.lang.String, boolean, boolean,
org.w3c.dom.Node, java.lang.String, java.lang.String, java.lang.String, short),
Constant Field Valuespublic static final short ADDITION
attrChangeArg which defines how an
attribute is changed. Note that the context-info in mutation events is
redefined compared to the standard.
initMutationEvent(java.lang.String, boolean, boolean,
org.w3c.dom.Node, java.lang.String, java.lang.String, java.lang.String, short),
Constant Field Valuespublic static final short REMOVAL
attrChangeArg which defines how an
attribute is changed. Note that the context-info in mutation events is
redefined compared to the standard.
initMutationEvent(java.lang.String, boolean, boolean,
org.w3c.dom.Node, java.lang.String, java.lang.String, java.lang.String, short),
Constant Field Values| Method Detail |
public Node getRelatedNode()
getRelatedNode in interface MutationEventpublic String getPrevValue()
MutationEventprevValue indicates the previous value of the
Attr node in DOMAttrModified events, and of the
CharacterData node in DOMCharDataModified events.
getPrevValue in interface MutationEventpublic String getNewValue()
MutationEventnewValue indicates the new value of the Attr
node in DOMAttrModified events, and of the CharacterData
node in DOMCharDataModified events.
getNewValue in interface MutationEventpublic String getAttrName()
MutationEventattrName indicates the name of the changed
Attr node in a DOMAttrModified event.
getAttrName in interface MutationEventpublic short getAttrChange()
MutationEventattrChange indicates the type of change which triggered
the DOMAttrModified event. The values can be MODIFICATION
, ADDITION, or REMOVAL.
getAttrChange in interface MutationEvent
public void initMutationEvent(String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
Node relatedNodeArg,
String prevValueArg,
String newValueArg,
String attrNameArg,
short attrChangeArg)
initMutationEvent in interface MutationEventtypeArg - determines which type of mutation-event this iscanBubbleArg - is ignoredcancelableArg - is ignoredrelatedNodeArg - is only used for DOMNodeInserted and DOMNodeRemoved.prevValueArg - is only used for DOMAttrModified eventsnewValueArg - is only used for DOMAttrModified eventsattrNameArg - is only used for DOMAttrModified eventspublic boolean getBubbles()
getBubbles in interface EventgetBubbles in class DOMEventpublic boolean getCancelable()
getCancelable in interface EventgetCancelable in class DOMEvent
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||