Class BusyAlert

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Screen
          extended by javax.microedition.lcdui.Alert
              extended by BusyAlert

public class BusyAlert
extends javax.microedition.lcdui.Alert

BusyAlert is used to notify users of the process of an ongoing task

Since:
1.0
Author:
Magnus Egeberg

Field Summary
private  javax.microedition.lcdui.Gauge gauge
           
private  TicketingSystemMIDlet ts
           
 
Fields inherited from class javax.microedition.lcdui.Alert
DISMISS_COMMAND, FOREVER
 
Constructor Summary
BusyAlert(java.lang.String title, TicketingSystemMIDlet ts)
          Sets the title of the alert
 
Method Summary
 void dismiss()
          Dismisses the alert
 void doAlert(java.lang.String text)
           
 void setText(java.lang.String text)
          Changes the alert text
 void showAlert(javax.microedition.lcdui.Alert a)
          Makes the alert visible on the deveice screen
 
Methods inherited from class javax.microedition.lcdui.Alert
addCommand, getDefaultTimeout, getImage, getIndicator, getString, getTimeout, getType, removeCommand, setCommandListener, setImage, setIndicator, setString, setTimeout, setType
 
Methods inherited from class javax.microedition.lcdui.Displayable
getHeight, getTicker, getTitle, getWidth, isShown, setTicker, setTitle, sizeChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gauge

private javax.microedition.lcdui.Gauge gauge

ts

private TicketingSystemMIDlet ts
Constructor Detail

BusyAlert

public BusyAlert(java.lang.String title,
                 TicketingSystemMIDlet ts)
Sets the title of the alert

Parameters:
title - The alert title
ts - The MIDlet
Method Detail

doAlert

public void doAlert(java.lang.String text)

dismiss

public void dismiss()
Dismisses the alert


setText

public void setText(java.lang.String text)
Changes the alert text

Parameters:
text - The new alert text

showAlert

public void showAlert(javax.microedition.lcdui.Alert a)
Makes the alert visible on the deveice screen

Parameters:
a - The alert to make visible