01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.xerces.dom.events;
19:
20: import org.w3c.dom.events.UIEvent;
21: import org.w3c.dom.views.AbstractView;
22:
23: /**
24: * An implementation of the DOM Level 2 <code>UIEvent</code> interface.
25: *
26: * @xerces.internal
27: *
28: * @version $Id: UIEventImpl.java 533574 2007-04-30 00:29:47Z mrglavas $
29: */
30: public class UIEventImpl extends EventImpl implements UIEvent {
31:
32: private AbstractView fView;
33: private int fDetail;
34:
35: public AbstractView getView() {
36: return fView;
37: }
38:
39: public int getDetail() {
40: return fDetail;
41: }
42:
43: public void initUIEvent(String typeArg, boolean canBubbleArg,
44: boolean cancelableArg, AbstractView viewArg, int detailArg) {
45: fView = viewArg;
46: fDetail = detailArg;
47: super.initEvent(typeArg, canBubbleArg, cancelableArg);
48: }
49: }
|