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

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

?? search.java.svn-base

?? 類似QQ的功能
?? SVN-BASE
字號:
/******************************************************************************* Jimm - Mobile Messaging - J2ME ICQ clone Copyright (C) 2003-05  Jimm Project This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. ******************************************************************************** File: src/jimm/Search.java Version: ###VERSION###  Date: ###DATE### Author(s): Andreas Rossbacher *******************************************************************************/package jimm;import java.util.Vector;import javax.microedition.lcdui.*;import jimm.comm.SearchAction;import jimm.comm.Icq;import jimm.comm.Util;import jimm.util.*;import DrawControls.*;public class Search{	SearchForm searchForm;	final public static int UIN = 0;	final public static int NICK = 1;	final public static int FIRST_NAME = 2;	final public static int LAST_NAME = 3;	final public static int EMAIL = 4;	final public static int CITY = 5;	final public static int KEYWORD = 6;	final public static int GENDER = 7;	final public static int ONLY_ONLINE = 8;	final public static int AGE = 9;	final public static int LAST_INDEX = 10;	/* Results */	private Vector results;	/* Constructor */	public Search()	{		this.results = new Vector();	}	/* Add a result to the results vector */	public void addResult(String uin, String nick, String name, String email,			String auth, int status, String gender, int age)	{		String[] resultData = new String[JimmUI.UI_LAST_ID];		resultData[JimmUI.UI_UIN_LIST] = uin;		resultData[JimmUI.UI_NICK] = nick;		resultData[JimmUI.UI_NAME] = name;		resultData[JimmUI.UI_EMAIL] = email;		resultData[JimmUI.UI_AUTH] = auth;		resultData[JimmUI.UI_STATUS] = Integer.toString(status);		resultData[JimmUI.UI_GENDER] = gender;		resultData[JimmUI.UI_AGE] = Integer.toString(age);		this.results.addElement(resultData);	}	/* Return a result object by given Nr */	public String[] getResult(int nr)	{		return (String[]) results.elementAt(nr);	}	/* Return size of search results */	public int size()	{		return results.size();	}	/* Return the SearchForm object */	public SearchForm getSearchForm()	{		if (searchForm == null)			searchForm = new SearchForm();		return searchForm;	}	/** ************************************************************************* */	/** ************************************************************************* */	/** ************************************************************************* */	/* Class for the search forms */	public class SearchForm implements CommandListener, VirtualListCommands, JimmScreen	{		int lastType;				/* Commands */		private Command backCommand;		private Command searchCommand;		private Command addCommand;		private Command previousCommand;		private Command nextCommand;		private Command cmdSendMessage;		private Command cmdShowInfo;		/* Forms for results and query */		private Form searchForm;		private TextList screen;		/* List for group selection */		private TextList groupList;		/* Textboxes for search */		private TextField uinSearchTextBox;		private TextField nickSearchTextBox;		private TextField firstnameSearchTextBox;		private TextField lastnameSearchTextBox;		private TextField emailSearchTextBox;		private TextField citySearchTextBox;		private TextField keywordSearchTextBox;		private ChoiceGroup chgrAge;		/* Choice boxes for gender and online choice */		private ChoiceGroup gender;		private ChoiceGroup onlyOnline;		/* Selectet index in result screen */		int selectedIndex;		/* constructor for search form */		public SearchForm()		{			/* Commands */			this.searchCommand = new Command(ResourceBundle					.getString("search_user"), Command.OK, 1);			this.backCommand = new Command(ResourceBundle.getString("back"),					Jimm.cmdBack, 2);			this.addCommand = new Command(ResourceBundle					.getString("add_to_list"), Command.OK, 1);			this.previousCommand = new Command(					ResourceBundle.getString("prev"), Command.ITEM, 4);			this.nextCommand = new Command(ResourceBundle.getString("next"),					Command.ITEM, 5);			this.cmdSendMessage = new Command(ResourceBundle					.getString("send_message"), Command.ITEM, 6);			this.cmdShowInfo = new Command(ResourceBundle.getString("info"),					Command.ITEM, 7);			/* Form */			this.searchForm = new Form(ResourceBundle.getString("search_user"));			/* TextFields */			this.uinSearchTextBox = new TextField(ResourceBundle					.getString("uin"), "", 32, TextField.NUMERIC);			this.nickSearchTextBox = new TextField(ResourceBundle					.getString("nick"), "", 32, TextField.ANY);			this.firstnameSearchTextBox = new TextField(ResourceBundle					.getString("firstname"), "", 32, TextField.ANY);			this.lastnameSearchTextBox = new TextField(ResourceBundle					.getString("lastname"), "", 32, TextField.ANY);			this.emailSearchTextBox = new TextField(ResourceBundle					.getString("email"), "", 32, TextField.EMAILADDR);			this.citySearchTextBox = new TextField(ResourceBundle					.getString("city"), "", 32, TextField.ANY);			this.keywordSearchTextBox = new TextField(ResourceBundle					.getString("keyword"), "", 32, TextField.ANY);			chgrAge = new ChoiceGroup(ResourceBundle.getString("age"),					Choice.EXCLUSIVE, Util.explode(							"-|18-22|23-29|30-39|40-49|50-59|>60", '|'), null);			/* Choice Groups */			this.gender = new ChoiceGroup(ResourceBundle.getString("gender"),					Choice.EXCLUSIVE);			this.gender.append(ResourceBundle.getString("female_male"), null);			this.gender.append(ResourceBundle.getString("female"), null);			this.gender.append(ResourceBundle.getString("male"), null);			this.onlyOnline = new ChoiceGroup("", Choice.MULTIPLE);			this.onlyOnline.append(ResourceBundle.getString("only_online"),					null);			this.searchForm.append(this.onlyOnline);			this.searchForm.append(this.uinSearchTextBox);			this.searchForm.append(this.nickSearchTextBox);			this.searchForm.append(this.firstnameSearchTextBox);			this.searchForm.append(this.lastnameSearchTextBox);			this.searchForm.append(this.citySearchTextBox);			this.searchForm.append(this.gender);			this.searchForm.append(this.emailSearchTextBox);			this.searchForm.append(this.keywordSearchTextBox);			this.searchForm.append(this.chgrAge);			this.searchForm.setCommandListener(this);			/* Result Screen */			screen = new TextList(null);			screen.setVLCommands(this);//#sijapp cond.if target!="RIM" & target!="DEFAULT"#			screen.addCommandEx(JimmUI.cmdMenu, VirtualList.MENU_TYPE_RIGHT_BAR);//#sijapp cond.end#			screen.addCommandEx(this.previousCommand, VirtualList.MENU_TYPE_RIGHT);			screen.addCommandEx(this.nextCommand, VirtualList.MENU_TYPE_RIGHT);			screen.addCommandEx(this.addCommand, VirtualList.MENU_TYPE_RIGHT);			screen.addCommandEx(this.cmdSendMessage, VirtualList.MENU_TYPE_RIGHT);			screen.addCommandEx(this.cmdShowInfo, VirtualList.MENU_TYPE_RIGHT);			screen.setMode(VirtualList.CURSOR_MODE_DISABLED);			JimmUI.setColorScheme(screen, false, -1, true);		}		static final public int ACTIV_SHOW_RESULTS = 1;		static final public int ACTIV_JUST_SHOW = 2;		static final public int ACTIV_SHOW_NORESULTS = 3;				public void activate()		{			activate(lastType);		}				public boolean isScreenActive()		{			if (searchForm != null && searchForm.isShown()) return true;			if (screen != null && screen.isActive()) return true;			if (groupList != null && groupList.isActive()) return true; 			return false;		}		/* Activate search form */		public void activate(int type)		{			lastType = type;			switch (type)			{			case ACTIV_SHOW_RESULTS:				drawResultScreen(selectedIndex);				this.screen.activate(Jimm.display);				break;			case ACTIV_JUST_SHOW:				this.searchForm.addCommand(this.searchCommand);				this.searchForm.addCommand(this.backCommand);				Jimm.display.setCurrent(this.searchForm);				Jimm.setBkltOn(true);				break;			case ACTIV_SHOW_NORESULTS:				this.searchForm.addCommand(this.searchCommand);				this.searchForm.addCommand(this.backCommand);				Alert alert = new Alert(null, ResourceBundle						.getString("no_results"), null, null);				alert.setTimeout(Alert.FOREVER);				Jimm.display.setCurrent(alert, this.searchForm);				Jimm.setBkltOn(false);				break;			}			JimmUI.setLastScreen(this, false);		}		public void drawResultScreen(int n)		{			/* Remove the older entrys here */			screen.clear();			if (Search.this.size() > 0)			{				if (Search.this.size() == 1)				{					screen.removeCommandEx(this.nextCommand);					screen.removeCommandEx(this.previousCommand);				}				screen.lock();				JimmUI.fillUserInfo(getResult(n), screen);				screen.setCaption(ResourceBundle.getString("results") + " "						+ Integer.toString(n + 1) + "/"						+ Integer.toString(Search.this.size()));				screen.unlock();			} else			{				/* Show a result entry */				screen.lock();				screen.setCaption(ResourceBundle.getString("results") + " 0/0");				screen.addBigText(						ResourceBundle.getString("no_results") + ": ", 0x0,						Font.STYLE_BOLD, -1);				screen.unlock();			}			screen.addCommandEx(this.backCommand, VirtualList.MENU_TYPE_LEFT_BAR);			screen.setCommandListener(this);		}		public void nextOrPrev(boolean next)		{			if (next)			{				selectedIndex = (selectedIndex + 1) % Search.this.size();				this.activate(Search.SearchForm.ACTIV_SHOW_RESULTS);			} else			{				if (selectedIndex == 0)					selectedIndex = Search.this.size() - 1;				else				{					selectedIndex = (selectedIndex - 1) % Search.this.size();				}				this.activate(Search.SearchForm.ACTIV_SHOW_RESULTS);			}		}		public void vlKeyPress(VirtualList sender, int keyCode, int type)		{			if (type == VirtualList.KEY_PRESSED)			{				switch (sender.getGameAction(keyCode))				{				case Canvas.LEFT:					nextOrPrev(false);					break;				case Canvas.RIGHT:					nextOrPrev(true);					break;				}			}		}		public void vlCursorMoved(VirtualList sender)		{		}		public void vlItemClicked(VirtualList sender)		{		}		public void commandAction(Command c, Displayable d)		{			if (c == this.backCommand || c == JimmUI.cmdCancel)			{				JimmUI.backToLastScreen();			} 			else if (c == this.searchCommand)			{				selectedIndex = 0;				String[] data = new String[Search.LAST_INDEX];				data[Search.UIN] = this.uinSearchTextBox.getString();				data[Search.NICK] = this.nickSearchTextBox.getString();				data[Search.FIRST_NAME] = this.firstnameSearchTextBox						.getString();				data[Search.LAST_NAME] = this.lastnameSearchTextBox.getString();				data[Search.EMAIL] = this.emailSearchTextBox.getString();				data[Search.CITY] = this.citySearchTextBox.getString();				data[Search.KEYWORD] = this.keywordSearchTextBox.getString();				data[Search.GENDER] = Integer.toString(this.gender						.getSelectedIndex());				data[Search.ONLY_ONLINE] = this.onlyOnline.isSelected(0) ? "1"						: "0";				data[Search.AGE] = Integer.toString(this.chgrAge						.getSelectedIndex());				SearchAction act = new SearchAction(Search.this, data,						SearchAction.CALLED_BY_SEARCHUSER);				try				{					Icq.requestAction(act);				} catch (JimmException e)				{					JimmException.handleException(e);					if (e.isCritical())						return;				}				/* Clear results */				results.removeAllElements();				/* Start timer */				SplashCanvas.addTimerTask("wait", act, true);			}			/* "Next" command */			else if (c == this.nextCommand)				nextOrPrev(true);			/* "Previous" command */			else if (c == this.previousCommand)				nextOrPrev(false);			else if ((c == this.addCommand) && JimmUI.isControlActive(screen))			{				searchForm = null;				if (ContactList.getGroupItems().length == 0)				{					Alert errorMsg = new Alert(ResourceBundle							.getString("warning"), JimmException.getErrDesc(							161, 0), null, AlertType.WARNING);					errorMsg.setTimeout(Alert.FOREVER);										// TODO: show normal error here					MainThread.activateContactListMT(errorMsg);				} else				{					/* Show list of groups to select which group to add to */					groupList = JimmUI.showGroupSelector("whichgroup", this, JimmUI.SHS_TYPE_ALL, -1); 				}			} else if (c == JimmUI.cmdOk && JimmUI.isControlActive(this.groupList))			{				int groupId = groupList.getCurrTextIndex();				if (groupId == -1) return;				String[] resultData = getResult(selectedIndex);				ContactItem cItem = new ContactItem(-1, groupId, resultData[JimmUI.UI_UIN_LIST], resultData[JimmUI.UI_NICK], false, false);				cItem.setBooleanValue(ContactItem.CONTACTITEM_NO_AUTH, resultData[JimmUI.UI_AUTH].equals("1"));				cItem.setBooleanValue(ContactItem.CONTACTITEM_IS_TEMP, true);				cItem.setIntValue(ContactItem.CONTACTITEM_STATUS, ContactList.STATUS_OFFLINE);				Icq.addToContactList(cItem);			}			/* Command "Send message" */			else if (c == this.cmdSendMessage)			{				String[] resultData = getResult(selectedIndex);				ContactItem cItem = ContactList						.createTempContact(resultData[JimmUI.UI_UIN_LIST]);				//ContactItem.CONTACTITEM_HAS_CHAT				cItem.setStringValue(ContactItem.CONTACTITEM_NAME,						resultData[JimmUI.UI_NICK]);				JimmUI.writeMessage(cItem, new String());			}			/* Command "Show info" */			else if (c == this.cmdShowInfo)			{				String[] resultData = getResult(selectedIndex);				JimmUI.requiestUserInfo(resultData[JimmUI.UI_UIN_LIST],						resultData[JimmUI.UI_NICK], false				//#sijapp cond.if target!="DEFAULT" & modules_AVATARS="true"#
				, null				//#sijapp cond.end#				);			}		}	} /* end "class SearchForm" */}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区不卡在线观看| 99久久精品国产精品久久| 国产精品99久久久久久久vr | 欧美欧美午夜aⅴ在线观看| 精品国产乱码久久久久久免费| 国产精品女主播在线观看| 久久精品国产在热久久| 欧美午夜精品久久久久久孕妇| 国产精品视频在线看| 国产精一区二区三区| 在线91免费看| 亚洲午夜免费电影| 色又黄又爽网站www久久| 日本一区二区三区在线观看| 免费看日韩a级影片| 欧美日韩国产精选| 一区二区三区加勒比av| 一本一道综合狠狠老| 国产精品久久久久久久久免费樱桃| 精品一区二区影视| 欧美一区三区四区| 日韩精品91亚洲二区在线观看| 一本大道综合伊人精品热热| 综合亚洲深深色噜噜狠狠网站| 成人免费av网站| 欧美国产精品中文字幕| 粉嫩av一区二区三区在线播放| 亚洲精品在线一区二区| 国产一区中文字幕| 欧美激情资源网| 91丨porny丨国产| 一区二区三区在线视频观看| 99久久99久久久精品齐齐| 久久蜜桃av一区二区天堂| 久久国产视频网| 久久婷婷久久一区二区三区| 精品一区二区三区久久| 国产亚洲一区二区三区四区 | 久久久精品国产免大香伊| 久久av资源站| 国产校园另类小说区| 国产91精品在线观看| 国产精品三级久久久久三级| www.综合网.com| 亚洲精品成人精品456| 欧美日韩亚洲综合在线| 青青青伊人色综合久久| 久久久国产一区二区三区四区小说| 国产精品一区一区| 亚洲欧洲中文日韩久久av乱码| 欧美日韩一级二级三级| 久久99精品国产.久久久久久| 国产日韩欧美在线一区| 在线欧美日韩国产| 日韩在线观看一区二区| 久久久久久99久久久精品网站| av一本久道久久综合久久鬼色| 一区二区三区在线视频观看58| 欧美一区二区三区影视| 成人精品免费视频| 调教+趴+乳夹+国产+精品| 久久综合久久综合九色| 99精品一区二区| 麻豆精品久久精品色综合| 中日韩免费视频中文字幕| 在线国产电影不卡| 国产一区二区三区美女| 亚洲黄色av一区| 精品国产乱码久久久久久浪潮| 成人精品小蝌蚪| 免费一级欧美片在线观看| 亚洲婷婷国产精品电影人久久| 欧美日韩国产高清一区| 国产精品123| 日韩avvvv在线播放| 国产精品另类一区| 日韩精品最新网址| 日本高清不卡一区| 国产精品一区一区三区| 丝袜亚洲另类欧美| **性色生活片久久毛片| 欧美大黄免费观看| 欧美三级视频在线观看| 成人禁用看黄a在线| 麻豆成人久久精品二区三区红| 国产精品久久久久久户外露出 | 欧美va在线播放| 色老头久久综合| 成人国产在线观看| 男男视频亚洲欧美| 亚洲资源在线观看| 亚洲视频在线观看一区| 久久久久国产精品人| 欧美成人猛片aaaaaaa| 欧美美女一区二区三区| 日本福利一区二区| www.成人网.com| 国产成人亚洲综合色影视| 麻豆精品久久久| 亚洲成人动漫精品| 一区二区三区在线播放| 国产精品久久久久久久午夜片| 久久精品日产第一区二区三区高清版 | 欧美色综合久久| 91久久人澡人人添人人爽欧美| gogo大胆日本视频一区| 国产成人久久精品77777最新版本| 久久精品99久久久| 狠狠色伊人亚洲综合成人| 老鸭窝一区二区久久精品| 日本午夜一区二区| 精品一区二区在线视频| 国产一区二区三区不卡在线观看 | 日韩久久免费av| 欧美一二三区在线| 欧美一级在线免费| 精品久久国产字幕高潮| 26uuu国产日韩综合| 精品国产第一区二区三区观看体验| 日韩欧美亚洲国产精品字幕久久久| 欧美日韩高清一区二区| 在线成人小视频| 精品日韩一区二区三区免费视频| 精品电影一区二区三区| 久久综合九色综合欧美亚洲| 国产午夜一区二区三区| 中文字幕一区二区三区乱码在线| 亚洲欧洲在线观看av| 亚洲综合激情网| 日韩av电影天堂| 国产精品亚洲午夜一区二区三区 | 亚洲一区二区精品视频| 亚洲国产视频在线| 免费观看日韩电影| 国产一区二区三区电影在线观看 | 国产一区二区视频在线| 成人污污视频在线观看| 欧美在线影院一区二区| 欧美肥妇bbw| 国产亚洲欧美一区在线观看| 自拍视频在线观看一区二区| 亚洲国产日产av| 国产精品亚洲专一区二区三区 | 国产精品123区| 日本黄色一区二区| 日韩欧美亚洲另类制服综合在线| 国产午夜精品久久久久久免费视| 亚洲免费高清视频在线| 毛片不卡一区二区| 色婷婷综合久久久中文一区二区| 日韩一级大片在线| 国产精品乱码一区二区三区软件| 五月激情六月综合| 成人免费高清在线| 日韩欧美你懂的| 亚洲精品日日夜夜| 国产一区二区伦理| 欧美精品第一页| 自拍偷拍亚洲激情| 国产呦萝稀缺另类资源| 欧美日韩成人综合在线一区二区| 国产丝袜欧美中文另类| 无码av中文一区二区三区桃花岛| 成人午夜电影久久影院| 日韩免费一区二区| 亚洲午夜一区二区| 粉嫩久久99精品久久久久久夜| 67194成人在线观看| 亚洲欧美乱综合| 国产91对白在线观看九色| 欧美一区二区成人| 亚洲一卡二卡三卡四卡无卡久久| 丰满亚洲少妇av| 久久中文娱乐网| 蜜臀99久久精品久久久久久软件| 欧美性色aⅴ视频一区日韩精品| 国产精品私人影院| 精品写真视频在线观看| 欧美日韩精品三区| 亚洲嫩草精品久久| av毛片久久久久**hd| 久久噜噜亚洲综合| 久久99精品国产.久久久久久| 在线不卡一区二区| 午夜视频一区二区| 欧美性高清videossexo| 国产精品第四页| 成人黄色小视频在线观看| 国产欧美中文在线| 国产精品亚洲午夜一区二区三区 | 在线电影欧美成精品| 亚洲国产综合人成综合网站| 色综合天天综合| 亚洲精品乱码久久久久久| 91网站最新网址| 亚洲精品乱码久久久久久日本蜜臀| 99久久精品免费精品国产| 亚洲欧洲av在线| 色综合久久天天综合网| 亚洲综合免费观看高清在线观看|