ice.pilots.html4
Class DMutationEvent

java.lang.Object
  extended byice.storm.DynamicObject
      extended byice.pilots.html4.DOMEvent
          extended byice.pilots.html4.DMutationEvent
All Implemented Interfaces:
Event, MutationEvent

public class DMutationEvent
extends DOMEvent
implements MutationEvent

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

BUILDING

public static final short BUILDING
Indicates that this event is sent during initial DOM building.

See Also:
Constant Field Values

MODIFICATION

public static final short MODIFICATION
Constants for the attrChangeArg which defines how an attribute is changed. Note that the context-info in mutation events is redefined compared to the standard.

See Also:
initMutationEvent(java.lang.String, boolean, boolean, org.w3c.dom.Node, java.lang.String, java.lang.String, java.lang.String, short), Constant Field Values

ADDITION

public static final short ADDITION
Constants for the attrChangeArg which defines how an attribute is changed. Note that the context-info in mutation events is redefined compared to the standard.

See Also:
initMutationEvent(java.lang.String, boolean, boolean, org.w3c.dom.Node, java.lang.String, java.lang.String, java.lang.String, short), Constant Field Values

REMOVAL

public static final short REMOVAL
Constants for the attrChangeArg which defines how an attribute is changed. Note that the context-info in mutation events is redefined compared to the standard.

See Also:
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

getRelatedNode

public Node getRelatedNode()
Always returns null in current implementation.

Specified by:
getRelatedNode in interface MutationEvent

getPrevValue

public String getPrevValue()
Description copied from interface: MutationEvent
prevValue indicates the previous value of the Attr node in DOMAttrModified events, and of the CharacterData node in DOMCharDataModified events.

Specified by:
getPrevValue in interface MutationEvent

getNewValue

public String getNewValue()
Description copied from interface: MutationEvent
newValue indicates the new value of the Attr node in DOMAttrModified events, and of the CharacterData node in DOMCharDataModified events.

Specified by:
getNewValue in interface MutationEvent

getAttrName

public String getAttrName()
Description copied from interface: MutationEvent
attrName indicates the name of the changed Attr node in a DOMAttrModified event.

Specified by:
getAttrName in interface MutationEvent

getAttrChange

public short getAttrChange()
Description copied from interface: MutationEvent
attrChange indicates the type of change which triggered the DOMAttrModified event. The values can be MODIFICATION , ADDITION, or REMOVAL.

Specified by:
getAttrChange in interface MutationEvent

initMutationEvent

public void initMutationEvent(String typeArg,
                              boolean canBubbleArg,
                              boolean cancelableArg,
                              Node relatedNodeArg,
                              String prevValueArg,
                              String newValueArg,
                              String attrNameArg,
                              short attrChangeArg)
Initiates a MutationEvent. Some parameters are ignored in current implementation.

Specified by:
initMutationEvent in interface MutationEvent
Parameters:
typeArg - determines which type of mutation-event this is
canBubbleArg - is ignored
cancelableArg - is ignored
relatedNodeArg - is only used for DOMNodeInserted and DOMNodeRemoved.
prevValueArg - is only used for DOMAttrModified events
newValueArg - is only used for DOMAttrModified events
attrNameArg - is only used for DOMAttrModified events

getBubbles

public boolean getBubbles()
Always return true in current implementation

Specified by:
getBubbles in interface Event
Overrides:
getBubbles in class DOMEvent

getCancelable

public boolean getCancelable()
Always return true in current implementation

Specified by:
getCancelable in interface Event
Overrides:
getCancelable in class DOMEvent