Handler for changing value using SliderBar in GWT

I am using SliderBar from GWT Incubator in one of my current projects.

I want to add a handler that fires whenever the value of the slider changes, but I'm not sure which handler I need to add to get this to work, or I need to write one of my own.

thanks

+2


a source to share


1 answer


SliderBar

has a method addChangeListener()

that takes ChangeListener

, the method onChange()

will be called when you move the slider.



It's worth noting that it's ChangeListener

deprecated since GWT 1.6 (like all * Listeners), so SliderBar

should probably update to use the "new hotness" ChangeHandler

, but adding a ChangeListener will still work in the meantime.

+2


a source







All Articles