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.event.fromserv.dom;
15:
16: import org.itsnat.impl.core.ItsNatDocumentImpl;
17: import org.w3c.dom.events.UIEvent;
18: import org.w3c.dom.views.AbstractView;
19:
20: /**
21: *
22: * @author jmarranz
23: */
24: public class ServerUIEventImpl extends ServerDOMEventImpl implements
25: UIEvent {
26: protected AbstractView view;
27: protected int detail;
28:
29: /** Creates a new instance of ServerUIEventImpl */
30: public ServerUIEventImpl(ItsNatDocumentImpl itsNatDoc) {
31: super (itsNatDoc);
32: }
33:
34: public AbstractView getView() {
35: return view;
36: }
37:
38: public int getDetail() {
39: return detail;
40: }
41:
42: public void initUIEvent(String typeArg, boolean canBubbleArg,
43: boolean cancelableArg, AbstractView viewArg, int detailArg) {
44: super.initEvent(typeArg, canBubbleArg, cancelableArg);
45:
46: this.view = viewArg;
47: this.detail = detailArg;
48: }
49:
50: }
|