ScrollWheel Component
This Echo3 component is a subclass of ButtonWheel with the addition of an inner scroll wheel for continuous changes. See ButtonWheel for a description of the button behavior.
The inner scroll wheel will track clockwise and counter-clockwise mouse movement and adjust the value using the JavaScript data model. Feedback is provided in the area occupied by the Top Button. And action event of scrollExit is fired when the mouse leaves this area.
This component also responds to mousescroll event if your mouse is equipped a scrollwheel.
Data model see See ButtonWheel.
Future enhanements see See ButtonWheel.
Demonstration
The range is set from 0 to 1000, the right and left buttons increment and decrement the value, the up button sets the component to its minimum value, while the down button sets its maximum value, as if one were selecting the top or the bottom of a vertical list. A mouse over the inner scroll wheel will display the current value with clockwise gesture incrementing and a counter clockwise gesture decrementing. A mouse scroll wheel will also affect the component's value and feedback display.
Firefox does not use the 'onmousewheel' event type, but rather, 'DOMMouseScroll' event type. Echo3 registers JavaScript events by using a shorten form i.e. 'mousewheel' and prefixing this with 'on'. Hence, it is not straight forward to register the 'DOMMouseScroll' and thus no scroll wheel support for the FireFox browser.
ScrollWheel - Summary API
package org.informagen.echo.app;
import org.informagen.echo.app.ButtonWheel;
public class ScrollWheel extends ButtonWheel {
public ScrollWheel()
public ScrollWheel(final int diameter)
}