midlet
Class LoadSettings

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

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

This MIDlet gives the user the opportunity to load settings from a customised URL (file:/// or http:///) or chose between different predefined Settings. Settings are stored in a configuration file with the extension .som. In such a configuration file following properties are included:

Those settings can be changed in the ChangeSettings MIDlet.

Author:
Peter Hlavac
See Also:
ChangeSettings

Constructor Summary
LoadSettings()
           
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
          In the commandAction Handler the MIDlet is terminated or new settings are loaded.
 void destroyApp(boolean unconditional)
          Do nothing if MIDlet gets destroyed by the application Manager
 void pauseApp()
          Do nothing if MIDlet gets paused by the application Manager
 void startApp()
          Inits the MIDlet.
 
Methods inherited from class javax.microedition.midlet.MIDlet
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadSettings

public LoadSettings()
Method Detail

startApp

public void startApp()
Inits the MIDlet. Loads Properties and Language Manager. Draw UI.

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

pauseApp

public void pauseApp()
Do nothing if MIDlet gets paused by the application Manager

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

destroyApp

public void destroyApp(boolean unconditional)
Do nothing if MIDlet gets destroyed by the application Manager

Specified by:
destroyApp in class javax.microedition.midlet.MIDlet
Parameters:
unconditional - -

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable d)
In the commandAction Handler the MIDlet is terminated or new settings are loaded. If the URL is empty the configuration for the selected Item in the listbox is loaded

Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener
Parameters:
c - Which command was invoked
d - the Displayable on which the command was invoked