01: /*
02: ItsNat Java Web Application Framework
03: Copyright (C) 2007 Innowhere Software Services S.L., Spanish Company
04: Author: Jose Maria Arranz Santamaria
05:
06: This program is free software: you can redistribute it and/or modify
07: it under the terms of the GNU Affero General Public License as published by
08: the Free Software Foundation, either version 3 of the License, or
09: (at your option) any later version. See the GNU Affero General Public
10: License for more details. See the copy of the GNU Affero General Public License
11: included in this program. If not, see <http://www.gnu.org/licenses/>.
12: */
13:
14: package org.itsnat.impl.core.event.client2serv.domext;
15:
16: import org.itsnat.core.ItsNatException;
17: import org.itsnat.core.event.DOMExtensionEvent;
18: import org.itsnat.impl.core.ItsNatServletRequestImpl;
19: import org.itsnat.impl.core.event.client2serv.*;
20: import org.itsnat.impl.core.listener.domext.DOMExtensionEventListenerWrapperImpl;
21: import org.w3c.dom.events.EventTarget;
22:
23: /**
24: *
25: * @author jmarranz
26: */
27: public abstract class DOMExtensionEventImpl extends DOMBasedEventImpl
28: implements DOMExtensionEvent {
29: protected long timeStamp = System.currentTimeMillis();
30:
31: /**
32: * Creates a new instance of DOMExtensionEventImpl
33: */
34: public DOMExtensionEventImpl(
35: DOMExtensionEventListenerWrapperImpl listenerWrapper,
36: ItsNatServletRequestImpl request) {
37: super (listenerWrapper, request);
38: }
39:
40: public DOMExtensionEventListenerWrapperImpl getDOMExtensionEventListenerWrapper() {
41: return (DOMExtensionEventListenerWrapperImpl) listenerWrapper;
42: }
43:
44: public long getTimeStamp() {
45: return timeStamp;
46: }
47:
48: public EventTarget getTarget() {
49: return getCurrentTarget();
50: }
51:
52: public short getEventPhase() {
53: return AT_TARGET;
54: }
55:
56: public boolean getCancelable() {
57: return false;
58: }
59:
60: public boolean getBubbles() {
61: return false;
62: }
63:
64: public String getType() {
65: return getDOMExtensionEventListenerWrapper().getType();
66: }
67: }
|