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.client;
15:
16: import org.itsnat.core.CometNotifier;
17: import org.itsnat.core.ItsNatException;
18: import org.itsnat.impl.core.*;
19: import org.w3c.dom.events.Event;
20: import org.w3c.dom.events.EventException;
21: import org.w3c.dom.events.EventTarget;
22:
23: /**
24: *
25: * @author jmarranz
26: */
27: public class ClientDocumentInvitedRemoteCtrlImpl extends
28: ClientDocumentInvitedImpl {
29: protected int phase;
30:
31: /** Creates a new instance of ClientDocumentInvitedRemoteCtrlImpl */
32: public ClientDocumentInvitedRemoteCtrlImpl(int phase, int syncMode,
33: long ajaxTimeout, ItsNatSessionImpl session,
34: ItsNatDocumentImpl itsNatDoc) {
35: super (syncMode, ajaxTimeout, session, itsNatDoc);
36:
37: this .phase = phase;
38: }
39:
40: public int getPhase() {
41: return phase;
42: }
43:
44: public void setPhase(int phase) {
45: this .phase = phase;
46: }
47:
48: public CometNotifier createCometNotifier() {
49: throw new ItsNatException(
50: "Only valid with the client document owner");
51: }
52:
53: public CometNotifier createCometNotifier(long ajaxTimeout) {
54: throw new ItsNatException(
55: "Only valid with the client document owner");
56: }
57:
58: public void startEventDispatcherThread(Runnable task) {
59: throw new ItsNatException(
60: "Only valid with the client document owner");
61: }
62:
63: public boolean dispatchEvent(EventTarget target, Event evt,
64: int syncMode, long ajaxTimeout) throws EventException {
65: throw new ItsNatException(
66: "Only valid with the client document owner");
67: }
68: }
|