Imported GNU Classpath 0.90
Imported GNU Classpath 0.90
* scripts/makemake.tcl: Set gnu/java/awt/peer/swing to ignore.
* gnu/classpath/jdwp/VMFrame.java (SIZE): New constant.
* java/lang/VMCompiler.java: Use gnu.java.security.hash.MD5.
* java/lang/Math.java: New override file.
* java/lang/Character.java: Merged from Classpath.
(start, end): Now 'int's.
(canonicalName): New field.
(CANONICAL_NAME, NO_SPACES_NAME, CONSTANT_NAME): New constants.
(UnicodeBlock): Added argument.
(of): New overload.
(forName): New method.
Updated unicode blocks.
(sets): Updated.
* sources.am: Regenerated.
* Makefile.in: Likewise.
From-SVN: r111942
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* Scrollbar.java -- AWT Scrollbar widget
|
||||
Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
@@ -593,13 +593,33 @@ public class Scrollbar extends Component implements Accessible, Adjustable
|
||||
adjustment_listeners.adjustmentValueChanged(event);
|
||||
}
|
||||
|
||||
/**
|
||||
* Package private method to determine whether to call
|
||||
* processEvent() or not. Will handle events from peer and update
|
||||
* the current value.
|
||||
*/
|
||||
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);
|
||||
&& e.id >= AdjustmentEvent.ADJUSTMENT_FIRST)
|
||||
{
|
||||
AdjustmentEvent ae = (AdjustmentEvent) e;
|
||||
boolean adjusting = ae.getValueIsAdjusting();
|
||||
if (adjusting)
|
||||
setValueIsAdjusting(true);
|
||||
try
|
||||
{
|
||||
setValue(((AdjustmentEvent) e).getValue());
|
||||
if (adjustment_listeners != null
|
||||
|| (eventMask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0)
|
||||
processEvent(e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (adjusting)
|
||||
setValueIsAdjusting(false);
|
||||
}
|
||||
}
|
||||
else
|
||||
super.dispatchEventImpl(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user