MenuItem.java (eventMask): No longer private.
* 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. From-SVN: r51277
This commit is contained in:
parent
05ed12966c
commit
64165b30e6
10 changed files with 107 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
/* TextComponent.java -- Widgets for entering text
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999, 2002 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
|
@ -408,6 +408,18 @@ processTextEvent(TextEvent event)
|
|||
textListener.textValueChanged(event);
|
||||
}
|
||||
|
||||
void
|
||||
dispatchEventImpl(AWTEvent e)
|
||||
{
|
||||
if (e.id <= TextEvent.TEXT_LAST
|
||||
&& e.id >= TextEvent.TEXT_FIRST
|
||||
&& (textListener != null
|
||||
|| (eventMask & AWTEvent.TEXT_EVENT_MASK) != 0))
|
||||
processEvent(e);
|
||||
else
|
||||
super.dispatchEventImpl(e);
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue