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
|
@ -660,6 +660,18 @@ processAdjustmentEvent(AdjustmentEvent event)
|
|||
adjustment_listeners.adjustmentValueChanged(event);
|
||||
}
|
||||
|
||||
void
|
||||
dispatchEventImpl(AWTEvent e)
|
||||
{
|
||||
if (e.id <= AdjustmentEvent.ADJUSTMENT_LAST
|
||||
&& e.id >= AdjustmentEvent.ADJUSTMENT_FIRST
|
||||
&& (adjustment_listeners != null
|
||||
|| (eventMask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0))
|
||||
processEvent(e);
|
||||
else
|
||||
super.dispatchEventImpl(e);
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue