buoy.event
Class ValueChangedEvent
EventObject
buoy.event.ValueChangedEvent
- WidgetEvent
public class ValueChangedEvent
extends EventObject
ValueChangedEvents are generated by Widgets that allow the user to enter a value,
whenever the value changes.
Widget | getWidget() - Get the Widget which generated this event.
|
boolean | isInProgress() - Determine whether this event represents a value change that is still in progress.
|
ValueChangedEvent
public ValueChangedEvent(Widget widget)
Create a ValueChangedEvent.
widget
- the Widget whose value has changed
ValueChangedEvent
public ValueChangedEvent(Widget widget,
boolean inProgress)
Create a ValueChangedEvent.
widget
- the Widget whose value has changedinProgress
- specifies whether this event represents a value change that is still in progress
isInProgress
public boolean isInProgress()
Determine whether this event represents a value change that is still in progress. For example,
if the user drags the thumb of a scrollbar but has not yet released the mouse button, this
method will return true. An in progress ValueChangedEvent will always be followed by another
one when the value change is complete.
Written by Peter Eastman.