⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jsr179example.java

📁 主要用于基站定位的java实现
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
          // write post-action user code here        }//GEN-BEGIN:|21-action|7|21-postAction      }//GEN-END:|21-action|7|21-postAction      // enter post-action user code here    }//GEN-BEGIN:|21-action|8|    //</editor-fold>//GEN-END:|21-action|8|    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: gpsStatusForm ">//GEN-BEGIN:|30-getter|0|30-preInit    /**     * Returns an initiliazed instance of gpsStatusForm component.     * @return the initialized component instance     */    public Form getGpsStatusForm() {      if (gpsStatusForm == null) {//GEN-END:|30-getter|0|30-preInit        // write pre-init user code here        gpsStatusForm = new Form("GPS Status", new Item[] { getGPSStatusTextField() });//GEN-BEGIN:|30-getter|1|30-postInit        gpsStatusForm.addCommand(getBackCommand());        gpsStatusForm.setCommandListener(this);//GEN-END:|30-getter|1|30-postInit        // write post-init user code here                      }//GEN-BEGIN:|30-getter|2|      return gpsStatusForm;    }    //</editor-fold>//GEN-END:|30-getter|2|    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: GPSStatusTextField ">//GEN-BEGIN:|32-getter|0|32-preInit    /**     * Returns an initiliazed instance of GPSStatusTextField component.     * @return the initialized component instance     */    public TextField getGPSStatusTextField() {      if (GPSStatusTextField == null) {//GEN-END:|32-getter|0|32-preInit        // write pre-init user code here        GPSStatusTextField = new TextField("Status", "", 32, TextField.ANY);//GEN-LINE:|32-getter|1|32-postInit        // write post-init user code here      }//GEN-BEGIN:|32-getter|2|      return GPSStatusTextField;    }    //</editor-fold>//GEN-END:|32-getter|2|    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: requestTestForm ">//GEN-BEGIN:|34-getter|0|34-preInit    /**     * Returns an initiliazed instance of requestTestForm component.     * @return the initialized component instance     */    public Form getRequestTestForm() {      if (requestTestForm == null) {//GEN-END:|34-getter|0|34-preInit        // write pre-init user code here        requestTestForm = new Form("Single position request", new Item[] { getRequestTextField() });//GEN-BEGIN:|34-getter|1|34-postInit        requestTestForm.addCommand(getBackCommand1());        requestTestForm.addCommand(getRequestPos());        requestTestForm.setCommandListener(this);//GEN-END:|34-getter|1|34-postInit        // write post-init user code here                             }//GEN-BEGIN:|34-getter|2|      return requestTestForm;    }    //</editor-fold>//GEN-END:|34-getter|2|    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand ">//GEN-BEGIN:|35-getter|0|35-preInit    /**     * Returns an initiliazed instance of backCommand component.     * @return the initialized component instance     */    public Command getBackCommand() {      if (backCommand == null) {//GEN-END:|35-getter|0|35-preInit        // write pre-init user code here        backCommand = new Command("Back", Command.BACK, 0);//GEN-LINE:|35-getter|1|35-postInit        // write post-init user code here      }//GEN-BEGIN:|35-getter|2|      return backCommand;    }    //</editor-fold>//GEN-END:|35-getter|2|    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand1 ">//GEN-BEGIN:|37-getter|0|37-preInit    /**     * Returns an initiliazed instance of backCommand1 component.     * @return the initialized component instance     */    public Command getBackCommand1() {      if (backCommand1 == null) {//GEN-END:|37-getter|0|37-preInit        // write pre-init user code here        backCommand1 = new Command("Back", Command.BACK, 0);//GEN-LINE:|37-getter|1|37-postInit        // write post-init user code here      }//GEN-BEGIN:|37-getter|2|      return backCommand1;    }    //</editor-fold>//GEN-END:|37-getter|2|    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: requestTextField ">//GEN-BEGIN:|43-getter|0|43-preInit    /**     * Returns an initiliazed instance of requestTextField component.     * @return the initialized component instance     */    public TextField getRequestTextField() {      if (requestTextField == null) {//GEN-END:|43-getter|0|43-preInit        // write pre-init user code here        requestTextField = new TextField("Location request result", "", 32, TextField.ANY);//GEN-LINE:|43-getter|1|43-postInit        // write post-init user code here      }//GEN-BEGIN:|43-getter|2|      return requestTextField;    }    //</editor-fold>//GEN-END:|43-getter|2|    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: requestPos ">//GEN-BEGIN:|44-getter|0|44-preInit    /**     * Returns an initiliazed instance of requestPos component.     * @return the initialized component instance     */    public Command getRequestPos() {      if (requestPos == null) {//GEN-END:|44-getter|0|44-preInit        // write pre-init user code here        requestPos = new Command("Ok", "RequestPos", Command.OK, 0);//GEN-LINE:|44-getter|1|44-postInit        // write post-init user code here      }//GEN-BEGIN:|44-getter|2|      return requestPos;    }    //</editor-fold>//GEN-END:|44-getter|2|    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: stateListener ">//GEN-BEGIN:|46-getter|0|46-preInit    /**     * Returns an initiliazed instance of stateListener component.     * @return the initialized component instance     */    public Command getStateListener() {      if (stateListener == null) {//GEN-END:|46-getter|0|46-preInit        // write pre-init user code here        stateListener = new Command("StartStateListener", Command.OK, 0);//GEN-LINE:|46-getter|1|46-postInit        // write post-init user code here      }//GEN-BEGIN:|46-getter|2|      return stateListener;    }    //</editor-fold>//GEN-END:|46-getter|2|    /**     * 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 PositioningRunner posRunner = null;    private UserPosRequester uPosRequester = null;    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -