com.webrenderer.se.event.internal
Class DOMEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.webrenderer.se.event.internal.DOMEvent
All Implemented Interfaces:
java.io.Serializable

public class DOMEvent
extends java.util.EventObject

An event which indicates that there has been a change with a form element. Currently, a DomEvent encapsulates:

To reduce the cost of multiple method invocations, the event object will record the new data pertaining to the event.

See Also:
Serialized Form

Field Summary
protected  IElement targetElement
          The Dom Element the event is aboute.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DOMEvent(java.lang.Object source)
          Constructor for DomEvent with a source.
 
Method Summary
 IElement getTargetElement()
          Gets the Element that caused this event.
 void setTargetElement(IElement target)
          Set the DomEvent target element.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

targetElement

protected IElement targetElement
The Dom Element the event is aboute.

Constructor Detail

DOMEvent

public DOMEvent(java.lang.Object source)
Constructor for DomEvent with a source. The status message is initialised to null.

Parameters:
source - The source of the event
Method Detail

setTargetElement

public void setTargetElement(IElement target)
Set the DomEvent target element. This should only be used for constructing new events.

Parameters:
target - The dom Element this event is about

getTargetElement

public IElement getTargetElement()
Gets the Element that caused this event.

Returns:
com.webrenderer.dom.Element