|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.emarson.lemonade.bluelemon.midp1.Alert
public class Alert
This class delivers the functionality of the MIDP1
Alert Java class to the
Bluelemon environment.
| Field Summary | |
|---|---|
static Number |
FOREVER
FOREVER indicates that an Alert is kept visible until the user dismisses it. |
| Constructor Summary | |
|---|---|
Alert()
Constructs a new, empty Alert object. |
|
| Method Summary | |
|---|---|
Ticker |
getTicker()
Gets the ticker used by this Alert. |
void |
intialize(String title,
String alertText,
Number alertType,
Number timeout)
Initializes an Alert object with the given title, content string, alert type and timeout. |
void |
setTicker(Ticker ticker)
Set a ticker for use with this Alert, replacing any previous ticker. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Number FOREVER
MIDP1 Alert| Constructor Detail |
|---|
public Alert()
<blue:newInstance class="com/emarson/lemonade/bluelemon/midp1/Alert"
toVariable="alert"/>
| Method Detail |
|---|
public Ticker getTicker()
MIDP1 Screen
<blue:call object="alert" method="getTicker"
toVariable="ticker"/>
public void intialize(String title,
String alertText,
Number alertType,
Number timeout)
title - the title stringalertText - the content stringalertType - the type of the alert as a number, or
one of AlertType.ALARM, AlertType.CONFIRMATION,
AlertType.ERROR, AlertType.INFO, AlertType.WARNINGtimeout - timeout in milliseconds, or FOREVERAlertType
<blue:call object="alert" method="initialize">
<blue:argument type="String" value="title"/>
<blue:argument type="String" value="alertText"/>
<blue:argument type="byte" value="AlertType.INFO"/>
<blue:argument type="short" value="Alert.FOREVER"/>
</blue:call>
public void setTicker(Ticker ticker)
ticker - the ticker object used on this AlertMIDP1 Screen
<blue:call object="alert" method="setTicker">
<blue:argument type="variable" name="ticker"/>
</blue:call>
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||