org.w3c.dom.events
Interface DocumentEvent
- All Known Implementing Classes:
- XMLDocument
- public interface DocumentEvent
The DocumentEvent
interface provides a mechanism by which the
user can create an Event of a type supported by the implementation. It is
expected that the DocumentEvent
interface will be
implemented on the same object which implements the Document
interface in an implementation which supports the Event model.
See also the Document Object Model (DOM) Level 2 Events Specification.
- Since:
- DOM Level 2
createEvent
public Event createEvent(java.lang.String eventType)
throws DOMException
- Returns:
- The newly created
Event
- Throws:
DOMException
- NOT_SUPPORTED_ERR: Raised if the implementation does not support the
type of Event
interface requested