examples.cityguide
Class CityGuideMIDlet

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

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

Main CityGuide MIDlet


Constructor Summary
CityGuideMIDlet()
          Main City Guide MIDlet
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable s)
          Action handler
(package private)  void createLocationProvider()
          Initializes LocationProvider uses default criteria
 void destroyApp(boolean unconditional)
           
static CityGuideMIDlet getInstance()
           
 java.util.Vector getLandmarks(java.lang.String[] categories, double minLat, double minLon, double maxLat, double maxLon)
          Get landmarks of the categories in given extent
 java.util.Vector getSelectedCategories()
          which categories are selected
 boolean isMapDisplayed()
          is map display on
 void pauseApp()
           
 void selectedCategoriesChanged()
          Update map display - categories have changed
 void showDetailsScreen()
          Details screen contains detailed info about landmarks.
 void showErrorForm(java.lang.String message)
          Show error screen with last error
 void showMapCanvas(boolean updateLandmarks)
          Initializes map display and sets listener for location updates use LocationProvider defaults
 void showProgressScreen(java.lang.String title, int size)
          Progress screen while loading landmarks Especially while creating new landmark store from text resource file
 void showSettingsScreen(boolean show)
          Settings screen let user select categories of points of interest he/she is interested in.
 void showWelcomeScreen()
          Simple welcome screen
 void 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

CityGuideMIDlet

public CityGuideMIDlet()
Main City Guide MIDlet

Method Detail

getInstance

public static CityGuideMIDlet getInstance()

startApp

public void startApp()
Specified by:
startApp in class javax.microedition.midlet.MIDlet

pauseApp

public void pauseApp()
Specified by:
pauseApp in class javax.microedition.midlet.MIDlet

destroyApp

public void destroyApp(boolean unconditional)
Specified by:
destroyApp in class javax.microedition.midlet.MIDlet

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable s)
Action handler

Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener

createLocationProvider

void createLocationProvider()
Initializes LocationProvider uses default criteria


showMapCanvas

public void showMapCanvas(boolean updateLandmarks)
Initializes map display and sets listener for location updates use LocationProvider defaults


showErrorForm

public void showErrorForm(java.lang.String message)
Show error screen with last error


showProgressScreen

public void showProgressScreen(java.lang.String title,
                               int size)
Progress screen while loading landmarks Especially while creating new landmark store from text resource file


showSettingsScreen

public void showSettingsScreen(boolean show)
Settings screen let user select categories of points of interest he/she is interested in. Only those will be displayed on the map. Contains choice group of categories


showDetailsScreen

public void showDetailsScreen()
Details screen contains detailed info about landmarks. It's used for landmarks which appear in proximity radius.


showWelcomeScreen

public void showWelcomeScreen()
Simple welcome screen


isMapDisplayed

public boolean isMapDisplayed()
is map display on


getSelectedCategories

public java.util.Vector getSelectedCategories()
which categories are selected


selectedCategoriesChanged

public void selectedCategoriesChanged()
Update map display - categories have changed


getLandmarks

public java.util.Vector getLandmarks(java.lang.String[] categories,
                                     double minLat,
                                     double minLon,
                                     double maxLat,
                                     double maxLon)
Get landmarks of the categories in given extent