|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.emarson.lemonade.bluelemon.midp1.Timer
public class Timer
This class delivers the functionality of the MIDP1 Timer
Java class to the Bluelemon environment.
| Constructor Summary | |
|---|---|
Timer()
Constructs a new, empty Timer object. |
|
| Method Summary | |
|---|---|
void |
cancel()
Terminates this timer, discarding any currently scheduled tasks. |
void |
schedule(BluelemonCode code,
Number delay)
Creates the instance of TimerTask to process the
specified Bluelemon code and schedules it for execution after the
specified delay. |
void |
schedule(BluelemonCode code,
Number delay,
Number period)
Creates the instance of TimerTask to process the
specified Bluelemon code and schedules it for repeated fixed-delay
execution, beginning after the specified delay. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Timer()
<blue:newInstance class="com/emarson/lemonade/bluelemon/midp1/Timer"
toVariable="timer"/>
| Method Detail |
|---|
public void cancel()
MIDP1 Timer
<blue:call object="timer" method="cancel"/>
public void schedule(BluelemonCode code,
Number delay)
TimerTask to process the
specified Bluelemon code and schedules it for execution after the
specified delay.
code - Bluelemon code to processdelay - delay in milliseconds before task is to be executedMIDP1 Timer
<blue:call object="timer" method="schedule"/>
<blue:argument type="byteArr" contextKey="scheduledAction"/>
<blue:argument type="byte" name="100"/>
</blue:call>
public void schedule(BluelemonCode code,
Number delay,
Number period)
TimerTask to process the
specified Bluelemon code and schedules it for repeated fixed-delay
execution, beginning after the specified delay. Subsequent executions
take place at approximately regular intervals separated by the specified
period.
code - Bluelemon code to processdelay - delay in milliseconds before task is to be executedperiod - time in milliseconds between successive task executions.MIDP1
Timer
<blue:call object="timer" method="schedule"/>
<blue:argument type="byteArr" contextKey="scheduledAction"/>
<blue:argument type="byte" name="0"/>
<blue:argument type="byte" name="100"/>
</blue:call>
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||