|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openuat.channel.oob.ButtonChannelImpl
org.openuat.channel.oob.j2me.J2MEButtonChannelImpl
public class J2MEButtonChannelImpl
This is a J2ME specific implementation of
the ButtonChannelImpl class.
| Field Summary | |
|---|---|
protected javax.microedition.lcdui.Command |
abortCommand
Allows the user to cancel the currently displayed screen. |
protected javax.microedition.lcdui.CommandListener |
abortHandler
This CommandListener will be invoked whenever
the user aborts the current transmission or capture process. |
protected javax.microedition.lcdui.Canvas |
currentScreen
Current gui element displayed on screen. |
protected javax.microedition.lcdui.Font |
defaultFont
Default font when drawing text on the screen. |
protected javax.microedition.lcdui.Display |
display
Main applications Display. |
| Fields inherited from class org.openuat.channel.oob.ButtonChannelImpl |
|---|
intervalList, logger, prepareSignal, progress, showCount, showSignal, signalCount, transmissionMode, TRANSMIT_BAR, TRANSMIT_PLAIN, TRANSMIT_SIGNAL, TRANSMIT_TRAFFIC_LIGHT, TRANSMIT_VERT_BARS |
| Constructor Summary | |
|---|---|
J2MEButtonChannelImpl(javax.microedition.lcdui.Display display,
javax.microedition.lcdui.CommandListener abortHandler)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
repaint()
Repaints the currently displayed gui element. |
void |
showCaptureGui(java.lang.String text,
ButtonInputHandler inputHandler)
Starts the capturing process by launching a gui element that listens to button inputs. |
void |
showTransmitGui(java.lang.String text,
int type)
Starts the transmitting process. |
void |
vibrate(int milliseconds)
Vibrates for milliseconds ms. |
| Methods inherited from class org.openuat.channel.oob.ButtonChannelImpl |
|---|
setInterval, setPrepareSignal, setProgress, setShowCount, setSignal, setSignalCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.microedition.lcdui.Display display
Display.
protected javax.microedition.lcdui.Canvas currentScreen
protected javax.microedition.lcdui.Command abortCommand
protected javax.microedition.lcdui.CommandListener abortHandler
CommandListener will be invoked whenever
the user aborts the current transmission or capture process.
protected javax.microedition.lcdui.Font defaultFont
| Constructor Detail |
|---|
public J2MEButtonChannelImpl(javax.microedition.lcdui.Display display,
javax.microedition.lcdui.CommandListener abortHandler)
display - The main applications Display.abortHandler - It will be invoked when the user aborts the
current transmission or capture process. Note: this listener should
only react to events of type Command.STOP.
public void commandAction(Command command, Displayable displayable) {
if (command.getCommandType() == Command.STOP) {
// abort current processing...
}
}
| Method Detail |
|---|
public void repaint()
ButtonChannelImpl
repaint in class ButtonChannelImpl
public void showCaptureGui(java.lang.String text,
ButtonInputHandler inputHandler)
ButtonChannelImpltext should be an instructive
and/or informative text that helps the user to perform his task.
showCaptureGui in class ButtonChannelImpltext - Is displayed on screen while capturing.inputHandler - Button inputs are delegated to inputHandler.
public void showTransmitGui(java.lang.String text,
int type)
ButtonChannelImpl
showTransmitGui in class ButtonChannelImpltext - Is displayed on screen before transmitting starts.type - Defines the transmission type.public void vibrate(int milliseconds)
ButtonChannelImplmilliseconds ms.
vibrate in class ButtonChannelImplmilliseconds - The vibration duration.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||