com.webrenderer.se.event.internal
Class DOMEvent
java.lang.Object
java.util.EventObject
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:
- A checkbox becoming checked or unchecked
- A radiobutton becoming selected
- A button being clicked
- Text changing in a textfield
To reduce the cost of multiple method invocations, the event object will
record the new data pertaining to the event.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
DOMEvent(java.lang.Object source)
Constructor for DomEvent with a source. |
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 |
targetElement
protected IElement targetElement
- The Dom Element the event is aboute.
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
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