Merge pull request #575 from wolsen/issue-553
Notify all event listeners when DoubleModel.setValue called
This commit is contained in:
commit
cc8f0caaab
@ -770,6 +770,8 @@ public class DoubleModel implements StateChangeListener, ChangeSource, Invalidat
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
setMethod.invoke(source, v / multiplier);
|
setMethod.invoke(source, v / multiplier);
|
||||||
|
// Make sure to notify all the listeners that have registered
|
||||||
|
fireStateChanged();
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
throw new BugException("Unable to invoke setMethod of " + this, e);
|
throw new BugException("Unable to invoke setMethod of " + this, e);
|
||||||
} catch (IllegalAccessException e) {
|
} catch (IllegalAccessException e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user