27 Ocak 2010 Çarşamba

url yi okuma

string gelenveri1 = Request.QueryString.Get

15 Ocak 2010 Cuma

HttpRequest 1

private void OnPostInfoClick(object sender, System.EventArgs e)
{
string strId = UserId_TextBox.Text;
string strName = Name_TextBox.Text;

ASCIIEncoding encoding=new ASCIIEncoding();
string postData="userid="+strId;
postData += ("&username="+strName);
byte[] data = encoding.GetBytes(postData);

// Prepare web request...
HttpWebRequest myRequest =
(HttpWebRequest)WebRequest.Create("http://localhost/MyIdentity/Default.aspx");
myRequest.Method = "POST";
myRequest.ContentType="application/x-www-form-urlencoded";
myRequest.ContentLength = data.Length;
Stream newStream=myRequest.GetRequestStream();
// Send the data.
newStream.Write(data,0,data.Length);
newStream.Close();
}

5 Ocak 2010 Salı

TrackerMIDlet

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package paket;

import java.rmi.RemoteException;
import java.util.Timer;
import java.util.TimerTask;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import org.netbeans.microedition.lcdui.SplashScreen;
import service1.Service1_Stub;

/**
* @author Fastman
*/
public class TrackerlMIDlet extends MIDlet implements CommandListener, ItemCommandListener {

private boolean midletPaused = false;

public double openCellLat;
public double openCellLng;

public int zoomLevel=12;
public double[] mapLatLon={0,0};

int counter;

//
public int getZoomLevel() {
return zoomLevel;
}

public void setZoomLevel(int zoomLevel) {

this.zoomLevel = zoomLevel;
}

public void zoomChange(int x){
if(this.zoomLevel+x<=18 && this.zoomLevel+x >=6){
this.zoomLevel=this.zoomLevel+x;
}
}

public double[] getMapLatLon() {
return mapLatLon;
}

public void setMapLatLon(double lat, double lon) {
this.mapLatLon[0]=lat;
this.mapLatLon[1]=lon;
}

public void setMapLatLon(double[] mapLatLon) {
this.mapLatLon = mapLatLon;
}

//


private long intervalWebServis=60000;
private String userID="0";
TimerTask taskWebService=new TimerTask() {

public void run() {
stringItem3.setText(getLocationFromOpenCellID());
sendDataToWebService();
}


};
Timer timer=new Timer();

service1.Service1_Stub servis=new Service1_Stub();

////GEN-BEGIN:|fields|0|
private java.util.Hashtable __previousDisplayables = new java.util.Hashtable();
private Form form;
private TextField textField;
private TextField textField1;
private StringItem stringItem;
private Form form1;
private TextField textField3;
private TextField textField2;
private StringItem stringItem1;
private Form form3;
private Spacer spacer;
private StringItem stringItem3;
private ImageItem imageItem;
private Form form2;
private ImageItem imageItem2;
private Form form4;
private Spacer spacer1;
private TextField textField5;
private TextField textField4;
private Form GeocodeForm;
private StringItem stringItem4;
private TextField textField6;
private Form staticMapForm;
private TextField textField7;
private ImageItem imageItem1;
private SplashScreen hakkimdaScreen;
private Form cbsForm;
private StringItem stringItem10;
private Form systemPropertiesForm;
private StringItem stringItem9;
private ImageItem imageItem3;
private StringItem stringItem5;
private Spacer spacer2;
private StringItem stringItem6;
private Spacer spacer3;
private StringItem stringItem7;
private Spacer spacer4;
private StringItem stringItem8;
private Spacer spacer5;
private SplashScreen helpScreen;
private Form serverForm;
private ImageItem imageItem4;
private TextField textField9;
private Spacer spacer7;
private TextField textField8;
private Spacer spacer6;
private Alert alert;
private Command okCommand;
private Command okCommand1;
private Command okCommand2;
private Command exitCommand;
private Command screenCommand1;
private Command screenCommand;
private Command screenCommand3;
private Command screenCommand2;
private Command screenCommand5;
private Command screenCommand4;
private Command screenCommand7;
private Command screenCommand6;
private Command backCommand;
private Command screenCommand9;
private Command screenCommand8;
private Command screenCommand10;
private Command backCommand2;
private Command screenCommand11;
private Command backCommand1;
private Command screenCommand15;
private Command screenCommand14;
private Command screenCommand13;
private Command screenCommand12;
private Command screenCommand18;
private Command screenCommand17;
private Command screenCommand16;
private Command screenCommand21;
private Command screenCommand20;
private Command screenCommand19;
private Command backCommand3;
private Command screenCommand22;
private Command backCommand5;
private Command backCommand4;
private Command backCommand6;
private Command screenCommand23;
private Command screenCommand25;
private Command backCommand7;
private Command screenCommand24;
private Command backCommand8;
private Ticker ticker;
private Image image1;
private Image image2;
private Font font;
private Image image3;
private Ticker ticker1;
private Image image4;
private Image image5;
private Ticker ticker2;
private Font font1;
private Ticker ticker3;
//
//GEN-END:|fields|0|

/**
* The TrackerlMIDlet constructor.
*/
public TrackerlMIDlet() {
}

//

public String getLocationFromOpenCellID(){

String result=null;
try{
// result=SystemData.calculateCoordinatesOnOpenCellID();
result=SystemData.getFromOpenCellIDDeneme();

if(result!=null || result!="no current cell"){
this.openCellLat=parseLatitude(result);
this.openCellLng=parseLongitude(result);
}

}
catch(Exception ex){
ex.printStackTrace();
}
return String.valueOf(this.openCellLat)+" | "+String.valueOf(this.openCellLng);
}

private double parseLatitude(String result) {

return Double.parseDouble(result.substring(result.indexOf("lat")+5, result.indexOf("lat")+10));

}

private double parseLongitude(String result) {

return Double.parseDouble(result.substring(result.indexOf("lon")+5, result.indexOf("lon")+10));

}

private void sendDataToWebService() {
try {
if(servis.setCoordinate(this.userID, this.openCellLat, this.openCellLng)){
this.counter++;
}
} catch (RemoteException ex) {
ex.printStackTrace();
}
}

//


////GEN-BEGIN:|methods|0|
/**
* Switches a display to previous displayable of the current displayable.
* The display instance is obtain from the getDisplay method.
*/
private void switchToPreviousDisplayable() {
Displayable __currentDisplayable = getDisplay().getCurrent();
if (__currentDisplayable != null) {
Displayable __nextDisplayable = (Displayable) __previousDisplayables.get(__currentDisplayable);
if (__nextDisplayable != null) {
switchDisplayable(null, __nextDisplayable);
}
}
}
//
//GEN-END:|methods|0|

////GEN-BEGIN:|0-initialize|0|0-preInitialize
/**
* Initilizes the application.
* It is called only once when the MIDlet is started. The method is called before the startMIDlet method.
*/
private void initialize() {//GEN-END:|0-initialize|0|0-preInitialize
// write pre-initialize user code here
alert = new Alert("Bilgi", "Mesaj\u0131n\u0131z ba\u015Far\u0131yla iletildi.", null, AlertType.INFO);//GEN-BEGIN:|0-initialize|1|0-postInitialize
alert.setTimeout(Alert.FOREVER);//GEN-END:|0-initialize|1|0-postInitialize
// write post-initialize user code here
}//GEN-BEGIN:|0-initialize|2|
//
//GEN-END:|0-initialize|2|

////GEN-BEGIN:|3-startMIDlet|0|3-preAction
/**
* Performs an action assigned to the Mobile Device - MIDlet Started point.
*/
public void startMIDlet() {//GEN-END:|3-startMIDlet|0|3-preAction
// write pre-action user code here
switchDisplayable(null, getForm2());//GEN-LINE:|3-startMIDlet|1|3-postAction
// write post-action user code here

// bekleme modu
long endTime=System.currentTimeMillis()+3000;

while(System.currentTimeMillis()
}


switchDisplayable(null, getForm3());

stringItem3.setText(getLocationFromOpenCellID());


}//GEN-BEGIN:|3-startMIDlet|2|
//
//GEN-END:|3-startMIDlet|2|

////GEN-BEGIN:|4-resumeMIDlet|0|4-preAction
/**
* Performs an action assigned to the Mobile Device - MIDlet Resumed point.
*/
public void resumeMIDlet() {//GEN-END:|4-resumeMIDlet|0|4-preAction
// write pre-action user code here
//GEN-LINE:|4-resumeMIDlet|1|4-postAction
// write post-action user code here
}//GEN-BEGIN:|4-resumeMIDlet|2|
//
//GEN-END:|4-resumeMIDlet|2|

////GEN-BEGIN:|5-switchDisplayable|0|5-preSwitch
/**
* Switches a current displayable in a display. The display instance is taken from getDisplay method. This method is used by all actions in the design for switching displayable.
* @param alert the Alert which is temporarily set to the display; if null, then nextDisplayable is set immediately
* @param nextDisplayable the Displayable to be set
*/
public void switchDisplayable(Alert alert, Displayable nextDisplayable) {//GEN-END:|5-switchDisplayable|0|5-preSwitch
// write pre-switch user code here
Display display = getDisplay();//GEN-BEGIN:|5-switchDisplayable|1|5-postSwitch
Displayable __currentDisplayable = display.getCurrent();
if (__currentDisplayable != null && nextDisplayable != null) {
__previousDisplayables.put(nextDisplayable, __currentDisplayable);
}
if (alert == null) {
display.setCurrent(nextDisplayable);
} else {
display.setCurrent(alert, nextDisplayable);
}//GEN-END:|5-switchDisplayable|1|5-postSwitch
// write post-switch user code here
}//GEN-BEGIN:|5-switchDisplayable|2|
//
//GEN-END:|5-switchDisplayable|2|

////GEN-BEGIN:|7-commandAction|0|7-preCommandAction
/**
* Called by a system to indicated that a command has been invoked on a particular displayable.
* @param command the Command that was invoked
* @param displayable the Displayable where the command was invoked
*/
public void commandAction(Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction
// write pre-action user code here
if (displayable == GeocodeForm) {//GEN-BEGIN:|7-commandAction|1|92-preAction
if (command == backCommand1) {//GEN-END:|7-commandAction|1|92-preAction
// write pre-action user code here
switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|2|92-postAction
// write post-action user code here
} else if (command == screenCommand10) {//GEN-LINE:|7-commandAction|3|83-preAction
// write pre-action user code here
final GoogleMapService gMap=new GoogleMapService();

//GEN-LINE:|7-commandAction|4|83-postAction
// write post-action user code here
Thread gmapThread=new Thread(){
public void run(){
try {
double[] lanLng = gMap.geocodeAddress(textField6.getString());
stringItem4.setText(String.valueOf(lanLng[0]+" | "+String.valueOf(lanLng[1])));

} catch (Exception ex) {
ex.printStackTrace();
}
}
};
gmapThread.start();
}//GEN-BEGIN:|7-commandAction|5|184-preAction
} else if (displayable == cbsForm) {
if (command == backCommand8) {//GEN-END:|7-commandAction|5|184-preAction
// write pre-action user code here
switchDisplayable(null, getForm3());//GEN-LINE:|7-commandAction|6|184-postAction
// write post-action user code here
} else if (command == screenCommand25) {//GEN-LINE:|7-commandAction|7|186-preAction
// write pre-action user code here
//GEN-LINE:|7-commandAction|8|186-postAction
// write post-action user code here
stringItem10.setText(String.valueOf(this.counter));
}//GEN-BEGIN:|7-commandAction|9|20-preAction
} else if (displayable == form) {
if (command == okCommand1) {//GEN-END:|7-commandAction|9|20-preAction
// write pre-action user code here
final String username=textField.getString();
final String password=textField1.getString();
//GEN-LINE:|7-commandAction|10|20-postAction
// write post-action user code here
Thread loginThread=new Thread(){
public void run(){
login(username,password);
}
};
loginThread.start();
// diger sayfaya gec

}//GEN-BEGIN:|7-commandAction|11|29-preAction
} else if (displayable == form1) {
if (command == okCommand2) {//GEN-END:|7-commandAction|11|29-preAction
// write pre-action user code here
final double latitude=Double.parseDouble(textField2.getString());//Double.valueOf(textField2.getString());
final double longitude=Double.parseDouble(textField3.getString());
//GEN-LINE:|7-commandAction|12|29-postAction
// write post-action user code here

Thread sendCoordinatesThread=new Thread(){
public void run()
{
sendCoordinates(userID,latitude,longitude);
}
};
sendCoordinatesThread.start();
}//GEN-BEGIN:|7-commandAction|13|41-preAction
} else if (displayable == form3) {
if (command == exitCommand) {//GEN-END:|7-commandAction|13|41-preAction
// write pre-action user code here
exitMIDlet();//GEN-LINE:|7-commandAction|14|41-postAction
// write post-action user code here
} else if (command == screenCommand) {//GEN-LINE:|7-commandAction|15|49-preAction
// write pre-action user code here
switchDisplayable(null, getServerForm());//GEN-LINE:|7-commandAction|16|49-postAction
// write post-action user code here
} else if (command == screenCommand1) {//GEN-LINE:|7-commandAction|17|51-preAction
// write pre-action user code here
switchDisplayable(null, getForm4());//GEN-LINE:|7-commandAction|18|51-postAction
// write post-action user code here
} else if (command == screenCommand2) {//GEN-LINE:|7-commandAction|19|53-preAction
// write pre-action user code here
switchDisplayable(null, getGeocodeForm());//GEN-LINE:|7-commandAction|20|53-postAction
// write post-action user code here
} else if (command == screenCommand3) {//GEN-LINE:|7-commandAction|21|55-preAction
// write pre-action user code here
switchDisplayable(null, getStaticMapForm());//GEN-LINE:|7-commandAction|22|55-postAction
// write post-action user code here
} else if (command == screenCommand4) {//GEN-LINE:|7-commandAction|23|57-preAction
// write pre-action user code here
switchDisplayable(null, getSystemPropertiesForm());//GEN-LINE:|7-commandAction|24|57-postAction
// write post-action user code here
} else if (command == screenCommand5) {//GEN-LINE:|7-commandAction|25|59-preAction
// write pre-action user code here
switchDisplayable(null, getCbsForm());//GEN-LINE:|7-commandAction|26|59-postAction
// write post-action user code here
} else if (command == screenCommand6) {//GEN-LINE:|7-commandAction|27|61-preAction
// write pre-action user code here
//GEN-LINE:|7-commandAction|28|61-postAction
// write post-action user code here
} else if (command == screenCommand7) {//GEN-LINE:|7-commandAction|29|63-preAction
// write pre-action user code here
switchDisplayable(null, getHelpScreen());//GEN-LINE:|7-commandAction|30|63-postAction
// write post-action user code here
} else if (command == screenCommand8) {//GEN-LINE:|7-commandAction|31|65-preAction
// write pre-action user code here
switchDisplayable(null, getHakkimdaScreen());//GEN-LINE:|7-commandAction|32|65-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|33|69-preAction
} else if (displayable == form4) {
if (command == backCommand) {//GEN-END:|7-commandAction|33|69-preAction
// write pre-action user code here
switchDisplayable(null, getForm3());//GEN-LINE:|7-commandAction|34|69-postAction
// write post-action user code here
} else if (command == screenCommand9) {//GEN-LINE:|7-commandAction|35|72-preAction
// write pre-action user code here
final String number=textField4.getString();
final String message=textField5.getString();
//GEN-LINE:|7-commandAction|36|72-postAction
// write post-action user code here
Thread smsThread=new Thread(){
String info="xx";
public void run(){
info= SMSService.sendSms(number,message)? "Mesajınız başarıyla iletildi":"Mesaj gönderimi başarısız";
switchDisplayable(getAlert(info), getForm4());
}
};

smsThread.start();
}//GEN-BEGIN:|7-commandAction|37|124-preAction
} else if (displayable == hakkimdaScreen) {
if (command == SplashScreen.DISMISS_COMMAND) {//GEN-END:|7-commandAction|37|124-preAction
// write pre-action user code here
//GEN-LINE:|7-commandAction|38|124-postAction
// write post-action user code here
} else if (command == backCommand3) {//GEN-LINE:|7-commandAction|39|127-preAction
// write pre-action user code here
switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|40|127-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|41|130-preAction
} else if (displayable == helpScreen) {
if (command == SplashScreen.DISMISS_COMMAND) {//GEN-END:|7-commandAction|41|130-preAction
// write pre-action user code here
//GEN-LINE:|7-commandAction|42|130-postAction
// write post-action user code here
} else if (command == backCommand5) {//GEN-LINE:|7-commandAction|43|138-preAction
// write pre-action user code here
switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|44|138-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|45|180-preAction
} else if (displayable == serverForm) {
if (command == backCommand7) {//GEN-END:|7-commandAction|45|180-preAction
// write pre-action user code here
switchDisplayable(null, getForm3());//GEN-LINE:|7-commandAction|46|180-postAction
// write post-action user code here
} else if (command == screenCommand24) {//GEN-LINE:|7-commandAction|47|178-preAction
// write pre-action user code here
final String username=textField8.getString();
final String password=textField9.getString();
//GEN-LINE:|7-commandAction|48|178-postAction
// write post-action user code here
Thread loginThread=new Thread(){
public void run(){
login(username, password);
}


};
loginThread.start();
}//GEN-BEGIN:|7-commandAction|49|95-preAction
} else if (displayable == staticMapForm) {
if (command == backCommand2) {//GEN-END:|7-commandAction|49|95-preAction
// write pre-action user code here
switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|50|95-postAction
// write post-action user code here
} else if (command == screenCommand11) {//GEN-LINE:|7-commandAction|51|90-preAction
// write pre-action user code here
final GoogleMapService gMap=new GoogleMapService();
//GEN-LINE:|7-commandAction|52|90-postAction
// write post-action user code here
Thread gmapThread=new Thread(){
public void run(){
try {
double[] lanLng = gMap.geocodeAddress(textField7.getString());
// stringItem4.setText(String.valueOf(lanLng[0]+" | "+String.valueOf(lanLng[1])));
imageItem1.setImage(gMap.retrieveStaticImage(320, 240, lanLng[0], lanLng[1], 12, "png32"));
setMapLatLon(lanLng);
setZoomLevel(12);
} catch (Exception ex) {
ex.printStackTrace();
}
}
};
gmapThread.start();
}//GEN-BEGIN:|7-commandAction|53|156-preAction
} else if (displayable == systemPropertiesForm) {
if (command == backCommand6) {//GEN-END:|7-commandAction|53|156-preAction
// write pre-action user code here
switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|54|156-postAction
// write post-action user code here
} else if (command == screenCommand23) {//GEN-LINE:|7-commandAction|55|159-preAction
// write pre-action user code here
stringItem5.setText(SystemData.getImei());
stringItem6.setText(SystemData.getMcc());
stringItem7.setText(SystemData.getMnc());
stringItem8.setText(SystemData.getLAC());
stringItem8.setText(SystemData.getCellId());
//GEN-LINE:|7-commandAction|56|159-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|57|7-postCommandAction
}//GEN-END:|7-commandAction|57|7-postCommandAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|58|
//
//GEN-END:|7-commandAction|58|


////GEN-BEGIN:|14-getter|0|14-preInit
/**
* Returns an initiliazed instance of form component.
* @return the initialized component instance
*/
public Form getForm() {
if (form == null) {//GEN-END:|14-getter|0|14-preInit
// write pre-init user code here
form = new Form("Giri\u015F", new Item[] { getTextField(), getTextField1(), getStringItem() });//GEN-BEGIN:|14-getter|1|14-postInit
form.addCommand(getOkCommand1());
form.setCommandListener(this);//GEN-END:|14-getter|1|14-postInit
// write post-init user code here
}//GEN-BEGIN:|14-getter|2|
return form;
}
//
//GEN-END:|14-getter|2|

////GEN-BEGIN:|17-getter|0|17-preInit
/**
* Returns an initiliazed instance of textField component.
* @return the initialized component instance
*/
public TextField getTextField() {
if (textField == null) {//GEN-END:|17-getter|0|17-preInit
// write pre-init user code here
textField = new TextField("Username :", null, 32, TextField.ANY);//GEN-BEGIN:|17-getter|1|17-postInit
textField.setLayout(ImageItem.LAYOUT_DEFAULT);
textField.setPreferredSize(-1, 10);//GEN-END:|17-getter|1|17-postInit
// write post-init user code here
}//GEN-BEGIN:|17-getter|2|
return textField;
}
//
//GEN-END:|17-getter|2|

////GEN-BEGIN:|18-getter|0|18-preInit
/**
* Returns an initiliazed instance of textField1 component.
* @return the initialized component instance
*/
public TextField getTextField1() {
if (textField1 == null) {//GEN-END:|18-getter|0|18-preInit
// write pre-init user code here
textField1 = new TextField("Password :", null, 32, TextField.ANY);//GEN-LINE:|18-getter|1|18-postInit
// write post-init user code here
}//GEN-BEGIN:|18-getter|2|
return textField1;
}
//
//GEN-END:|18-getter|2|

////GEN-BEGIN:|15-getter|0|15-preInit
/**
* Returns an initiliazed instance of okCommand component.
* @return the initialized component instance
*/
public Command getOkCommand() {
if (okCommand == null) {//GEN-END:|15-getter|0|15-preInit
// write pre-init user code here
okCommand = new Command("Ok", Command.OK, 0);//GEN-LINE:|15-getter|1|15-postInit
// write post-init user code here
}//GEN-BEGIN:|15-getter|2|
return okCommand;
}
//
//GEN-END:|15-getter|2|

////GEN-BEGIN:|19-getter|0|19-preInit
/**
* Returns an initiliazed instance of okCommand1 component.
* @return the initialized component instance
*/
public Command getOkCommand1() {
if (okCommand1 == null) {//GEN-END:|19-getter|0|19-preInit
// write pre-init user code here
okCommand1 = new Command("Ok", Command.OK, 0);//GEN-LINE:|19-getter|1|19-postInit
// write post-init user code here
}//GEN-BEGIN:|19-getter|2|
return okCommand1;
}
//
//GEN-END:|19-getter|2|

////GEN-BEGIN:|24-getter|0|24-preInit
/**
* Returns an initiliazed instance of stringItem component.
* @return the initialized component instance
*/
public StringItem getStringItem() {
if (stringItem == null) {//GEN-END:|24-getter|0|24-preInit
// write pre-init user code here
stringItem = new StringItem("User ID:", null);//GEN-LINE:|24-getter|1|24-postInit
// write post-init user code here
}//GEN-BEGIN:|24-getter|2|
return stringItem;
}
//
//GEN-END:|24-getter|2|

////GEN-BEGIN:|25-getter|0|25-preInit
/**
* Returns an initiliazed instance of form1 component.
* @return the initialized component instance
*/
public Form getForm1() {
if (form1 == null) {//GEN-END:|25-getter|0|25-preInit
// write pre-init user code here
form1 = new Form("Koordinat G\u00F6nder", new Item[] { getTextField2(), getTextField3(), getStringItem1() });//GEN-BEGIN:|25-getter|1|25-postInit
form1.addCommand(getOkCommand2());
form1.setCommandListener(this);//GEN-END:|25-getter|1|25-postInit
// write post-init user code here
}//GEN-BEGIN:|25-getter|2|
return form1;
}
//
//GEN-END:|25-getter|2|

////GEN-BEGIN:|26-getter|0|26-preInit
/**
* Returns an initiliazed instance of textField2 component.
* @return the initialized component instance
*/
public TextField getTextField2() {
if (textField2 == null) {//GEN-END:|26-getter|0|26-preInit
// write pre-init user code here
textField2 = new TextField("Enlem :", null, 32, TextField.ANY);//GEN-LINE:|26-getter|1|26-postInit
// write post-init user code here
}//GEN-BEGIN:|26-getter|2|
return textField2;
}
//
//GEN-END:|26-getter|2|

////GEN-BEGIN:|27-getter|0|27-preInit
/**
* Returns an initiliazed instance of textField3 component.
* @return the initialized component instance
*/
public TextField getTextField3() {
if (textField3 == null) {//GEN-END:|27-getter|0|27-preInit
// write pre-init user code here
textField3 = new TextField("Boylam :", null, 32, TextField.ANY);//GEN-LINE:|27-getter|1|27-postInit
// write post-init user code here
}//GEN-BEGIN:|27-getter|2|
return textField3;
}
//
//GEN-END:|27-getter|2|

////GEN-BEGIN:|28-getter|0|28-preInit
/**
* Returns an initiliazed instance of okCommand2 component.
* @return the initialized component instance
*/
public Command getOkCommand2() {
if (okCommand2 == null) {//GEN-END:|28-getter|0|28-preInit
// write pre-init user code here
okCommand2 = new Command("Ok", Command.OK, 0);//GEN-LINE:|28-getter|1|28-postInit
// write post-init user code here
}//GEN-BEGIN:|28-getter|2|
return okCommand2;
}
//
//GEN-END:|28-getter|2|

////GEN-BEGIN:|31-getter|0|31-preInit
/**
* Returns an initiliazed instance of stringItem1 component.
* @return the initialized component instance
*/
public StringItem getStringItem1() {
if (stringItem1 == null) {//GEN-END:|31-getter|0|31-preInit
// write pre-init user code here
stringItem1 = new StringItem("Result:", null);//GEN-LINE:|31-getter|1|31-postInit
// write post-init user code here
}//GEN-BEGIN:|31-getter|2|
return stringItem1;
}
//
//GEN-END:|31-getter|2|

////GEN-BEGIN:|32-getter|0|32-preInit
/**
* Returns an initiliazed instance of form2 component.
* @return the initialized component instance
*/
public Form getForm2() {
if (form2 == null) {//GEN-END:|32-getter|0|32-preInit
// write pre-init user code here
form2 = new Form("LogoForm", new Item[] { getImageItem2() });//GEN-LINE:|32-getter|1|32-postInit
// write post-init user code here
}//GEN-BEGIN:|32-getter|2|
return form2;
}
//
//GEN-END:|32-getter|2|

////GEN-BEGIN:|34-getter|0|34-preInit
/**
* Returns an initiliazed instance of form3 component.
* @return the initialized component instance
*/
public Form getForm3() {
if (form3 == null) {//GEN-END:|34-getter|0|34-preInit
// write pre-init user code here
form3 = new Form("mainForm", new Item[] { getImageItem(), getSpacer(), getStringItem3() });//GEN-BEGIN:|34-getter|1|34-postInit
form3.setTicker(getTicker());
form3.addCommand(getExitCommand());
form3.addCommand(getScreenCommand());
form3.addCommand(getScreenCommand1());
form3.addCommand(getScreenCommand2());
form3.addCommand(getScreenCommand3());
form3.addCommand(getScreenCommand4());
form3.addCommand(getScreenCommand5());
form3.addCommand(getScreenCommand6());
form3.addCommand(getScreenCommand7());
form3.addCommand(getScreenCommand8());
form3.setCommandListener(this);//GEN-END:|34-getter|1|34-postInit
// write post-init user code here


}//GEN-BEGIN:|34-getter|2|
return form3;
}
//
//GEN-END:|34-getter|2|





////GEN-BEGIN:|38-getter|0|38-preInit
/**
* Returns an initiliazed instance of spacer component.
* @return the initialized component instance
*/
public Spacer getSpacer() {
if (spacer == null) {//GEN-END:|38-getter|0|38-preInit
// write pre-init user code here
spacer = new Spacer(16, 6);//GEN-BEGIN:|38-getter|1|38-postInit
spacer.setLayout(ImageItem.LAYOUT_DEFAULT | Item.LAYOUT_2);//GEN-END:|38-getter|1|38-postInit
// write post-init user code here
}//GEN-BEGIN:|38-getter|2|
return spacer;
}
//
//GEN-END:|38-getter|2|

////GEN-BEGIN:|39-getter|0|39-preInit
/**
* Returns an initiliazed instance of stringItem3 component.
* @return the initialized component instance
*/
public StringItem getStringItem3() {
if (stringItem3 == null) {//GEN-END:|39-getter|0|39-preInit
// write pre-init user code here
stringItem3 = new StringItem("OpenCellID Koordinatlar\u0131 :", "29.0 | 40.0");//GEN-LINE:|39-getter|1|39-postInit
// write post-init user code here
}//GEN-BEGIN:|39-getter|2|
return stringItem3;
}
//
//GEN-END:|39-getter|2|

////GEN-BEGIN:|40-getter|0|40-preInit
/**
* Returns an initiliazed instance of exitCommand component.
* @return the initialized component instance
*/
public Command getExitCommand() {
if (exitCommand == null) {//GEN-END:|40-getter|0|40-preInit
// write pre-init user code here
exitCommand = new Command("Exit", Command.EXIT, 0);//GEN-LINE:|40-getter|1|40-postInit
// write post-init user code here
}//GEN-BEGIN:|40-getter|2|
return exitCommand;
}
//
//GEN-END:|40-getter|2|

////GEN-BEGIN:|35-getter|0|35-preInit
/**
* Returns an initiliazed instance of ticker component.
* @return the initialized component instance
*/
public Ticker getTicker() {
if (ticker == null) {//GEN-END:|35-getter|0|35-preInit
// write pre-init user code here
ticker = new Ticker("Global Tracking System");//GEN-LINE:|35-getter|1|35-postInit
// write post-init user code here
}//GEN-BEGIN:|35-getter|2|
return ticker;
}
//
//GEN-END:|35-getter|2|





////GEN-BEGIN:|46-getter|0|46-preInit
/**
* Returns an initiliazed instance of imageItem component.
* @return the initialized component instance
*/
public ImageItem getImageItem() {
if (imageItem == null) {//GEN-END:|46-getter|0|46-preInit
// write pre-init user code here
imageItem = new ImageItem("", getImage3(), ImageItem.LAYOUT_DEFAULT, "");//GEN-LINE:|46-getter|1|46-postInit
// write post-init user code here
}//GEN-BEGIN:|46-getter|2|
return imageItem;
}
//
//GEN-END:|46-getter|2|

////GEN-BEGIN:|47-getter|0|47-preInit
/**
* Returns an initiliazed instance of image1 component.
* @return the initialized component instance
*/
public Image getImage1() {
if (image1 == null) {//GEN-END:|47-getter|0|47-preInit
// write pre-init user code here
try {//GEN-BEGIN:|47-getter|1|47-@java.io.IOException
image1 = Image.createImage("/logominik2 - Kopya.png");
} catch (java.io.IOException e) {//GEN-END:|47-getter|1|47-@java.io.IOException
e.printStackTrace();
}//GEN-LINE:|47-getter|2|47-postInit
// write post-init user code here
}//GEN-BEGIN:|47-getter|3|
return image1;
}
//
//GEN-END:|47-getter|3|

////GEN-BEGIN:|48-getter|0|48-preInit
/**
* Returns an initiliazed instance of screenCommand component.
* @return the initialized component instance
*/
public Command getScreenCommand() {
if (screenCommand == null) {//GEN-END:|48-getter|0|48-preInit
// write pre-init user code here
screenCommand = new Command("Server\'a ba\u011Flan", Command.SCREEN, 0);//GEN-LINE:|48-getter|1|48-postInit
// write post-init user code here
}//GEN-BEGIN:|48-getter|2|
return screenCommand;
}
//
//GEN-END:|48-getter|2|

////GEN-BEGIN:|50-getter|0|50-preInit
/**
* Returns an initiliazed instance of screenCommand1 component.
* @return the initialized component instance
*/
public Command getScreenCommand1() {
if (screenCommand1 == null) {//GEN-END:|50-getter|0|50-preInit
// write pre-init user code here
screenCommand1 = new Command("SMS\'le g\u00F6nder", Command.SCREEN, 0);//GEN-LINE:|50-getter|1|50-postInit
// write post-init user code here
}//GEN-BEGIN:|50-getter|2|
return screenCommand1;
}
//
//GEN-END:|50-getter|2|

////GEN-BEGIN:|52-getter|0|52-preInit
/**
* Returns an initiliazed instance of screenCommand2 component.
* @return the initialized component instance
*/
public Command getScreenCommand2() {
if (screenCommand2 == null) {//GEN-END:|52-getter|0|52-preInit
// write pre-init user code here
screenCommand2 = new Command("Geocode", Command.SCREEN, 0);//GEN-LINE:|52-getter|1|52-postInit
// write post-init user code here
}//GEN-BEGIN:|52-getter|2|
return screenCommand2;
}
//
//GEN-END:|52-getter|2|

////GEN-BEGIN:|54-getter|0|54-preInit
/**
* Returns an initiliazed instance of screenCommand3 component.
* @return the initialized component instance
*/
public Command getScreenCommand3() {
if (screenCommand3 == null) {//GEN-END:|54-getter|0|54-preInit
// write pre-init user code here
screenCommand3 = new Command("Google Statics Map", Command.SCREEN, 0);//GEN-LINE:|54-getter|1|54-postInit
// write post-init user code here
}//GEN-BEGIN:|54-getter|2|
return screenCommand3;
}
//
//GEN-END:|54-getter|2|

////GEN-BEGIN:|56-getter|0|56-preInit
/**
* Returns an initiliazed instance of screenCommand4 component.
* @return the initialized component instance
*/
public Command getScreenCommand4() {
if (screenCommand4 == null) {//GEN-END:|56-getter|0|56-preInit
// write pre-init user code here
screenCommand4 = new Command("Sistem Verisi", Command.SCREEN, 0);//GEN-LINE:|56-getter|1|56-postInit
// write post-init user code here
}//GEN-BEGIN:|56-getter|2|
return screenCommand4;
}
//
//GEN-END:|56-getter|2|

////GEN-BEGIN:|58-getter|0|58-preInit
/**
* Returns an initiliazed instance of screenCommand5 component.
* @return the initialized component instance
*/
public Command getScreenCommand5() {
if (screenCommand5 == null) {//GEN-END:|58-getter|0|58-preInit
// write pre-init user code here
screenCommand5 = new Command("CBS verisi dinle", Command.SCREEN, 0);//GEN-LINE:|58-getter|1|58-postInit
// write post-init user code here
}//GEN-BEGIN:|58-getter|2|
return screenCommand5;
}
//
//GEN-END:|58-getter|2|

////GEN-BEGIN:|60-getter|0|60-preInit
/**
* Returns an initiliazed instance of screenCommand6 component.
* @return the initialized component instance
*/
public Command getScreenCommand6() {
if (screenCommand6 == null) {//GEN-END:|60-getter|0|60-preInit
// write pre-init user code here
screenCommand6 = new Command("Ayarlar", Command.SCREEN, 0);//GEN-LINE:|60-getter|1|60-postInit
// write post-init user code here
}//GEN-BEGIN:|60-getter|2|
return screenCommand6;
}
//
//GEN-END:|60-getter|2|

////GEN-BEGIN:|62-getter|0|62-preInit
/**
* Returns an initiliazed instance of screenCommand7 component.
* @return the initialized component instance
*/
public Command getScreenCommand7() {
if (screenCommand7 == null) {//GEN-END:|62-getter|0|62-preInit
// write pre-init user code here
screenCommand7 = new Command("Yard\u0131m", Command.SCREEN, 0);//GEN-LINE:|62-getter|1|62-postInit
// write post-init user code here
}//GEN-BEGIN:|62-getter|2|
return screenCommand7;
}
//
//GEN-END:|62-getter|2|

////GEN-BEGIN:|64-getter|0|64-preInit
/**
* Returns an initiliazed instance of screenCommand8 component.
* @return the initialized component instance
*/
public Command getScreenCommand8() {
if (screenCommand8 == null) {//GEN-END:|64-getter|0|64-preInit
// write pre-init user code here
screenCommand8 = new Command("Hakk\u0131mda", Command.SCREEN, 0);//GEN-LINE:|64-getter|1|64-postInit
// write post-init user code here
}//GEN-BEGIN:|64-getter|2|
return screenCommand8;
}
//
//GEN-END:|64-getter|2|

////GEN-BEGIN:|66-getter|0|66-preInit
/**
* Returns an initiliazed instance of form4 component.
* @return the initialized component instance
*/
public Form getForm4() {
if (form4 == null) {//GEN-END:|66-getter|0|66-preInit
// write pre-init user code here
form4 = new Form("form4", new Item[] { getTextField4(), getSpacer1(), getTextField5() });//GEN-BEGIN:|66-getter|1|66-postInit
form4.addCommand(getBackCommand());
form4.addCommand(getScreenCommand9());
form4.setCommandListener(this);//GEN-END:|66-getter|1|66-postInit
// write post-init user code here
}//GEN-BEGIN:|66-getter|2|
return form4;
}
//
//GEN-END:|66-getter|2|

////GEN-BEGIN:|73-getter|0|73-preInit
/**
* Returns an initiliazed instance of textField4 component.
* @return the initialized component instance
*/
public TextField getTextField4() {
if (textField4 == null) {//GEN-END:|73-getter|0|73-preInit
// write pre-init user code here
textField4 = new TextField("Numara :", "", 32, TextField.PHONENUMBER);//GEN-LINE:|73-getter|1|73-postInit
// write post-init user code here
}//GEN-BEGIN:|73-getter|2|
return textField4;
}
//
//GEN-END:|73-getter|2|



////GEN-BEGIN:|68-getter|0|68-preInit
/**
* Returns an initiliazed instance of backCommand component.
* @return the initialized component instance
*/
public Command getBackCommand() {
if (backCommand == null) {//GEN-END:|68-getter|0|68-preInit
// write pre-init user code here
backCommand = new Command("Geri", Command.BACK, 0);//GEN-LINE:|68-getter|1|68-postInit
// write post-init user code here
}//GEN-BEGIN:|68-getter|2|
return backCommand;
}
//
//GEN-END:|68-getter|2|

////GEN-BEGIN:|71-getter|0|71-preInit
/**
* Returns an initiliazed instance of screenCommand9 component.
* @return the initialized component instance
*/
public Command getScreenCommand9() {
if (screenCommand9 == null) {//GEN-END:|71-getter|0|71-preInit
// write pre-init user code here
screenCommand9 = new Command("Send", Command.SCREEN, 0);//GEN-LINE:|71-getter|1|71-postInit
// write post-init user code here
}//GEN-BEGIN:|71-getter|2|
return screenCommand9;
}
//
//GEN-END:|71-getter|2|

////GEN-BEGIN:|76-getter|0|76-preInit
/**
* Returns an initiliazed instance of spacer1 component.
* @return the initialized component instance
*/
public Spacer getSpacer1() {
if (spacer1 == null) {//GEN-END:|76-getter|0|76-preInit
// write pre-init user code here
spacer1 = new Spacer(16, 10);//GEN-LINE:|76-getter|1|76-postInit
// write post-init user code here
}//GEN-BEGIN:|76-getter|2|
return spacer1;
}
//
//GEN-END:|76-getter|2|

////GEN-BEGIN:|77-getter|0|77-preInit
/**
* Returns an initiliazed instance of textField5 component.
* @return the initialized component instance
*/
public TextField getTextField5() {
if (textField5 == null) {//GEN-END:|77-getter|0|77-preInit
// write pre-init user code here

textField5 = new TextField("Mesaj :", stringItem3.getLabel()+" "+stringItem3.getText(), 160, TextField.ANY);//GEN-BEGIN:|77-getter|1|77-postInit
textField5.setPreferredSize(-1, 160);//GEN-END:|77-getter|1|77-postInit
// write post-init user code here
}//GEN-BEGIN:|77-getter|2|
return textField5;
}
//
//GEN-END:|77-getter|2|

////GEN-BEGIN:|78-getter|0|78-preInit
/**
* Returns an initiliazed instance of GeocodeForm component.
* @return the initialized component instance
*/
public Form getGeocodeForm() {
if (GeocodeForm == null) {//GEN-END:|78-getter|0|78-preInit
// write pre-init user code here
GeocodeForm = new Form("GeoCode", new Item[] { getTextField6(), getStringItem4() });//GEN-BEGIN:|78-getter|1|78-postInit
GeocodeForm.addCommand(getScreenCommand10());
GeocodeForm.addCommand(getBackCommand1());
GeocodeForm.setCommandListener(this);//GEN-END:|78-getter|1|78-postInit
// write post-init user code here
}//GEN-BEGIN:|78-getter|2|
return GeocodeForm;
}
//
//GEN-END:|78-getter|2|

////GEN-BEGIN:|80-getter|0|80-preInit
/**
* Returns an initiliazed instance of textField6 component.
* @return the initialized component instance
*/
public TextField getTextField6() {
if (textField6 == null) {//GEN-END:|80-getter|0|80-preInit
// write pre-init user code here
textField6 = new TextField("Adresinizi girin :", null, 50, TextField.ANY);//GEN-BEGIN:|80-getter|1|80-postInit
textField6.setPreferredSize(-1, 100);//GEN-END:|80-getter|1|80-postInit
// write post-init user code here
}//GEN-BEGIN:|80-getter|2|
return textField6;
}
//
//GEN-END:|80-getter|2|

////GEN-BEGIN:|81-getter|0|81-preInit
/**
* Returns an initiliazed instance of stringItem4 component.
* @return the initialized component instance
*/
public StringItem getStringItem4() {
if (stringItem4 == null) {//GEN-END:|81-getter|0|81-preInit
// write pre-init user code here
stringItem4 = new StringItem("Google Koordinatlar :", null);//GEN-LINE:|81-getter|1|81-postInit
// write post-init user code here
}//GEN-BEGIN:|81-getter|2|
return stringItem4;
}
//
//GEN-END:|81-getter|2|

////GEN-BEGIN:|82-getter|0|82-preInit
/**
* Returns an initiliazed instance of screenCommand10 component.
* @return the initialized component instance
*/
public Command getScreenCommand10() {
if (screenCommand10 == null) {//GEN-END:|82-getter|0|82-preInit
// write pre-init user code here
screenCommand10 = new Command("G\u00F6nder", Command.SCREEN, 0);//GEN-LINE:|82-getter|1|82-postInit
// write post-init user code here
}//GEN-BEGIN:|82-getter|2|
return screenCommand10;
}
//
//GEN-END:|82-getter|2|



////GEN-BEGIN:|85-getter|0|85-preInit
/**
* Returns an initiliazed instance of staticMapForm component.
* @return the initialized component instance
*/
public Form getStaticMapForm() {
if (staticMapForm == null) {//GEN-END:|85-getter|0|85-preInit
// write pre-init user code here
staticMapForm = new Form("form5", new Item[] { getTextField7(), getImageItem1() });//GEN-BEGIN:|85-getter|1|85-postInit
staticMapForm.addCommand(getScreenCommand11());
staticMapForm.addCommand(getBackCommand2());
staticMapForm.setCommandListener(this);//GEN-END:|85-getter|1|85-postInit
// write post-init user code here
}//GEN-BEGIN:|85-getter|2|
return staticMapForm;
}
//
//GEN-END:|85-getter|2|

////GEN-BEGIN:|87-getter|0|87-preInit
/**
* Returns an initiliazed instance of textField7 component.
* @return the initialized component instance
*/
public TextField getTextField7() {
if (textField7 == null) {//GEN-END:|87-getter|0|87-preInit
// write pre-init user code here
textField7 = new TextField("Adres girin :", null, 100, TextField.ANY);//GEN-BEGIN:|87-getter|1|87-postInit
textField7.setPreferredSize(-1, 50);//GEN-END:|87-getter|1|87-postInit
// write post-init user code here
}//GEN-BEGIN:|87-getter|2|
return textField7;
}
//
//GEN-END:|87-getter|2|



////GEN-BEGIN:|89-getter|0|89-preInit
/**
* Returns an initiliazed instance of screenCommand11 component.
* @return the initialized component instance
*/
public Command getScreenCommand11() {
if (screenCommand11 == null) {//GEN-END:|89-getter|0|89-preInit
// write pre-init user code here
screenCommand11 = new Command("Haritay\u0131 g\u00F6ster", Command.SCREEN, 0);//GEN-LINE:|89-getter|1|89-postInit
// write post-init user code here
}//GEN-BEGIN:|89-getter|2|
return screenCommand11;
}
//
//GEN-END:|89-getter|2|

////GEN-BEGIN:|91-getter|0|91-preInit
/**
* Returns an initiliazed instance of backCommand1 component.
* @return the initialized component instance
*/
public Command getBackCommand1() {
if (backCommand1 == null) {//GEN-END:|91-getter|0|91-preInit
// write pre-init user code here
backCommand1 = new Command("Geri", Command.BACK, 0);//GEN-LINE:|91-getter|1|91-postInit
// write post-init user code here
}//GEN-BEGIN:|91-getter|2|
return backCommand1;
}
//
//GEN-END:|91-getter|2|

////GEN-BEGIN:|94-getter|0|94-preInit
/**
* Returns an initiliazed instance of backCommand2 component.
* @return the initialized component instance
*/
public Command getBackCommand2() {
if (backCommand2 == null) {//GEN-END:|94-getter|0|94-preInit
// write pre-init user code here
backCommand2 = new Command("Geri", Command.BACK, 0);//GEN-LINE:|94-getter|1|94-postInit
// write post-init user code here
}//GEN-BEGIN:|94-getter|2|
return backCommand2;
}
//
//GEN-END:|94-getter|2|

////GEN-BEGIN:|97-getter|0|97-preInit
/**
* Returns an initiliazed instance of screenCommand12 component.
* @return the initialized component instance
*/
public Command getScreenCommand12() {
if (screenCommand12 == null) {//GEN-END:|97-getter|0|97-preInit
// write pre-init user code here
screenCommand12 = new Command("Zoom 16x", Command.SCREEN, 0);//GEN-LINE:|97-getter|1|97-postInit
// write post-init user code here
}//GEN-BEGIN:|97-getter|2|
return screenCommand12;
}
//
//GEN-END:|97-getter|2|

////GEN-BEGIN:|99-getter|0|99-preInit
/**
* Returns an initiliazed instance of screenCommand13 component.
* @return the initialized component instance
*/
public Command getScreenCommand13() {
if (screenCommand13 == null) {//GEN-END:|99-getter|0|99-preInit
// write pre-init user code here
screenCommand13 = new Command("Zoom 12x", Command.SCREEN, 0);//GEN-LINE:|99-getter|1|99-postInit
// write post-init user code here
}//GEN-BEGIN:|99-getter|2|
return screenCommand13;
}
//
//GEN-END:|99-getter|2|

////GEN-BEGIN:|101-getter|0|101-preInit
/**
* Returns an initiliazed instance of screenCommand14 component.
* @return the initialized component instance
*/
public Command getScreenCommand14() {
if (screenCommand14 == null) {//GEN-END:|101-getter|0|101-preInit
// write pre-init user code here
screenCommand14 = new Command("Zoom 8x", Command.SCREEN, 0);//GEN-LINE:|101-getter|1|101-postInit
// write post-init user code here
}//GEN-BEGIN:|101-getter|2|
return screenCommand14;
}
//
//GEN-END:|101-getter|2|



////GEN-BEGIN:|103-getter|0|103-preInit
/**
* Returns an initiliazed instance of screenCommand15 component.
* @return the initialized component instance
*/
public Command getScreenCommand15() {
if (screenCommand15 == null) {//GEN-END:|103-getter|0|103-preInit
// write pre-init user code here
screenCommand15 = new Command("harita komutu", Command.SCREEN, 0);//GEN-LINE:|103-getter|1|103-postInit
// write post-init user code here
}//GEN-BEGIN:|103-getter|2|
return screenCommand15;
}
//
//GEN-END:|103-getter|2|

////GEN-BEGIN:|105-getter|0|105-preInit
/**
* Returns an initiliazed instance of imageItem1 component.
* @return the initialized component instance
*/
public ImageItem getImageItem1() {
if (imageItem1 == null) {//GEN-END:|105-getter|0|105-preInit
// write pre-init user code here
imageItem1 = new ImageItem("Harita :", null, ImageItem.LAYOUT_DEFAULT, "Harita g\u00F6r\u00FCnt\u00FClenemiyor. Tekrar deneyin.");//GEN-BEGIN:|105-getter|1|105-postInit
imageItem1.addCommand(getScreenCommand16());
imageItem1.addCommand(getScreenCommand18());
imageItem1.addCommand(getScreenCommand19());
imageItem1.addCommand(getScreenCommand20());
imageItem1.addCommand(getScreenCommand21());
imageItem1.addCommand(getScreenCommand22());
imageItem1.setItemCommandListener(this);//GEN-END:|105-getter|1|105-postInit
// write post-init user code here
}//GEN-BEGIN:|105-getter|2|
return imageItem1;
}
//
//GEN-END:|105-getter|2|

////GEN-BEGIN:|8-itemCommandAction|0|8-preItemCommandAction
/**
* Called by a system to indicated that a command has been invoked on a particular item.
* @param command the Command that was invoked
* @param displayable the Item where the command was invoked
*/
public void commandAction(Command command, Item item) {//GEN-END:|8-itemCommandAction|0|8-preItemCommandAction
// write pre-action user code here
if (item == imageItem1) {//GEN-BEGIN:|8-itemCommandAction|1|107-preAction
if (command == screenCommand16) {//GEN-END:|8-itemCommandAction|1|107-preAction
// write pre-action user code here
final GoogleMapService gMap=new GoogleMapService();
//GEN-LINE:|8-itemCommandAction|2|107-postAction
// write post-action user code
Thread gmapThread=new Thread(){
public void run(){
try {
zoomChange(2);
//double[] lanLng = gMap.geocodeAddress(textField7.getString());
// stringItem4.setText(String.valueOf(lanLng[0]+" | "+String.valueOf(lanLng[1])));
imageItem1.setImage(gMap.retrieveStaticImage(320, 240, getMapLatLon()[0], getMapLatLon()[1], getZoomLevel(), "png32"));
} catch (Exception ex) {
ex.printStackTrace();
}
}
};
gmapThread.start();
} else if (command == screenCommand18) {//GEN-LINE:|8-itemCommandAction|3|111-preAction
// write pre-action user code here
final GoogleMapService gMap=new GoogleMapService();
//GEN-LINE:|8-itemCommandAction|4|111-postAction
// write post-action user code here
Thread gmapThread=new Thread(){
public void run(){
try {
zoomChange(-2);
//double[] lanLng = gMap.geocodeAddress(textField7.getString());
// stringItem4.setText(String.valueOf(lanLng[0]+" | "+String.valueOf(lanLng[1])));
imageItem1.setImage(gMap.retrieveStaticImage(320, 240, getMapLatLon()[0], getMapLatLon()[1], getZoomLevel(), "png32"));
} catch (Exception ex) {
ex.printStackTrace();
}
}
};
gmapThread.start();

} else if (command == screenCommand19) {//GEN-LINE:|8-itemCommandAction|5|113-preAction
// write pre-action user code here
final GoogleMapService gMap=new GoogleMapService();
//GEN-LINE:|8-itemCommandAction|6|113-postAction
// write post-action user code here
Thread gmapThread=new Thread(){
public void run(){
try {
setMapLatLon(getMapLatLon()[0]+0.1, getMapLatLon()[1]);
imageItem1.setImage(gMap.retrieveStaticImage(320, 240, getMapLatLon()[0], getMapLatLon()[1], getZoomLevel(), "png32"));

} catch (Exception ex) {
ex.printStackTrace();
}
}
};
gmapThread.start();
} else if (command == screenCommand20) {//GEN-LINE:|8-itemCommandAction|7|115-preAction
// write pre-action user code here
final GoogleMapService gMap=new GoogleMapService();
//GEN-LINE:|8-itemCommandAction|8|115-postAction
// write post-action user code here
Thread gmapThread=new Thread(){
public void run(){
try {
setMapLatLon(getMapLatLon()[0], getMapLatLon()[1]-0.1);
imageItem1.setImage(gMap.retrieveStaticImage(320, 240, getMapLatLon()[0], getMapLatLon()[1], getZoomLevel(), "png32"));
} catch (Exception ex) {
ex.printStackTrace();
}
}
};
gmapThread.start();
} else if (command == screenCommand21) {//GEN-LINE:|8-itemCommandAction|9|117-preAction
// write pre-action user code here
final GoogleMapService gMap=new GoogleMapService();
//GEN-LINE:|8-itemCommandAction|10|117-postAction
// write post-action user code here
Thread gmapThread=new Thread(){
public void run(){
try {

setMapLatLon(getMapLatLon()[0], getMapLatLon()[1]+0.1);
imageItem1.setImage(gMap.retrieveStaticImage(320, 240, getMapLatLon()[0], getMapLatLon()[1], getZoomLevel(), "png32"));
} catch (Exception ex) {
ex.printStackTrace();
}
}
};
gmapThread.start();
} else if (command == screenCommand22) {//GEN-LINE:|8-itemCommandAction|11|121-preAction
// write pre-action user code here
final GoogleMapService gMap=new GoogleMapService();
//GEN-LINE:|8-itemCommandAction|12|121-postAction
// write post-action user code here

Thread gmapThread=new Thread(){
public void run(){
try {
setMapLatLon(getMapLatLon()[0]-0.1, getMapLatLon()[1]);
imageItem1.setImage(gMap.retrieveStaticImage(320, 240, getMapLatLon()[0], getMapLatLon()[1], getZoomLevel(), "png32"));

} catch (Exception ex) {
ex.printStackTrace();
}
}
};
gmapThread.start();

}//GEN-BEGIN:|8-itemCommandAction|13|8-postItemCommandAction
}//GEN-END:|8-itemCommandAction|13|8-postItemCommandAction
// write post-action user code here
}//GEN-BEGIN:|8-itemCommandAction|14|
//
//GEN-END:|8-itemCommandAction|14|

////GEN-BEGIN:|106-getter|0|106-preInit
/**
* Returns an initiliazed instance of screenCommand16 component.
* @return the initialized component instance
*/
public Command getScreenCommand16() {
if (screenCommand16 == null) {//GEN-END:|106-getter|0|106-preInit
// write pre-init user code here
screenCommand16 = new Command("Zoom +", Command.SCREEN, 0);//GEN-LINE:|106-getter|1|106-postInit
// write post-init user code here
}//GEN-BEGIN:|106-getter|2|
return screenCommand16;
}
//
//GEN-END:|106-getter|2|

////GEN-BEGIN:|108-getter|0|108-preInit
/**
* Returns an initiliazed instance of screenCommand17 component.
* @return the initialized component instance
*/
public Command getScreenCommand17() {
if (screenCommand17 == null) {//GEN-END:|108-getter|0|108-preInit
// write pre-init user code here
screenCommand17 = new Command("Screen", Command.SCREEN, 0);//GEN-LINE:|108-getter|1|108-postInit
// write post-init user code here
}//GEN-BEGIN:|108-getter|2|
return screenCommand17;
}
//
//GEN-END:|108-getter|2|

////GEN-BEGIN:|110-getter|0|110-preInit
/**
* Returns an initiliazed instance of screenCommand18 component.
* @return the initialized component instance
*/
public Command getScreenCommand18() {
if (screenCommand18 == null) {//GEN-END:|110-getter|0|110-preInit
// write pre-init user code here
screenCommand18 = new Command("Zoom -", Command.SCREEN, 0);//GEN-LINE:|110-getter|1|110-postInit
// write post-init user code here
}//GEN-BEGIN:|110-getter|2|
return screenCommand18;
}
//
//GEN-END:|110-getter|2|

////GEN-BEGIN:|112-getter|0|112-preInit
/**
* Returns an initiliazed instance of screenCommand19 component.
* @return the initialized component instance
*/
public Command getScreenCommand19() {
if (screenCommand19 == null) {//GEN-END:|112-getter|0|112-preInit
// write pre-init user code here
screenCommand19 = new Command("Kuzeye kay ^", Command.SCREEN, 0);//GEN-LINE:|112-getter|1|112-postInit
// write post-init user code here
}//GEN-BEGIN:|112-getter|2|
return screenCommand19;
}
//
//GEN-END:|112-getter|2|

////GEN-BEGIN:|114-getter|0|114-preInit
/**
* Returns an initiliazed instance of screenCommand20 component.
* @return the initialized component instance
*/
public Command getScreenCommand20() {
if (screenCommand20 == null) {//GEN-END:|114-getter|0|114-preInit
// write pre-init user code here
screenCommand20 = new Command("Bat\u0131ya kay <==", Command.SCREEN, 0);//GEN-LINE:|114-getter|1|114-postInit
// write post-init user code here
}//GEN-BEGIN:|114-getter|2|
return screenCommand20;
}
//
//GEN-END:|114-getter|2|

////GEN-BEGIN:|116-getter|0|116-preInit
/**
* Returns an initiliazed instance of screenCommand21 component.
* @return the initialized component instance
*/
public Command getScreenCommand21() {
if (screenCommand21 == null) {//GEN-END:|116-getter|0|116-preInit
// write pre-init user code here
screenCommand21 = new Command("Do\u011Fuya kay ==>", Command.SCREEN, 0);//GEN-LINE:|116-getter|1|116-postInit
// write post-init user code here
}//GEN-BEGIN:|116-getter|2|
return screenCommand21;
}
//
//GEN-END:|116-getter|2|

////GEN-BEGIN:|118-getter|0|118-preInit
/**
* Returns an initiliazed instance of imageItem2 component.
* @return the initialized component instance
*/
public ImageItem getImageItem2() {
if (imageItem2 == null) {//GEN-END:|118-getter|0|118-preInit
// write pre-init user code here
imageItem2 = new ImageItem("", getImage3(), ImageItem.LAYOUT_CENTER | Item.LAYOUT_TOP | Item.LAYOUT_BOTTOM | Item.LAYOUT_VCENTER, "");//GEN-LINE:|118-getter|1|118-postInit
// write post-init user code here
}//GEN-BEGIN:|118-getter|2|
return imageItem2;
}
//
//GEN-END:|118-getter|2|

////GEN-BEGIN:|119-getter|0|119-preInit
/**
* Returns an initiliazed instance of image2 component.
* @return the initialized component instance
*/
public Image getImage2() {
if (image2 == null) {//GEN-END:|119-getter|0|119-preInit
// write pre-init user code here
try {//GEN-BEGIN:|119-getter|1|119-@java.io.IOException
image2 = Image.createImage("/gts.png");
} catch (java.io.IOException e) {//GEN-END:|119-getter|1|119-@java.io.IOException
e.printStackTrace();
}//GEN-LINE:|119-getter|2|119-postInit
// write post-init user code here
}//GEN-BEGIN:|119-getter|3|
return image2;
}
//
//GEN-END:|119-getter|3|

////GEN-BEGIN:|120-getter|0|120-preInit
/**
* Returns an initiliazed instance of screenCommand22 component.
* @return the initialized component instance
*/
public Command getScreenCommand22() {
if (screenCommand22 == null) {//GEN-END:|120-getter|0|120-preInit
// write pre-init user code here
screenCommand22 = new Command("G\u00FCneye kay v", Command.SCREEN, 0);//GEN-LINE:|120-getter|1|120-postInit
// write post-init user code here
}//GEN-BEGIN:|120-getter|2|
return screenCommand22;
}
//
//GEN-END:|120-getter|2|

////GEN-BEGIN:|122-getter|0|122-preInit
/**
* Returns an initiliazed instance of hakkimdaScreen component.
* @return the initialized component instance
*/
public SplashScreen getHakkimdaScreen() {
if (hakkimdaScreen == null) {//GEN-END:|122-getter|0|122-preInit
// write pre-init user code here
hakkimdaScreen = new SplashScreen(getDisplay());//GEN-BEGIN:|122-getter|1|122-postInit
hakkimdaScreen.setTitle("Ben Kimim?");
hakkimdaScreen.setTicker(getTicker1());
hakkimdaScreen.addCommand(getBackCommand3());
hakkimdaScreen.setCommandListener(this);
hakkimdaScreen.setImage(getImage5());
hakkimdaScreen.setText("Burhan ARAS");
hakkimdaScreen.setTextFont(getFont());//GEN-END:|122-getter|1|122-postInit
// write post-init user code here
}//GEN-BEGIN:|122-getter|2|
return hakkimdaScreen;
}
//
//GEN-END:|122-getter|2|

////GEN-BEGIN:|129-getter|0|129-preInit
/**
* Returns an initiliazed instance of helpScreen component.
* @return the initialized component instance
*/
public SplashScreen getHelpScreen() {
if (helpScreen == null) {//GEN-END:|129-getter|0|129-preInit
// write pre-init user code here
helpScreen = new SplashScreen(getDisplay());//GEN-BEGIN:|129-getter|1|129-postInit
helpScreen.setTitle("GTS");
helpScreen.setTicker(getTicker2());
helpScreen.addCommand(getBackCommand5());
helpScreen.setCommandListener(this);
helpScreen.setImage(getImage3());
helpScreen.setText("www.gts.burhanaras.com");
helpScreen.setTextFont(getFont());
helpScreen.setTimeout(5000);//GEN-END:|129-getter|1|129-postInit
// write post-init user code here
}//GEN-BEGIN:|129-getter|2|
return helpScreen;
}
//
//GEN-END:|129-getter|2|

////GEN-BEGIN:|126-getter|0|126-preInit
/**
* Returns an initiliazed instance of backCommand3 component.
* @return the initialized component instance
*/
public Command getBackCommand3() {
if (backCommand3 == null) {//GEN-END:|126-getter|0|126-preInit
// write pre-init user code here
backCommand3 = new Command("Geri", Command.BACK, 0);//GEN-LINE:|126-getter|1|126-postInit
// write post-init user code here
}//GEN-BEGIN:|126-getter|2|
return backCommand3;
}
//
//GEN-END:|126-getter|2|

////GEN-BEGIN:|132-getter|0|132-preInit
/**
* Returns an initiliazed instance of image3 component.
* @return the initialized component instance
*/
public Image getImage3() {
if (image3 == null) {//GEN-END:|132-getter|0|132-preInit
// write pre-init user code here
try {//GEN-BEGIN:|132-getter|1|132-@java.io.IOException
image3 = Image.createImage("/gts2.png");
} catch (java.io.IOException e) {//GEN-END:|132-getter|1|132-@java.io.IOException
e.printStackTrace();
}//GEN-LINE:|132-getter|2|132-postInit
// write post-init user code here
}//GEN-BEGIN:|132-getter|3|
return image3;
}
//
//GEN-END:|132-getter|3|

////GEN-BEGIN:|135-getter|0|135-preInit
/**
* Returns an initiliazed instance of backCommand4 component.
* @return the initialized component instance
*/
public Command getBackCommand4() {
if (backCommand4 == null) {//GEN-END:|135-getter|0|135-preInit
// write pre-init user code here
backCommand4 = new Command("Back", Command.BACK, 0);//GEN-LINE:|135-getter|1|135-postInit
// write post-init user code here
}//GEN-BEGIN:|135-getter|2|
return backCommand4;
}
//
//GEN-END:|135-getter|2|

////GEN-BEGIN:|137-getter|0|137-preInit
/**
* Returns an initiliazed instance of backCommand5 component.
* @return the initialized component instance
*/
public Command getBackCommand5() {
if (backCommand5 == null) {//GEN-END:|137-getter|0|137-preInit
// write pre-init user code here
backCommand5 = new Command("Geri", Command.BACK, 0);//GEN-LINE:|137-getter|1|137-postInit
// write post-init user code here
}//GEN-BEGIN:|137-getter|2|
return backCommand5;
}
//
//GEN-END:|137-getter|2|

////GEN-BEGIN:|133-getter|0|133-preInit
/**
* Returns an initiliazed instance of font component.
* @return the initialized component instance
*/
public Font getFont() {
if (font == null) {//GEN-END:|133-getter|0|133-preInit
// write pre-init user code here
font = Font.getFont(Font.FACE_MONOSPACE, Font.STYLE_BOLD | Font.STYLE_UNDERLINED, Font.SIZE_LARGE);//GEN-LINE:|133-getter|1|133-postInit
// write post-init user code here
}//GEN-BEGIN:|133-getter|2|
return font;
}
//
//GEN-END:|133-getter|2|

////GEN-BEGIN:|134-getter|0|134-preInit
/**
* Returns an initiliazed instance of ticker1 component.
* @return the initialized component instance
*/
public Ticker getTicker1() {
if (ticker1 == null) {//GEN-END:|134-getter|0|134-preInit
// write pre-init user code here
ticker1 = new Ticker("Burhan ARAS \u0130stanbul \u00DCniversitesi - Bilgisayar M\u00FChendisli\u011Fi Departman");//GEN-LINE:|134-getter|1|134-postInit
// write post-init user code here
}//GEN-BEGIN:|134-getter|2|
return ticker1;
}
//
//GEN-END:|134-getter|2|

////GEN-BEGIN:|140-getter|0|140-preInit
/**
* Returns an initiliazed instance of cbsForm component.
* @return the initialized component instance
*/
public Form getCbsForm() {
if (cbsForm == null) {//GEN-END:|140-getter|0|140-preInit
// write pre-init user code here
cbsForm = new Form("form5", new Item[] { getStringItem10() });//GEN-BEGIN:|140-getter|1|140-postInit
cbsForm.addCommand(getBackCommand8());
cbsForm.addCommand(getScreenCommand25());
cbsForm.setCommandListener(this);//GEN-END:|140-getter|1|140-postInit
// write post-init user code here
}//GEN-BEGIN:|140-getter|2|
return cbsForm;
}
//
//GEN-END:|140-getter|2|

////GEN-BEGIN:|142-getter|0|142-preInit
/**
* Returns an initiliazed instance of systemPropertiesForm component.
* @return the initialized component instance
*/
public Form getSystemPropertiesForm() {
if (systemPropertiesForm == null) {//GEN-END:|142-getter|0|142-preInit
// write pre-init user code here
systemPropertiesForm = new Form("Sistem De\u011Fi\u015Fkenleri", new Item[] { getImageItem3(), getStringItem5(), getSpacer2(), getStringItem6(), getSpacer3(), getStringItem7(), getSpacer4(), getStringItem8(), getSpacer5(), getStringItem9() });//GEN-BEGIN:|142-getter|1|142-postInit
systemPropertiesForm.addCommand(getBackCommand6());
systemPropertiesForm.addCommand(getScreenCommand23());
systemPropertiesForm.setCommandListener(this);//GEN-END:|142-getter|1|142-postInit
// write post-init user code here
}//GEN-BEGIN:|142-getter|2|
return systemPropertiesForm;
}
//
//GEN-END:|142-getter|2|

////GEN-BEGIN:|144-getter|0|144-preInit
/**
* Returns an initiliazed instance of stringItem5 component.
* @return the initialized component instance
*/
public StringItem getStringItem5() {
if (stringItem5 == null) {//GEN-END:|144-getter|0|144-preInit
// write pre-init user code here
stringItem5 = new StringItem("I-Mei numaras\u0131 :", SystemData.getImei());//GEN-LINE:|144-getter|1|144-postInit
// write post-init user code here
}//GEN-BEGIN:|144-getter|2|
return stringItem5;
}
//
//GEN-END:|144-getter|2|

////GEN-BEGIN:|145-getter|0|145-preInit
/**
* Returns an initiliazed instance of spacer2 component.
* @return the initialized component instance
*/
public Spacer getSpacer2() {
if (spacer2 == null) {//GEN-END:|145-getter|0|145-preInit
// write pre-init user code here
spacer2 = new Spacer(16, 10);//GEN-LINE:|145-getter|1|145-postInit
// write post-init user code here
}//GEN-BEGIN:|145-getter|2|
return spacer2;
}
//
//GEN-END:|145-getter|2|

////GEN-BEGIN:|146-getter|0|146-preInit
/**
* Returns an initiliazed instance of stringItem6 component.
* @return the initialized component instance
*/
public StringItem getStringItem6() {
if (stringItem6 == null) {//GEN-END:|146-getter|0|146-preInit
// write pre-init user code here
stringItem6 = new StringItem("MCC :", SystemData.getMcc());//GEN-LINE:|146-getter|1|146-postInit
// write post-init user code here
}//GEN-BEGIN:|146-getter|2|
return stringItem6;
}
//
//GEN-END:|146-getter|2|

////GEN-BEGIN:|147-getter|0|147-preInit
/**
* Returns an initiliazed instance of spacer3 component.
* @return the initialized component instance
*/
public Spacer getSpacer3() {
if (spacer3 == null) {//GEN-END:|147-getter|0|147-preInit
// write pre-init user code here
spacer3 = new Spacer(16, 10);//GEN-LINE:|147-getter|1|147-postInit
// write post-init user code here
}//GEN-BEGIN:|147-getter|2|
return spacer3;
}
//
//GEN-END:|147-getter|2|

////GEN-BEGIN:|148-getter|0|148-preInit
/**
* Returns an initiliazed instance of stringItem7 component.
* @return the initialized component instance
*/
public StringItem getStringItem7() {
if (stringItem7 == null) {//GEN-END:|148-getter|0|148-preInit
// write pre-init user code here
stringItem7 = new StringItem("MNC :", SystemData.getMnc());//GEN-LINE:|148-getter|1|148-postInit
// write post-init user code here
}//GEN-BEGIN:|148-getter|2|
return stringItem7;
}
//
//GEN-END:|148-getter|2|

////GEN-BEGIN:|149-getter|0|149-preInit
/**
* Returns an initiliazed instance of spacer4 component.
* @return the initialized component instance
*/
public Spacer getSpacer4() {
if (spacer4 == null) {//GEN-END:|149-getter|0|149-preInit
// write pre-init user code here
spacer4 = new Spacer(16, 10);//GEN-LINE:|149-getter|1|149-postInit
// write post-init user code here
}//GEN-BEGIN:|149-getter|2|
return spacer4;
}
//
//GEN-END:|149-getter|2|

////GEN-BEGIN:|150-getter|0|150-preInit
/**
* Returns an initiliazed instance of stringItem8 component.
* @return the initialized component instance
*/
public StringItem getStringItem8() {
if (stringItem8 == null) {//GEN-END:|150-getter|0|150-preInit
// write pre-init user code here
stringItem8 = new StringItem("LAC :", SystemData.getLAC());//GEN-LINE:|150-getter|1|150-postInit
// write post-init user code here
}//GEN-BEGIN:|150-getter|2|
return stringItem8;
}
//
//GEN-END:|150-getter|2|

////GEN-BEGIN:|151-getter|0|151-preInit
/**
* Returns an initiliazed instance of spacer5 component.
* @return the initialized component instance
*/
public Spacer getSpacer5() {
if (spacer5 == null) {//GEN-END:|151-getter|0|151-preInit
// write pre-init user code here
spacer5 = new Spacer(16, 10);//GEN-LINE:|151-getter|1|151-postInit
// write post-init user code here
}//GEN-BEGIN:|151-getter|2|
return spacer5;
}
//
//GEN-END:|151-getter|2|

////GEN-BEGIN:|152-getter|0|152-preInit
/**
* Returns an initiliazed instance of stringItem9 component.
* @return the initialized component instance
*/
public StringItem getStringItem9() {
if (stringItem9 == null) {//GEN-END:|152-getter|0|152-preInit
// write pre-init user code here
stringItem9 = new StringItem("Cell ID :", SystemData.getCellId());//GEN-LINE:|152-getter|1|152-postInit
// write post-init user code here
}//GEN-BEGIN:|152-getter|2|
return stringItem9;
}
//
//GEN-END:|152-getter|2|

////GEN-BEGIN:|153-getter|0|153-preInit
/**
* Returns an initiliazed instance of imageItem3 component.
* @return the initialized component instance
*/
public ImageItem getImageItem3() {
if (imageItem3 == null) {//GEN-END:|153-getter|0|153-preInit
// write pre-init user code here
imageItem3 = new ImageItem("", getImage4(), ImageItem.LAYOUT_DEFAULT, "");//GEN-LINE:|153-getter|1|153-postInit
// write post-init user code here
}//GEN-BEGIN:|153-getter|2|
return imageItem3;
}
//
//GEN-END:|153-getter|2|

////GEN-BEGIN:|155-getter|0|155-preInit
/**
* Returns an initiliazed instance of backCommand6 component.
* @return the initialized component instance
*/
public Command getBackCommand6() {
if (backCommand6 == null) {//GEN-END:|155-getter|0|155-preInit
// write pre-init user code here
backCommand6 = new Command("Geri", Command.BACK, 0);//GEN-LINE:|155-getter|1|155-postInit
// write post-init user code here
}//GEN-BEGIN:|155-getter|2|
return backCommand6;
}
//
//GEN-END:|155-getter|2|

////GEN-BEGIN:|158-getter|0|158-preInit
/**
* Returns an initiliazed instance of screenCommand23 component.
* @return the initialized component instance
*/
public Command getScreenCommand23() {
if (screenCommand23 == null) {//GEN-END:|158-getter|0|158-preInit
// write pre-init user code here
screenCommand23 = new Command("Yenile", Command.SCREEN, 0);//GEN-LINE:|158-getter|1|158-postInit
// write post-init user code here
}//GEN-BEGIN:|158-getter|2|
return screenCommand23;
}
//
//GEN-END:|158-getter|2|

////GEN-BEGIN:|154-getter|0|154-preInit
/**
* Returns an initiliazed instance of image4 component.
* @return the initialized component instance
*/
public Image getImage4() {
if (image4 == null) {//GEN-END:|154-getter|0|154-preInit
// write pre-init user code here
try {//GEN-BEGIN:|154-getter|1|154-@java.io.IOException
image4 = Image.createImage("/cell2.png");
} catch (java.io.IOException e) {//GEN-END:|154-getter|1|154-@java.io.IOException
e.printStackTrace();
}//GEN-LINE:|154-getter|2|154-postInit
// write post-init user code here
}//GEN-BEGIN:|154-getter|3|
return image4;
}
//
//GEN-END:|154-getter|3|

////GEN-BEGIN:|160-getter|0|160-preInit
/**
* Returns an initiliazed instance of font1 component.
* @return the initialized component instance
*/
public Font getFont1() {
if (font1 == null) {//GEN-END:|160-getter|0|160-preInit
// write pre-init user code here
font1 = Font.getDefaultFont();//GEN-LINE:|160-getter|1|160-postInit
// write post-init user code here
}//GEN-BEGIN:|160-getter|2|
return font1;
}
//
//GEN-END:|160-getter|2|

////GEN-BEGIN:|161-getter|0|161-preInit
/**
* Returns an initiliazed instance of ticker2 component.
* @return the initialized component instance
*/
public Ticker getTicker2() {
if (ticker2 == null) {//GEN-END:|161-getter|0|161-preInit
// write pre-init user code here
ticker2 = new Ticker("Global Tracking System Global Takip Sistemi");//GEN-LINE:|161-getter|1|161-postInit
// write post-init user code here
}//GEN-BEGIN:|161-getter|2|
return ticker2;
}
//
//GEN-END:|161-getter|2|

////GEN-BEGIN:|162-getter|0|162-preInit
/**
* Returns an initiliazed instance of image5 component.
* @return the initialized component instance
*/
public Image getImage5() {
if (image5 == null) {//GEN-END:|162-getter|0|162-preInit
// write pre-init user code here
try {//GEN-BEGIN:|162-getter|1|162-@java.io.IOException
image5 = Image.createImage("/aras.png");
} catch (java.io.IOException e) {//GEN-END:|162-getter|1|162-@java.io.IOException
e.printStackTrace();
}//GEN-LINE:|162-getter|2|162-postInit
// write post-init user code here
}//GEN-BEGIN:|162-getter|3|
return image5;
}
//
//GEN-END:|162-getter|3|

////GEN-BEGIN:|169-getter|0|169-preInit
/**
* Returns an initiliazed instance of serverForm component.
* @return the initialized component instance
*/
public Form getServerForm() {
if (serverForm == null) {//GEN-END:|169-getter|0|169-preInit
// write pre-init user code here
serverForm = new Form("GTS Server\'a ba\u011Flan", new Item[] { getImageItem4(), getSpacer6(), getTextField8(), getSpacer7(), getTextField9() });//GEN-BEGIN:|169-getter|1|169-postInit
serverForm.setTicker(getTicker3());
serverForm.addCommand(getScreenCommand24());
serverForm.addCommand(getBackCommand7());
serverForm.setCommandListener(this);//GEN-END:|169-getter|1|169-postInit
// write post-init user code here
}//GEN-BEGIN:|169-getter|2|
return serverForm;
}
//
//GEN-END:|169-getter|2|

////GEN-BEGIN:|171-getter|0|171-preInit
/**
* Returns an initiliazed instance of imageItem4 component.
* @return the initialized component instance
*/
public ImageItem getImageItem4() {
if (imageItem4 == null) {//GEN-END:|171-getter|0|171-preInit
// write pre-init user code here
imageItem4 = new ImageItem("", getImage3(), ImageItem.LAYOUT_DEFAULT, "");//GEN-LINE:|171-getter|1|171-postInit
// write post-init user code here
}//GEN-BEGIN:|171-getter|2|
return imageItem4;
}
//
//GEN-END:|171-getter|2|

////GEN-BEGIN:|172-getter|0|172-preInit
/**
* Returns an initiliazed instance of spacer6 component.
* @return the initialized component instance
*/
public Spacer getSpacer6() {
if (spacer6 == null) {//GEN-END:|172-getter|0|172-preInit
// write pre-init user code here
spacer6 = new Spacer(16, 1);//GEN-LINE:|172-getter|1|172-postInit
// write post-init user code here
}//GEN-BEGIN:|172-getter|2|
return spacer6;
}
//
//GEN-END:|172-getter|2|

////GEN-BEGIN:|173-getter|0|173-preInit
/**
* Returns an initiliazed instance of textField8 component.
* @return the initialized component instance
*/
public TextField getTextField8() {
if (textField8 == null) {//GEN-END:|173-getter|0|173-preInit
// write pre-init user code here
textField8 = new TextField("Kullan\u0131c\u0131 Ad\u0131 :", null, 32, TextField.ANY);//GEN-LINE:|173-getter|1|173-postInit
// write post-init user code here
}//GEN-BEGIN:|173-getter|2|
return textField8;
}
//
//GEN-END:|173-getter|2|

////GEN-BEGIN:|174-getter|0|174-preInit
/**
* Returns an initiliazed instance of spacer7 component.
* @return the initialized component instance
*/
public Spacer getSpacer7() {
if (spacer7 == null) {//GEN-END:|174-getter|0|174-preInit
// write pre-init user code here
spacer7 = new Spacer(16, 1);//GEN-LINE:|174-getter|1|174-postInit
// write post-init user code here
}//GEN-BEGIN:|174-getter|2|
return spacer7;
}
//
//GEN-END:|174-getter|2|

////GEN-BEGIN:|175-getter|0|175-preInit
/**
* Returns an initiliazed instance of textField9 component.
* @return the initialized component instance
*/
public TextField getTextField9() {
if (textField9 == null) {//GEN-END:|175-getter|0|175-preInit
// write pre-init user code here
textField9 = new TextField("\u015Eifre :", null, 32, TextField.ANY);//GEN-LINE:|175-getter|1|175-postInit
// write post-init user code here
}//GEN-BEGIN:|175-getter|2|
return textField9;
}
//
//GEN-END:|175-getter|2|

////GEN-BEGIN:|177-getter|0|177-preInit
/**
* Returns an initiliazed instance of screenCommand24 component.
* @return the initialized component instance
*/
public Command getScreenCommand24() {
if (screenCommand24 == null) {//GEN-END:|177-getter|0|177-preInit
// write pre-init user code here
screenCommand24 = new Command("Ba\u011Flan", Command.SCREEN, 0);//GEN-LINE:|177-getter|1|177-postInit
// write post-init user code here
}//GEN-BEGIN:|177-getter|2|
return screenCommand24;
}
//
//GEN-END:|177-getter|2|

////GEN-BEGIN:|179-getter|0|179-preInit
/**
* Returns an initiliazed instance of backCommand7 component.
* @return the initialized component instance
*/
public Command getBackCommand7() {
if (backCommand7 == null) {//GEN-END:|179-getter|0|179-preInit
// write pre-init user code here
backCommand7 = new Command("\u0130ptal", Command.BACK, 0);//GEN-LINE:|179-getter|1|179-postInit
// write post-init user code here
}//GEN-BEGIN:|179-getter|2|
return backCommand7;
}
//
//GEN-END:|179-getter|2|

////GEN-BEGIN:|176-getter|0|176-preInit
/**
* Returns an initiliazed instance of ticker3 component.
* @return the initialized component instance
*/
public Ticker getTicker3() {
if (ticker3 == null) {//GEN-END:|176-getter|0|176-preInit
// write pre-init user code here
ticker3 = new Ticker("L\u00FCtfen kullan\u0131c\u0131 ad\u0131n\u0131z\u0131 ve \u015Fifrenizi giriniz.");//GEN-LINE:|176-getter|1|176-postInit
// write post-init user code here
}//GEN-BEGIN:|176-getter|2|
return ticker3;
}
//
//GEN-END:|176-getter|2|

////GEN-BEGIN:|188-getter|0|188-preInit
/**
* Returns an initiliazed instance of stringItem10 component.
* @return the initialized component instance
*/
public StringItem getStringItem10() {
if (stringItem10 == null) {//GEN-END:|188-getter|0|188-preInit
// write pre-init user code here
stringItem10 = new StringItem("counter", null);//GEN-LINE:|188-getter|1|188-postInit
// write post-init user code here
}//GEN-BEGIN:|188-getter|2|
return stringItem10;
}
//
//GEN-END:|188-getter|2|

////GEN-BEGIN:|183-getter|0|183-preInit
/**
* Returns an initiliazed instance of backCommand8 component.
* @return the initialized component instance
*/
public Command getBackCommand8() {
if (backCommand8 == null) {//GEN-END:|183-getter|0|183-preInit
// write pre-init user code here
backCommand8 = new Command("Back", Command.BACK, 0);//GEN-LINE:|183-getter|1|183-postInit
// write post-init user code here
}//GEN-BEGIN:|183-getter|2|
return backCommand8;
}
//
//GEN-END:|183-getter|2|

////GEN-BEGIN:|185-getter|0|185-preInit
/**
* Returns an initiliazed instance of screenCommand25 component.
* @return the initialized component instance
*/
public Command getScreenCommand25() {
if (screenCommand25 == null) {//GEN-END:|185-getter|0|185-preInit
// write pre-init user code here
screenCommand25 = new Command("yenile", Command.SCREEN, 0);//GEN-LINE:|185-getter|1|185-postInit
// write post-init user code here
}//GEN-BEGIN:|185-getter|2|
return screenCommand25;
}
//
//GEN-END:|185-getter|2|




public Alert getAlert(String info) {
if (alert == null) {
// write pre-init user code here
alert = new Alert("Bilgi", info, null, AlertType.INFO);

alert.setTimeout(Alert.FOREVER);
// write post-init user code here
}
return alert;
}



/**
* Returns a display instance.
* @return the display instance.
*/
public Display getDisplay () {
return Display.getDisplay(this);
}

/**
* Exits MIDlet.
*/
public void exitMIDlet() {
switchDisplayable (null, null);
destroyApp(true);
notifyDestroyed();
}

/**
* Called when MIDlet is started.
* Checks whether the MIDlet have been already started and initialize/starts or resumes the MIDlet.
*/
public void startApp() {
if (midletPaused) {
resumeMIDlet ();
} else {
initialize ();
startMIDlet ();
}
midletPaused = false;
}

/**
* Called when MIDlet is paused.
*/
public void pauseApp() {
midletPaused = true;
}

/**
* Called to signal the MIDlet to terminate.
* @param unconditional if true, then the MIDlet has to be unconditionally terminated and all resources has to be released.
*/
public void destroyApp(boolean unconditional) {
}


private void login(String username, String password)
{

String response = null;

try {

response= servis.login(username, password);

if(response=="norecord" || response=="0" || response==null)
{
Alert alarm=new Alert("Hata");
alarm.setString(response);
alarm.setTimeout(3000);
Display.getDisplay(this).setCurrent(alarm);
}
else
{

timer.schedule(taskWebService, 3000, this.intervalWebServis);

long currentTime=System.currentTimeMillis();
while(System.currentTimeMillis()>currentTime+4000){

}
this.userID=response;
switchDisplayable(null, getForm3());

Alert alarm=new Alert("Bağlantı kuruldu.");

alarm.setString("Veri gönderimi başlatılıyor.");
alarm.setTimeout(Alert.FOREVER);
Display.getDisplay(this).setCurrent(alarm);


}

}
catch (Exception ex) {
ex.printStackTrace();
}
}

private void sendCoordinates(String ID,double latitude, double longitude)
{
service1.Service1_Stub servis = new Service1_Stub();

try{
if(servis.setCoordinate(ID,latitude,longitude))
{
stringItem1.setText("basarili");
}
else{
stringItem1.setText("hatali");
}
}
catch(Exception ex){
stringItem1.setText("hatali "+ex.getMessage());
}


}


}