com.webrenderer.event
Class DOMEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.webrenderer.event.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

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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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