public static class Wheel.WheelListenerToCommandEvents extends Object implements Wheel.WheelListener
Wheel.WheelListener
.
This implementation sends some MicroUI Command events. It targets the common MicroUI Command generator identified
by the tag EventCommand.COMMON_MICROUI_GENERATOR_TAG
.
This tag can be changed overriding the method getMicroUIGeneratorTag()
.
Constructor and Description |
---|
WheelListenerToCommandEvents() |
Modifier and Type | Method and Description |
---|---|
protected String |
getMicroUIGeneratorTag()
Gets the MicroUI Command events generator tag.
|
void |
press(Wheel widget)
The specified button has been pressed.
|
void |
release(Wheel widget)
The specified button has been released.
|
void |
turnBackward(Wheel widget,
int step)
The specified wheel has been turned backward.
|
void |
turnForward(Wheel widget,
int step)
The specified wheel has been turned forward.
|
protected String getMicroUIGeneratorTag()
microui/microui.xml
.public void press(Wheel widget)
Wheel.WheelListener
press
in interface Wheel.WheelListener
widget
- the turned wheel.public void release(Wheel widget)
Wheel.WheelListener
release
in interface Wheel.WheelListener
widget
- the turned wheel.public void turnBackward(Wheel widget, int step)
Wheel.WheelListener
turnBackward
in interface Wheel.WheelListener
widget
- the turned wheel.step
- the new step of the wheel.public void turnForward(Wheel widget, int step)
Wheel.WheelListener
turnForward
in interface Wheel.WheelListener
widget
- the turned wheel.step
- the new step of the wheel.