public class NumberEvent extends BasicEvent
NumberFieldgadget when the user modified its contents.
|Modifier and Type||Field and Description|
returned by getID() : the number changed
|Constructor and Description|
Constructs a new
|Modifier and Type||Method and Description|
Queries the new number
Asks the event to incorporate the action described by another (older) event.
public static final int CHANGED
public boolean isAdjusting()
public Number getNumber()
NumberField. This is either an
Doubledepening of the
public boolean incorporate(BasicEvent oldEvent)
replaceEdit()method of the
javax.swing.undo.UndoableEditinterface; a pendant of a symmetric
addEdit()like method is not provided because it seems to be unnecessary.
Implementation notes : the
generally only be incorporated if it refers to
the same source object (
getSource()) and has
the same ID (
timestamp of the current event should not be modified.
oldEvent- the most recent event in the queue which might be incorporated by this new event.
trueif this object was able to incorporate the older event. in this case the
oldEventis removed from the event queue.
falsestates that the
oldEventwas incompatible and should remain in the queue.
Copyright © 2015–2017 UW-Madison LOCI. All rights reserved.