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.core.event;
15:
16: import org.itsnat.impl.core.listener.trans.NodeInnerTransportUtil;
17:
18: /**
19: * Is used to command ItsNat to transport the current content (inner) of the specified client
20: * node and optionally synchronize it with the matched server DOM node.
21: *
22: * <p>After synchronization the server node has the same content
23: * as the client counterpart.</p>
24: *
25: * <p>With or without synchronization the client node content can be obtained in
26: * markup form calling {@link org.itsnat.core.event.ItsNatEvent#getExtraParam(String)}
27: * with the name returned by {@link NodeInnerTransport#getName()}</p>
28: *
29: *
30: * @author Jose Maria Arranz Santamaria
31: * @see org.itsnat.core.ItsNatDocument#addEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean,int,ParamTransport[],String,long)
32: */
33: public class NodeInnerTransport extends SingleParamTransport {
34:
35: /**
36: * Creates a new instance ready to transport the current content of the specified
37: * client node and synchronizing the server node.
38: */
39: public NodeInnerTransport() {
40: this (true);
41: }
42:
43: /**
44: * Creates a new instance ready to transport the current content of the specified
45: * client node with optional server synchronization.
46: *
47: * @param sync if true the server node content is updated.
48: */
49: public NodeInnerTransport(boolean sync) {
50: super(NodeInnerTransportUtil.getName(), sync);
51: }
52: }
|