public interface LLUILedImpl
An implementation of this interface is required to run a MicroUI application which uses the class MicroUI Led; otherwise some errors will be thrown at runtime and the application will not able to run correctly. This implementation should be a widget which at least allows to show an image when the LED is off and another image when the LED is on.
The LED engine retrieves on startup all widgets which implement this interface (using method
Device.getDevice().getWidgets(LLUILedImpl.class)
). Then it considers it can target a LED using the
widget label (Widget.getLabel()
). A widget label must be an integer; it allows to retrieve a LED from an
integer index. The first LED index must be 0
and last LED index must be
Device.getDevice().getWidgets(LLUILedImpl.class).size() - 1
.
Device.getDevice().getWidgets(LLUILedImpl.class).size()
, this LED will be never used.Modifier and Type | Field and Description |
---|---|
static int |
MAX_INTENSITY
Maximal value of intensity according MicroUI specification.
|
static int |
MIN_INTENSITY
Minimal value of intensity according MicroUI specification.
|
Modifier and Type | Method and Description |
---|---|
int |
getIntensity()
Gets the intensity of this led.
|
void |
setIntensity(int intensity)
Sets the intensity of this led.
|
static final int MAX_INTENSITY
static final int MIN_INTENSITY