Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.microedition.lcdui
Class Alert  view Alert download Alert.java

java.lang.Object
  extended byjavax.microedition.lcdui.Displayable
      extended byjavax.microedition.lcdui.Screen
          extended byjavax.microedition.lcdui.Alert

public class Alert
extends Screen


Field Summary
(package private)  ImageStringItem alertContent
           
(package private)  CommandListener alertListener
           
static int FOREVER
           
(package private) static Command OK
           
(package private)  int time
           
(package private)  AlertType type
           
 
Fields inherited from class javax.microedition.lcdui.Screen
ticker, title, viewPortHeight, viewPortY
 
Fields inherited from class javax.microedition.lcdui.Displayable
commands, currentDisplay, listener
 
Constructor Summary
Alert(java.lang.String title)
           
Alert(java.lang.String title, java.lang.String alertText, Image alertImage, AlertType alertType)
           
 
Method Summary
 void addCommand(Command cmd)
           
 int getDefaultTimeout()
           
(package private)  int getHeight()
           
 Image getImage()
           
 java.lang.String getString()
           
 int getTimeout()
           
 AlertType getType()
           
(package private)  int paintContent(Graphics g)
           
 void setCommandListener(CommandListener l)
           
 void setImage(Image img)
           
 void setString(java.lang.String str)
           
 void setTimeout(int time)
           
 void setType(AlertType type)
           
(package private)  void showNotify()
           
(package private)  int traverse(int gameKeyCode, int top, int bottom)
           
 
Methods inherited from class javax.microedition.lcdui.Screen
getTicker, getTitle, hideNotify, keyPressed, keyRepeated, paint, repaint, setTicker, setTitle
 
Methods inherited from class javax.microedition.lcdui.Displayable
getCommandListener, getCommands, hideNotify, isShown, keyReleased, removeCommand, showNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FOREVER

public static final int FOREVER
See Also:
Constant Field Values

alertContent

ImageStringItem alertContent

type

AlertType type

OK

static final Command OK

time

int time

alertListener

CommandListener alertListener
Constructor Detail

Alert

public Alert(java.lang.String title)

Alert

public Alert(java.lang.String title,
             java.lang.String alertText,
             Image alertImage,
             AlertType alertType)
Method Detail

addCommand

public void addCommand(Command cmd)
Overrides:
addCommand in class Displayable

getDefaultTimeout

public int getDefaultTimeout()

getString

public java.lang.String getString()

getTimeout

public int getTimeout()

getType

public AlertType getType()

setType

public void setType(AlertType type)

setCommandListener

public void setCommandListener(CommandListener l)
Overrides:
setCommandListener in class Displayable

getImage

public Image getImage()

setImage

public void setImage(Image img)

setString

public void setString(java.lang.String str)

setTimeout

public void setTimeout(int time)

getHeight

int getHeight()

paintContent

int paintContent(Graphics g)
Specified by:
paintContent in class Screen

showNotify

void showNotify()
Overrides:
showNotify in class Screen

traverse

int traverse(int gameKeyCode,
             int top,
             int bottom)
Specified by:
traverse in class Screen