example.fonts
Class FontTestlet

java.lang.Object
  extended by javax.microedition.midlet.MIDlet
      extended by example.fonts.FontTestlet
All Implemented Interfaces:
javax.microedition.lcdui.CommandListener

public class FontTestlet
extends javax.microedition.midlet.MIDlet
implements javax.microedition.lcdui.CommandListener

FontTestlet is simple MIDlet which attempts to display text in all of the MIDP's different fonts.


Constructor Summary
FontTestlet()
          FontTestlet - default constructor
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command cmd, javax.microedition.lcdui.Displayable disp)
           
 void destroyApp(boolean cond)
          destryApp() This is important.
(package private)  javax.microedition.lcdui.Command getCurrentCommand()
           
 void init()
          initApp()
 void paint(javax.microedition.lcdui.Graphics g)
          draw some stuff to the graphics context
 void pauseApp()
          pauseApp()
 void startApp()
          startApp()
 
Methods inherited from class javax.microedition.midlet.MIDlet
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontTestlet

public FontTestlet()
FontTestlet - default constructor

Method Detail

init

public void init()
          throws javax.microedition.midlet.MIDletStateChangeException
initApp()

Throws:
javax.microedition.midlet.MIDletStateChangeException

startApp

public void startApp()
              throws javax.microedition.midlet.MIDletStateChangeException
startApp()

Specified by:
startApp in class javax.microedition.midlet.MIDlet
Throws:
javax.microedition.midlet.MIDletStateChangeException

pauseApp

public void pauseApp()
pauseApp()

Specified by:
pauseApp in class javax.microedition.midlet.MIDlet

destroyApp

public void destroyApp(boolean cond)
destryApp() This is important. It closes the app's RecordStore

Specified by:
destroyApp in class javax.microedition.midlet.MIDlet
Parameters:
cond - true if this is an unconditional destroy false if it is not currently ignored and treated as true

paint

public void paint(javax.microedition.lcdui.Graphics g)
draw some stuff to the graphics context


getCurrentCommand

javax.microedition.lcdui.Command getCurrentCommand()

commandAction

public void commandAction(javax.microedition.lcdui.Command cmd,
                          javax.microedition.lcdui.Displayable disp)
Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener