KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > buchuki > ensmer > input > SystemInputManager


1 /*
2  * Copyright 2004 Dusty Phillips
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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 package com.buchuki.ensmer.input;
17
18 import com.buchuki.ensmer.input.event.*;
19
20 /**
21  * Class to respond to events pertaining to manipulating the system (rather
22  * than object data). This class simply forwards requests to a
23  * DefaultSystemInputManager for the time being; eventually it may contain
24  * logic for dynamically changing the SystemInputManager to manage
25  * differently.
26  *
27  * @author Dusty Phillips [dusty@buchuki.com]
28  */

29 public class SystemInputManager implements InputProcessor {
30
31     /**
32      * Process a particular input event forwarded from the InputManager. The
33      * event is forwarded to a DefaultSystemInputManager.
34      *
35      * @param event the EnsmerInputEvent to be processed.
36      */

37     public void processInput(EnsmerInputEvent event) {
38         processor.processInput(event);
39     }
40
41     /**
42      * The InputProcessor that events are forwarded to
43      */

44     private InputProcessor processor = new DefaultSystemInputManager();
45 }
46
Popular Tags