* Fires a {@link TimeEvent} on the given {@link EventTarget}.
*/
public static void fireTimeEvent(EventTarget target, String eventType,
Calendar time, int detail) {
DocumentEvent de = (DocumentEvent) ((Node) target).getOwnerDocument();
DOMTimeEvent evt = (DOMTimeEvent) de.createEvent("TimeEvent");
evt.initTimeEventNS(XMLConstants.XML_EVENTS_NAMESPACE_URI, eventType,
null,
detail);
evt.setTimestamp(time.getTime().getTime());
target.dispatchEvent(evt);
}