2 * (C) Copyright IBM Corp. 1998-2004. All Rights Reserved.
\r
4 * The program is provided "as is" without any warranty express or
\r
5 * implied, including the warranty of non-infringement and the implied
\r
6 * warranties of merchantibility and fitness for a particular purpose.
\r
7 * IBM will not be liable for any damages suffered by you as a result
\r
8 * of using the Program. In no event will IBM be liable for any
\r
9 * special, indirect or consequential damages or lost profits even if
\r
10 * IBM has been advised of the possibility of their occurrence. IBM
\r
11 * will not be liable for any third party claims against you.
\r
13 package com.ibm.richtext.textpanel;
\r
15 import java.awt.event.KeyEvent;
\r
18 * This class forwards key events to a TextPanel component for
\r
20 * Its sole reason for existence is to prevent the key-event
\r
21 * API from being public on MTextPanel, and being mistaken for
\r
22 * standard API. This class is only for testing! It may be
\r
23 * removed from public API at any time. Do not depend on this
\r
26 public final class KeyEventForwarder {
\r
28 private ATextPanelImpl fPanelImpl;
\r
30 public KeyEventForwarder(TextPanel textPanel) {
\r
32 fPanelImpl = textPanel.getImpl();
\r
35 public KeyEventForwarder(JTextPanel textPanel) {
\r
37 fPanelImpl = textPanel.getImpl();
\r
40 public void handleKeyEvent(KeyEvent keyEvent) {
\r
42 fPanelImpl.handleKeyEvent(keyEvent);
\r