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: package org.itsnat.core.event;
14:
15: /**
16: * Is used to command ItsNat to transport the current node state (content and attributes) of the specified client
17: * node and optionally synchronize it with the matched server DOM node.
18: *
19: * <p>After synchronization the server node has the same state
20: * as the client counterpart.</p>
21: *
22: * <p>Is the sum of the behavior of {@link NodeAllAttribTransport}
23: * and {@link NodeInnerTransport}.</p>
24: *
25: *
26: * @author Jose Maria Arranz Santamaria
27: * @see org.itsnat.core.ItsNatDocument#addEventListener(org.w3c.dom.events.EventTarget,String,EventListener,boolean,int,ParamTransport[],String,long)
28: */
29: public class NodeCompleteTransport extends ParamTransport {
30: /**
31: * Creates a new instance ready to transport the current state of the specified
32: * client node and synchronizing the server node.
33: */
34: public NodeCompleteTransport() {
35: super (true);
36: }
37:
38: /**
39: * Creates a new instance ready to transport the current state of the specified
40: * client node with optional server synchronization.
41: *
42: * @param sync if true the server node is updated.
43: */
44: public NodeCompleteTransport(boolean sync) {
45: super(sync);
46: }
47:
48: }
|