|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.buglabs.bug.module.lcd.pub.LCDModlet
public class LCDModlet
LCD Modlet class for 1x LCD module.
| Field Summary |
|---|
| Fields inherited from interface com.buglabs.bug.module.lcd.pub.IModuleDisplay |
|---|
MODULE_ID |
| Constructor Summary | |
|---|---|
LCDModlet(BundleContext context,
int slotId,
java.lang.String moduleId)
|
|
| Method Summary | |
|---|---|
int |
disable()
|
int |
enable()
|
java.awt.Frame |
getFrame()
|
java.lang.String |
getModuleId()
Return the MODULE ID. |
java.lang.String |
getModuleName()
Get the human-readable name of this module. |
java.util.List |
getModuleProperties()
Return a list of IModuleProperty elements. |
int |
getSlotId()
|
int |
getStatus()
|
int |
setBackLight(int val)
|
int |
setBlackLight(int val)
|
int |
setLEDGreen(boolean state)
|
int |
setLEDRed(boolean state)
|
boolean |
setModuleProperty(IModuleProperty property)
Set a property. |
void |
setup()
Connect to any devices or do any initialization. |
void |
start()
Begin modlet. |
void |
stop()
Unregister services and release any resources. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LCDModlet(BundleContext context,
int slotId,
java.lang.String moduleId)
| Method Detail |
|---|
public void setup()
throws java.lang.Exception
IModlet
setup in interface IModletjava.lang.Exception
public void start()
throws java.lang.Exception
IModlet
start in interface IModletjava.lang.Exception
public void stop()
throws java.lang.Exception
IModlet
stop in interface IModletjava.lang.Exceptionpublic java.util.List getModuleProperties()
IModuleControlIModuleProperty elements.
getModuleProperties in interface IModuleControlpublic boolean setModuleProperty(IModuleProperty property)
IModuleControl
setModuleProperty in interface IModuleControlpublic int getSlotId()
getSlotId in interface IModletgetSlotId in interface IModuleControlpublic java.awt.Frame getFrame()
getFrame in interface IModuleDisplaypublic java.lang.String getModuleId()
IModlet
getModuleId in interface IModletpublic java.lang.String getModuleName()
IModuleControl
getModuleName in interface IModuleControl
public int setLEDGreen(boolean state)
throws java.io.IOException
setLEDGreen in interface IModuleLEDControllerjava.io.IOException
public int setLEDRed(boolean state)
throws java.io.IOException
setLEDRed in interface IModuleLEDControllerstate - on = true, off = false;
java.io.IOException
public int getStatus()
throws java.io.IOException
getStatus in interface ILCDModuleControljava.io.IOException
public int disable()
throws java.io.IOException
disable in interface ILCDModuleControljava.io.IOException
public int enable()
throws java.io.IOException
enable in interface ILCDModuleControljava.io.IOException
public int setBlackLight(int val)
throws java.io.IOException
setBlackLight in interface ILCDModuleControlval - Set's the intensity of the backlight 0-7.
java.io.IOException
public int setBackLight(int val)
throws java.io.IOException
setBackLight in interface ILCDModuleControlval - Set's the intensity of the backlight 0-7.
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||