亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? criteriaselectionscreen.java

?? 一套j2me的UI界面庫
?? JAVA
字號:
package org.j4me.examples.bluetoothgps;

import org.j4me.bluetoothgps.*;
import org.j4me.ui.*;
import org.j4me.ui.components.*;

/**
 * A configuration screen that determines the user's criteria for a location
 * provider.
 * <p>
 * Because this is an example application we do not allow for some criteria
 * such as "cost allowed".  The example should not use carrier signals that
 * result in user charges.
 */
public class CriteriaSelectionScreen
	extends Dialog
{
	/**
	 * The location information for this application.
	 */
	private final LocationModel model;
	
	/**
	 * Whether to try getting a location provider build into the phone or
	 * over a remote Bluetooth connection.
	 */
	private final RadioButton source;
	
	/**
	 * The required accuracy of the location data in meters.
	 */
	private final TextBox horizontalAccuracy;
	
	/**
	 * If altitude data is required or not.
	 */
	private final CheckBox altitudeRequired;
	
	/**
	 * If the speed and course data is required or not.
	 */
	private final CheckBox speedAndCourseRequired;
	
	/**
	 * Constructs the "Criteria Selection" screen.
	 * 
	 * @param model is the application's location data.
	 */
	public CriteriaSelectionScreen (LocationModel model)
	{
		this.model = model;
		
		// Setup the screen.
		setTitle( "LBS Criteria" );
		setMenuText( null, "OK" );
		
		source = new RadioButton();
		source.setLabel( "LBS source" );
		source.append( "Device" );
		source.append( "Bluetooth" );
		append( source );
		
		horizontalAccuracy = new TextBox();
		horizontalAccuracy.setLabel( "Horizontal accuracy in meters" );
		horizontalAccuracy.setForNumericOnly();
		append( horizontalAccuracy );
		
		altitudeRequired = new CheckBox();
		altitudeRequired.setLabel( "Altitude required" );
		append( altitudeRequired );

		speedAndCourseRequired = new CheckBox();
		speedAndCourseRequired.setLabel( "Speed and course required" );
		append( speedAndCourseRequired );
		
		// Set the initial values for the UI components.
		Criteria c = model.getCriteria();
		
		if ( c == null )
		{
			// No criteria yet so use defaults.
			source.setSelectedIndex( 0 );
			horizontalAccuracy.setString( "10" );
		}
		else
		{
			if ( c.getRemoteDeviceAddress() == null )
			{
				// LBS on the device.
				source.setSelectedIndex( 0 );
			}
			else
			{
				// LBS through Bluetooth.
				source.setSelectedIndex( 1 );
			}

			horizontalAccuracy.setString( Integer.toString(c.getHorizontalAccuracy()) );
			altitudeRequired.setChecked( c.isAltitudeRequired() );
			speedAndCourseRequired.setChecked( c.isSpeedAndCourseRequired() );
		}
	}

	/**
	 * Called when the user is done setting the location provider criteria.
	 * 
	 * @see org.j4me.ui.DeviceScreen#acceptNotify()
	 */
	protected void acceptNotify ()
	{
		// Create a criteria object and go to the next screen.
		Criteria criteria = new Criteria();
		criteria.setCostAllowed( false );  // Don't want cell phone charges for our demo :)
		criteria.setSpeedAndCourseRequired (speedAndCourseRequired.isChecked() );
		criteria.setAltitudeRequired( altitudeRequired.isChecked() );
		criteria.setHorizontalAccuracy( Integer.parseInt(horizontalAccuracy.getString()) );
		
		// If a Bluetooth GPS location provider is going to be used we need to
		// supply its address to the criteria.  However, we don't know the address
		// yet so we'll do Bluetooth device discovery next to present the user with
		// a list of possible Bluetooth devices that are the GPS.
		DeviceScreen next;
		
		if ( source.getSelectedIndex() == 0 )
		{
			// On device LBS.
			criteria.setAllowLocalLBS( true );
			criteria.setRemoteDeviceAddress( null );
			next = new InitializingGPSAlert( model, this );
		}
		else
		{
			// Bluetooth LBS.
			criteria.setAllowLocalLBS( false );
			next = new FindingGPSDevicesAlert( model, this );
		}

		// Store the criteria used for selecting a location provider.
		model.setCriteria( criteria );

		// Go to the next screen.
		next.show();
		
		// Continue processing the event.
		super.acceptNotify();
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av一区二区三区四区| 一区二区三区四区av| 99国产麻豆精品| 午夜精品久久久久久久久| 久久精品男人天堂av| 欧美丝袜第三区| 91无套直看片红桃| 亚洲国产婷婷综合在线精品| 91麻豆免费看片| 国产成人精品亚洲777人妖| 自拍视频在线观看一区二区| 久久久不卡影院| 67194成人在线观看| 午夜精品久久久久久久久久| 777亚洲妇女| 免费久久精品视频| 精品国产一二三| 成人午夜av影视| 成人黄色在线网站| 国产精品中文有码| 中文字幕一区二区三区四区不卡| 欧美在线不卡一区| 国产成人精品免费一区二区| 国产剧情一区在线| 国产盗摄精品一区二区三区在线| 国产成人午夜视频| jiyouzz国产精品久久| 欧美一区二区三级| 日本国产一区二区| 色综合中文综合网| 成人性视频网站| 99综合影院在线| 日本高清无吗v一区| 欧美日韩精品福利| 97精品久久久午夜一区二区三区| 成人免费福利片| 日本高清不卡视频| 欧美日韩三级一区| 欧美视频在线观看一区| 亚洲国产精品久久一线不卡| 三级欧美在线一区| 国产在线麻豆精品观看| 99精品视频中文字幕| 这里只有精品免费| 国产精品无人区| 中文字幕一区二区不卡| 国产精品热久久久久夜色精品三区 | 538在线一区二区精品国产| 色婷婷久久99综合精品jk白丝| 中文字幕一区二区在线播放| 亚洲一区在线免费观看| 欧美aaaaaa午夜精品| 成a人片亚洲日本久久| 欧美久久一二区| 国产精品美女久久福利网站 | 精品国产制服丝袜高跟| 91精品国产aⅴ一区二区| 欧美三级在线看| 亚洲大尺度视频在线观看| 99久久精品国产毛片| 欧美电视剧在线看免费| 懂色av一区二区三区免费观看| 91精品国产综合久久精品麻豆 | 成人做爰69片免费看网站| 国产三级精品三级| 欧美午夜精品久久久| 大陆成人av片| 一区二区在线观看视频在线观看| 国产一区二区三区精品欧美日韩一区二区三区 | 国产精品123区| 懂色av噜噜一区二区三区av| 欧美一级高清片在线观看| 国产91在线看| 国产亚洲一区字幕| av在线综合网| 日韩影院在线观看| 美女一区二区久久| a美女胸又www黄视频久久| 一区二区三区四区不卡在线| 久久久欧美精品sm网站| 精品国产sm最大网站免费看| 欧美系列一区二区| 欧美网站一区二区| 日本一区二区免费在线观看视频| 成人丝袜18视频在线观看| 日本在线不卡一区| 国产成人精品一区二| 日本丶国产丶欧美色综合| 日韩av在线发布| 国产精品久99| 国产精品免费免费| 国产成人免费网站| 日本中文在线一区| 99久久99久久免费精品蜜臀| 精品国产乱码久久久久久图片| 久久一日本道色综合| 一区二区三区加勒比av| 久久99久久99精品免视看婷婷| 国产欧美一区二区精品性色超碰| 欧美午夜精品久久久久久超碰| 91精品国产综合久久久久久久久久| 欧美三级午夜理伦三级中视频| 成人高清av在线| 久久久一区二区三区捆绑**| 亚洲最新视频在线观看| 午夜精品福利在线| 青娱乐精品视频| 国产精品1024| 亚洲三级久久久| 日本不卡不码高清免费观看| 成人sese在线| 久久久三级国产网站| 偷窥少妇高潮呻吟av久久免费| 337p粉嫩大胆色噜噜噜噜亚洲| 亚洲欧美精品午睡沙发| 舔着乳尖日韩一区| 成人app软件下载大全免费| 久久免费偷拍视频| 视频一区二区国产| 日本高清不卡在线观看| 欧美一级理论片| 亚洲福利一区二区三区| 91久久线看在观草草青青| 亚洲精品ww久久久久久p站| 视频一区二区不卡| 91蝌蚪porny| 亚洲一区二区在线播放相泽| 国产91精品一区二区麻豆网站| 91免费视频网址| 成人av资源网站| 日韩一级大片在线观看| 日产国产高清一区二区三区| 欧美高清精品3d| 国产成人亚洲精品青草天美| 亚洲天堂2014| 中文字幕av一区二区三区| 日韩一区二区电影| 5566中文字幕一区二区电影 | 国产精品综合一区二区| 蜜桃av噜噜一区二区三区小说| 亚洲欧洲综合另类在线| 国产精品对白交换视频| 国产精品丝袜在线| 亚洲国产激情av| ...av二区三区久久精品| 久久先锋影音av鲁色资源网| 欧美一激情一区二区三区| 欧美一区二区三区公司| 久久免费视频色| 中文字幕欧美日本乱码一线二线| 国产欧美日本一区视频| 国产精品伦理在线| 亚洲一区在线观看免费| 狠狠色狠狠色综合| 成人福利视频网站| 欧美色图在线观看| 久久久av毛片精品| 久久精品一区八戒影视| 中文字幕第一区二区| 2021久久国产精品不只是精品| 精品久久久三级丝袜| 久久久久久久久久久电影| 中文字幕制服丝袜一区二区三区| 九九热在线视频观看这里只有精品| 欧美高清激情brazzers| 夜夜爽夜夜爽精品视频| 欧美色区777第一页| 久久久久久久精| 天天综合色天天综合色h| 国产91丝袜在线播放| 久久人人97超碰com| 无码av中文一区二区三区桃花岛| 99久久综合狠狠综合久久| 久久午夜色播影院免费高清| 午夜久久久影院| 欧美午夜片在线看| 一区二区三区在线观看视频| 国产a精品视频| 国产清纯在线一区二区www| 久草热8精品视频在线观看| 欧美日韩aaa| 午夜精品久久久久久久蜜桃app | 亚洲精品视频在线观看网站| 成人手机在线视频| 国产精品久久久久婷婷| 在线观看欧美精品| 麻豆成人久久精品二区三区红| 久久婷婷色综合| 欧美日韩国产精选| 91在线免费看| 久久国产精品第一页| 中文字幕一区二区在线播放| 色综合视频在线观看| 免费高清成人在线| 久久丝袜美腿综合| 91极品美女在线| 久久国内精品视频| 一区二区三区不卡在线观看| 精品精品欲导航| 欧美日免费三级在线|