|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.microedition.midlet.MIDlet
uk.co.silentsoftware.FollowMe
public class FollowMe
FollowMe - main midlet class Sets up the views (GPSDataViews) and starts the GPSReader as well as processing choices from the MainView as to which view should be showing. Tight integration with MainView is an intentional design decision.
| Field Summary | |
|---|---|
static int |
HIGHLIGHT_COLOR
The highlight colour of the canvas views (e.g arrow colour in main view) |
static int |
MAINMENU_VIEW
The constant representing the main menu view |
static java.lang.String |
PRODUCT_NAME
The product name |
static java.lang.String |
PRODUCT_URL
The product URL |
static java.lang.String |
PRODUCT_VERSION
The product version |
static int |
RAWDATA_VIEW
The constant representing the raw GPS data view |
static int |
RECEIVEDTEXT_VIEW
The constant representing the received text message view |
static int |
SATELLITES_VIEW
The constant representing the satellites view |
static int |
SENDTEXT_VIEW
The constant representing the send a text message view |
static int |
TARGETLISTDELETE_VIEW
The constant representing the list of targets to delete from |
static int |
TARGETLISTSAVE_VIEW
The constant representing the list of targets |
static int |
TARGETLISTSELECT_VIEW
The constant representing the list of targets to select from |
| Constructor Summary | |
|---|---|
FollowMe()
Default constructor - initialises all views |
|
| Method Summary | |
|---|---|
void |
destroyApp(boolean value)
|
static void |
discoverGPS()
Starts the GPS discovery process to find a GPS |
static void |
discoverGPSOptionVisible(boolean display)
Sets the whether to show the GPS discover option in the main menu |
static int |
getBackgroundColor()
Retrieve the back color |
static javax.microedition.lcdui.Display |
getDisp()
Returns the midlet's display |
static int |
getForegroundColor()
Retrieve the foreground color |
static javax.wireless.messaging.MessageConnection |
getIncomingConnection()
Provides access to the incoming connection - used when a text message is received |
static TargetHolder |
getTargetHolder()
Retrieve the targets holder |
static void |
invertColours()
Swap over the background and foreground colours |
void |
notifyIncomingMessage(javax.wireless.messaging.MessageConnection con)
|
static void |
pushDataToView(javax.microedition.location.Location data)
Simple method to delegate location to a view if it is shown vis-a-vis the command pattern. |
static void |
pushDataToView(java.lang.String data)
Simple method to delegate raw data to a view if it is shown vis-a-vis the command pattern. |
static void |
setTarget(javax.microedition.location.Coordinates coordinates)
Sets the given coordinates as the target |
static void |
showAlert(java.lang.String text)
Common utility method to show text as an alert |
static GPSDataView |
showView(int view)
Method to switch views on the fly, allowing GPS data to be represented in different ways |
| 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 |
| Field Detail |
|---|
public static final java.lang.String PRODUCT_NAME
public static final java.lang.String PRODUCT_VERSION
public static final java.lang.String PRODUCT_URL
public static final int MAINMENU_VIEW
public static final int SATELLITES_VIEW
public static final int RAWDATA_VIEW
public static final int SENDTEXT_VIEW
public static final int RECEIVEDTEXT_VIEW
public static final int TARGETLISTSELECT_VIEW
public static final int TARGETLISTDELETE_VIEW
public static final int TARGETLISTSAVE_VIEW
public static final int HIGHLIGHT_COLOR
| Constructor Detail |
|---|
public FollowMe()
| Method Detail |
|---|
public static GPSDataView showView(int view)
view -
public static void pushDataToView(java.lang.String data)
data - public static void pushDataToView(javax.microedition.location.Location data)
data -
public void destroyApp(boolean value)
throws javax.microedition.midlet.MIDletStateChangeException
destroyApp in class javax.microedition.midlet.MIDletjavax.microedition.midlet.MIDletStateChangeExceptionpublic void notifyIncomingMessage(javax.wireless.messaging.MessageConnection con)
notifyIncomingMessage in interface javax.wireless.messaging.MessageListenerpublic static void discoverGPS()
public static javax.microedition.lcdui.Display getDisp()
public static void discoverGPSOptionVisible(boolean display)
display - public static void showAlert(java.lang.String text)
text - public static void setTarget(javax.microedition.location.Coordinates coordinates)
coordinates - public static javax.wireless.messaging.MessageConnection getIncomingConnection()
public static int getBackgroundColor()
public static int getForegroundColor()
public static TargetHolder getTargetHolder()
public static void invertColours()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||