01: /*
02: * Copyright 2005 jWic group (http://www.jwic.de)
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: *
16: * de.jwic.events.KeyPressedEvent
17: * Created on 07.12.2005
18: * $Id: KeyEvent.java,v 1.2 2006/08/14 09:34:59 lordsam Exp $
19: */
20: package de.jwic.events;
21:
22: import de.jwic.base.Event;
23:
24: /**
25: * @author Florian Lippisch
26: * @version $Revision: 1.2 $
27: */
28: public class KeyEvent extends Event {
29:
30: private static final long serialVersionUID = 1L;
31: private int keyCode = 0;
32:
33: /**
34: * @param eventSource
35: */
36: public KeyEvent(Object eventSource, int keyCode) {
37: super (eventSource);
38: this .keyCode = keyCode;
39: }
40:
41: /**
42: * @return Returns the keyCode.
43: */
44: public int getKeyCode() {
45: return keyCode;
46: }
47:
48: /**
49: * @param keyCode The keyCode to set.
50: */
51: public void setKeyCode(int keyCode) {
52: this.keyCode = keyCode;
53: }
54:
55: }
|