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: /**
17: * Is used to command ItsNat to transport all current attributes of a client
18: * element and optionally synchronize them with the matched server element.
19: *
20: * <p>After synchronization the server DOM element has the same attributes and values
21: * as the client counterpart.</p>
22: *
23: * <p>With or without synchronization the transported attributes can be obtained
24: * calling {@link org.itsnat.core.event.ItsNatEvent#getExtraParam(String)}</p>
25: *
26: *
27: * @author Jose Maria Arranz Santamaria
28: * @see org.itsnat.core.ItsNatDocument#addEventListener(org.w3c.dom.events.EventTarget,String,org.w3c.dom.events.EventListener,boolean,int,ParamTransport[],String,long)
29: */
30: public class NodeAllAttribTransport extends ParamTransport {
31:
32: /**
33: * Creates a new instance with automatic synchronization enabled.
34: */
35: public NodeAllAttribTransport() {
36: super (true);
37: }
38:
39: /**
40: * Creates a new instance with optional synchronization.
41: *
42: * @param sync if true the server element is synchronized
43: */
44: public NodeAllAttribTransport(boolean sync) {
45: super(sync);
46: }
47:
48: }
|