Use an anonymous inner class as the event handler for the numberpicker.