com.emarson.lemonade.bluelemon.midp1
Class Alert

java.lang.Object
  extended by com.emarson.lemonade.bluelemon.midp1.Alert

public class Alert
extends Object

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

FOREVER

public static Number FOREVER
FOREVER indicates that an Alert is kept visible until the user dismisses it.

See Also:
MIDP1 Alert
Constructor Detail

Alert

public Alert()
Constructs a new, empty Alert object.

Usage examples:
   <blue:newInstance class="com/emarson/lemonade/bluelemon/midp1/Alert"
                     toVariable="alert"/>
 
Method Detail

getTicker

public Ticker getTicker()
Gets the ticker used by this Alert.

Returns:
ticker object used, or null if no ticker is present
See Also:
MIDP1 Screen
Usage examples:
   <blue:call object="alert" method="getTicker"
               toVariable="ticker"/>
 

intialize

public void intialize(String title,
                      String alertText,
                      Number alertType,
                      Number timeout)
Initializes an Alert object with the given title, content string, alert type and timeout.

Parameters:
title - the title string
alertText - the content string
alertType - the type of the alert as a number, or one of AlertType.ALARM, AlertType.CONFIRMATION, AlertType.ERROR, AlertType.INFO, AlertType.WARNING
timeout - timeout in milliseconds, or FOREVER
See Also:
AlertType
Usage examples:
   <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>
 

setTicker

public void setTicker(Ticker ticker)
Set a ticker for use with this Alert, replacing any previous ticker.

Parameters:
ticker - the ticker object used on this Alert
See Also:
MIDP1 Screen
Usage examples:
   <blue:call object="alert" method="setTicker">
     <blue:argument type="variable" name="ticker"/>
   </blue:call>
 


Copyright © 2007 E-MARSON. All Rights Reserved.