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.response;
15:
16: import java.io.IOException;
17: import java.io.Writer;
18: import org.itsnat.impl.core.ItsNatDocumentImpl;
19: import org.itsnat.impl.core.ItsNatServletResponseImpl;
20: import org.itsnat.impl.core.event.client2serv.RemoteControlEventImpl;
21:
22: /**
23: *
24: * @author jmarranz
25: */
26: public class ResponseRemoteControlEventImpl extends
27: ResponseRemoteControlImpl {
28:
29: /**
30: * Creates a new instance of ResponseRemoteControlEventImpl
31: */
32: public ResponseRemoteControlEventImpl(
33: RemoteControlEventImpl requestEvent,
34: ItsNatServletResponseImpl itsNatResponse) {
35: super (requestEvent, itsNatResponse);
36: }
37:
38: public RemoteControlEventImpl getRemoteControlEvent() {
39: return (RemoteControlEventImpl) requestEvent;
40: }
41:
42: protected boolean isJavaScript() {
43: return true;
44: }
45:
46: protected void process(Writer out) throws IOException {
47: // Casos: RemoteControlEvent.REFRESH y RemoteControlEvent.UNLOAD
48:
49: ItsNatDocumentImpl itsNatDoc = requestEvent
50: .getItsNatDocumentImpl();
51: itsNatDoc.dispatchRemoteControlListeners(requestEvent);
52:
53: sendPendingCode(out);
54: }
55: }
|