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.impl.core.*;
17: import org.itsnat.impl.core.listener.RemoteControlTimerEventListenerWrapperImpl;
18:
19: /**
20: *
21: * @author jmarranz
22: */
23: public class ClientDocumentInvitedRemoteCtrlTimerImpl extends
24: ClientDocumentInvitedRemoteCtrlImpl {
25: protected int interval;
26: protected RemoteControlTimerEventListenerWrapperImpl listener;
27:
28: /** Creates a new instance of ClientDocumentInvitedRemoteCtrlTimerImpl */
29: public ClientDocumentInvitedRemoteCtrlTimerImpl(int interval,
30: int phase, int syncMode, long ajaxTimeout,
31: ItsNatSessionImpl session, ItsNatDocumentImpl itsNatDoc) {
32: super (phase, syncMode, ajaxTimeout, session, itsNatDoc);
33:
34: this .interval = interval;
35:
36: this .listener = new RemoteControlTimerEventListenerWrapperImpl(
37: this );
38: }
39:
40: public RemoteControlTimerEventListenerWrapperImpl getRemoteControlTimerEventListenerWrapper() {
41: return listener;
42: }
43:
44: public int getRefreshInterval() {
45: return interval;
46: }
47:
48: public void setInvalid() {
49: super .setInvalid();
50:
51: addCodeToSend("itsNatDoc.stopRemCtrlTimerRefresh();");
52: }
53: }
|