diff options
author | Tom Tromey <tromey@redhat.com> | 2002-03-24 22:34:24 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2002-03-24 22:34:24 +0000 |
commit | 3f60f245cf4932952322c4de606dc8c049edc29e (patch) | |
tree | 8f14e325d0f0e708fa132d647cf40acde4d47896 /java/awt/TextField.java | |
parent | 30264382d74a89a016886c308fdd7c0555c10aad (diff) | |
download | classpath-3f60f245cf4932952322c4de606dc8c049edc29e.tar.gz |
* java/awt/MenuItem.java (eventMask): No longer private.
* java/awt/Button.java (dispatchEventImpl): Only dispatch to
superclass if we didn't handle event.
* java/awt/Checkbox.java (dispatchEventImpl): New method.
* java/awt/CheckboxMenuItem.java (dispatchEventImpl): New method.
* java/awt/Choice.java (dispatchEventImpl): New method.
* java/awt/List.java (dispatchEventImpl): New method.
* java/awt/Scrollbar.java (dispatchEventImpl): New method.
* java/awt/TextComponent.java (dispatchEventImpl): New method.
* java/awt/TextField.java (dispatchEventImpl): New method.
Diffstat (limited to 'java/awt/TextField.java')
-rw-r--r-- | java/awt/TextField.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/java/awt/TextField.java b/java/awt/TextField.java index 5499305f8..28d444ce9 100644 --- a/java/awt/TextField.java +++ b/java/awt/TextField.java @@ -1,5 +1,5 @@ /* TextField.java -- A one line text entry field - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1999, 2002 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -452,6 +452,18 @@ processActionEvent(ActionEvent event) action_listeners.actionPerformed(event); } +void +dispatchEventImpl(AWTEvent e) +{ + if (e.id <= ActionEvent.ACTION_LAST + && e.id >= ActionEvent.ACTION_FIRST + && (action_listeners != null + || (eventMask & AWTEvent.ACTION_EVENT_MASK) != 0)) + processEvent(e); + else + super.dispatchEventImpl(e); +} + /*************************************************************************/ /** |