com.sony.csl.j2me.locationapitools.demo
Class NewTrackForm

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Screen
          extended by javax.microedition.lcdui.Form
              extended by com.sony.csl.j2me.locationapitools.demo.NewTrackForm
All Implemented Interfaces:
javax.microedition.lcdui.CommandListener

public class NewTrackForm
extends javax.microedition.lcdui.Form
implements javax.microedition.lcdui.CommandListener

Author:
mstevens

Field Summary
private  javax.microedition.lcdui.ChoiceGroup chgrFormat
           
private  javax.microedition.lcdui.Command cmdCancel
           
private  javax.microedition.lcdui.Command cmdStart
           
static int CSV_FORMAT
           
private  int idxCSV
           
private  int idxKML
           
private  int idxTXT
           
static int KML_FORMAT
           
private  DemoMIDlet midlet
           
static int TXT_FORMAT
           
private  javax.microedition.lcdui.TextField txtPath
           
private  javax.microedition.lcdui.TextField txtTrackName
           
 
Constructor Summary
NewTrackForm(DemoMIDlet midlet)
           
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command cmd, javax.microedition.lcdui.Displayable disp)
           
 java.lang.String getPath()
           
 int getTrackFormat()
           
 java.lang.String getTrackName()
           
 
Methods inherited from class javax.microedition.lcdui.Form
append, append, append, delete, deleteAll, get, getHeight, getWidth, insert, set, setItemStateListener, size
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, getTicker, getTitle, isShown, removeCommand, setCommandListener, setTicker, setTitle, sizeChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

midlet

private DemoMIDlet midlet

KML_FORMAT

public static final int KML_FORMAT
See Also:
Constant Field Values

CSV_FORMAT

public static final int CSV_FORMAT
See Also:
Constant Field Values

TXT_FORMAT

public static final int TXT_FORMAT
See Also:
Constant Field Values

cmdStart

private javax.microedition.lcdui.Command cmdStart

cmdCancel

private javax.microedition.lcdui.Command cmdCancel

txtPath

private javax.microedition.lcdui.TextField txtPath

txtTrackName

private javax.microedition.lcdui.TextField txtTrackName

chgrFormat

private javax.microedition.lcdui.ChoiceGroup chgrFormat

idxKML

private int idxKML

idxCSV

private int idxCSV

idxTXT

private int idxTXT
Constructor Detail

NewTrackForm

public NewTrackForm(DemoMIDlet midlet)
Method Detail

getPath

public java.lang.String getPath()
Returns:
the chosen folder path

getTrackName

public java.lang.String getTrackName()
Returns:
the chosen track name

getTrackFormat

public int getTrackFormat()
Returns:
the chosen track format

commandAction

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