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

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

?? choice.java

?? gcc-you can use this code to learn something about gcc, and inquire further into linux,
?? JAVA
字號:
/* Choice.java -- Java choice button widget.   Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package java.awt;import java.awt.peer.ChoicePeer;import java.awt.peer.ComponentPeer;import java.awt.event.ItemEvent;import java.awt.event.ItemListener;import java.io.Serializable;import java.util.Vector;/**  * This class implements a drop down choice list.  *  * @author Aaron M. Renn (arenn@urbanophile.com)  */public class Choice extends Component implements ItemSelectable, Serializable{/* * Static Variables */// Serialization constantprivate static final long serialVersionUID = -4075310674757313071L;/*************************************************************************//* * Instance Variables *//**  * @serial A list of items for the choice box, which can be <code>null</code>.  */private Vector pItems = new Vector();/**  * @serial The index of the selected item in the choice box.  */private int selectedIndex = -1;// Listener chainprivate ItemListener item_listeners;/*************************************************************************//* * Constructors */  /**   * Initializes a new instance of <code>Choice</code>.   *   * @exception HeadlessException If GraphicsEnvironment.isHeadless()   * returns true   */  public Choice()  {    if (GraphicsEnvironment.isHeadless())      throw new HeadlessException ();  }/*************************************************************************//* * Instance Methods *//**  * Returns the number of items in the list.  *  * @return The number of items in the list.  */public intgetItemCount(){  return(pItems.size());}/*************************************************************************//**  * Returns the number of items in the list.  *  * @return The number of items in the list.  *  * @deprecated This method is deprecated in favor of <code>getItemCount</code>.  */public intcountItems(){  return(pItems.size());}/*************************************************************************//**  * Returns the item at the specified index in the list.  *  * @param index The index into the list to return the item from.  *  * @exception ArrayIndexOutOfBoundsException If the index is invalid.  */public StringgetItem(int index){  return((String)pItems.elementAt(index));}/*************************************************************************//**  * Adds the specified item to this choice box.  *  * @param item The item to add.  *  * @exception NullPointerException If the item's value is null  *  * @since 1.1  */public synchronized voidadd(String item){  if (item == null)    throw new NullPointerException ("item must be non-null");  pItems.addElement(item);  int i = pItems.size () - 1;  if (peer != null)    {      ChoicePeer cp = (ChoicePeer) peer;      cp.add (item, i);    }  if (i == 0)    select (0);}/*************************************************************************//**  * Adds the specified item to this choice box.  *  * This method is oboslete since Java 2 platform 1.1. Please use @see add  * instead.  *  * @param item The item to add.  *  * @exception NullPointerException If the item's value is equal to null  */public synchronized voidaddItem(String item){  add(item);}/*************************************************************************//** Inserts an item into this Choice.  Existing items are shifted * upwards.  If the new item is the only item, then it is selected. * If the currently selected item is shifted, then the first item is * selected.  If the currently selected item is not shifted, then it * remains selected. * * @param item The item to add. * @param index The index at which the item should be inserted. * * @exception IllegalArgumentException If index is less than 0 */public synchronized voidinsert(String item, int index){  if (index < 0)    throw new IllegalArgumentException ("index may not be less then 0");  if (index > getItemCount ())    index = getItemCount ();  pItems.insertElementAt(item, index);  if (peer != null)    {      ChoicePeer cp = (ChoicePeer) peer;      cp.add (item, index);    }  if (getItemCount () == 1 || selectedIndex >= index)    select (0);}/*************************************************************************//**  * Removes the specified item from the choice box.  *  * @param item The item to remove.  *  * @exception IllegalArgumentException If the specified item doesn't exist.  */public synchronized voidremove(String item){  int index = pItems.indexOf(item);  if (index == -1)    throw new IllegalArgumentException ("item \""					+ item + "\" not found in Choice");  remove(index);}/*************************************************************************//**  * Removes the item at the specified index from the choice box.  *  * @param index The index of the item to remove.  *  * @exception IndexOutOfBoundsException If the index is not valid.  */public synchronized voidremove(int index){  pItems.removeElementAt(index);  if (peer != null)    {      ChoicePeer cp = (ChoicePeer) peer;      cp.remove (index);    }  if (index == selectedIndex)    select (0);  else if (selectedIndex > index)    --selectedIndex;}/*************************************************************************//**  * Removes all of the objects from this choice box.  */public synchronized voidremoveAll(){  int count = getItemCount();  for (int i = 0; i < count; i++)    {      // Always remove 0.      remove(0);    }}/*************************************************************************//**  * Returns the currently selected item, or null if no item is  * selected.  *  * @return The currently selected item.  */public synchronized StringgetSelectedItem(){  return (selectedIndex == -1	  ? null	  : ((String)pItems.elementAt(selectedIndex)));}/*************************************************************************//**  * Returns an array with one row containing the selected item.  *  * @return An array containing the selected item.  */public synchronized Object[]getSelectedObjects(){  if (selectedIndex == -1)    return null;  Object[] objs = new Object[1];  objs[0] = pItems.elementAt(selectedIndex);  return(objs);}/*************************************************************************//**  * Returns the index of the selected item.  *  * @return The index of the selected item.  */public intgetSelectedIndex(){  return(selectedIndex);}/*************************************************************************//**  * Forces the item at the specified index to be selected.  *  * @param index The index of the row to make selected.  *  * @exception IllegalArgumentException If the specified index is invalid.  */public synchronized voidselect(int index){  if ((index < 0) || (index > getItemCount()))    throw new IllegalArgumentException("Bad index: " + index);  this.selectedIndex = index;  if (peer != null)    {      ChoicePeer cp = (ChoicePeer) peer;      cp.select (index);    }}/*************************************************************************//**  * Forces the named item to be selected.  *  * @param item The item to be selected.  *  * @exception IllegalArgumentException If the specified item does not exist.  */public synchronized voidselect(String item){  int index = pItems.indexOf(item);  if (index >= 0)    select(index);}/*************************************************************************//**  * Creates the native peer for this object.  */public voidaddNotify(){  if (peer == null)    peer = getToolkit ().createChoice (this);  super.addNotify ();}/*************************************************************************//**  * Adds the specified listener to the list of registered listeners for  * this object.  *  * @param listener The listener to add.  */public synchronized voidaddItemListener(ItemListener listener){  item_listeners = AWTEventMulticaster.add(item_listeners, listener);}/*************************************************************************//**  * Removes the specified listener from the list of registered listeners for  * this object.  *  * @param listener The listener to remove.  */public synchronized voidremoveItemListener(ItemListener listener){  item_listeners = AWTEventMulticaster.remove(item_listeners, listener);}/*************************************************************************//**  * Processes this event by invoking <code>processItemEvent()</code> if the  * event is an instance of <code>ItemEvent</code>, otherwise the event  * is passed to the superclass.  *  * @param event The event to process.  */protected voidprocessEvent(AWTEvent event){  if (event instanceof ItemEvent)    processItemEvent((ItemEvent)event);  else    super.processEvent(event);}/*************************************************************************//**  * Processes item event by dispatching to any registered listeners.  *  * @param event The event to process.  */protected voidprocessItemEvent(ItemEvent event){  if (item_listeners != null)    item_listeners.itemStateChanged(event);}voiddispatchEventImpl(AWTEvent e){  if (e.id <= ItemEvent.ITEM_LAST      && e.id >= ItemEvent.ITEM_FIRST      && (item_listeners != null 	  || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0))    processEvent(e);  else    super.dispatchEventImpl(e);}/*************************************************************************//**  * Returns a debugging string for this object.  *  * @return A debugging string for this object.  */protected StringparamString(){  return ("selectedIndex=" + selectedIndex + "," + super.paramString());}} // class Choice 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲v日本v欧美v久久精品| ㊣最新国产の精品bt伙计久久| 日韩视频免费直播| 国产精品成人免费在线| 偷窥国产亚洲免费视频| 成年人国产精品| 日韩精品最新网址| 亚洲国产中文字幕| 日本欧美韩国一区三区| 91丨porny丨中文| 国产日韩成人精品| 麻豆成人久久精品二区三区红| 色8久久精品久久久久久蜜| 久久精品免视看| 久久精品国产一区二区三区免费看| 欧美性三三影院| 亚洲另类在线制服丝袜| www.成人网.com| 日本一区二区三区四区在线视频| 久久99精品一区二区三区三区| 欧美日韩国产小视频在线观看| 日韩伦理免费电影| 99久久久国产精品免费蜜臀| 久久精品视频一区二区| 国产乱对白刺激视频不卡| 日韩欧美在线影院| 蜜臀久久99精品久久久久宅男| 欧美亚洲禁片免费| 亚洲午夜在线视频| 精品视频一区二区不卡| 亚洲一区二区中文在线| 国产精品久久毛片| 欧美美女网站色| 日韩码欧中文字| 色综合久久久久综合99| 国产精品国产馆在线真实露脸| 国产成人8x视频一区二区| 久久老女人爱爱| 国产一区二区三区香蕉| 久久亚洲免费视频| 粗大黑人巨茎大战欧美成人| 国产日产欧美一区二区三区| 成人综合在线视频| 亚洲精品国久久99热| 菠萝蜜视频在线观看一区| 最新日韩av在线| 欧美亚洲动漫制服丝袜| 亚洲电影一级片| 欧美一级片免费看| 国产在线观看一区二区| 中文av字幕一区| 色婷婷狠狠综合| 日韩国产在线一| 久久综合狠狠综合| 欧美aa在线视频| 精品国产乱码久久久久久蜜臀| 麻豆91在线播放免费| 国产欧美精品一区aⅴ影院| 99久久精品免费看国产免费软件| 亚洲人精品一区| 91精品国产色综合久久久蜜香臀| 精品影视av免费| 欧美激情一区二区在线| 色婷婷久久久综合中文字幕 | 东方aⅴ免费观看久久av| 国产精品久久久久影院老司| 日本道免费精品一区二区三区| 日本欧美一区二区在线观看| 国产日韩欧美电影| 欧美精品在线观看播放| 国产伦精品一区二区三区视频青涩 | 国产在线一区二区| 日本一区二区三区高清不卡 | 国内精品嫩模私拍在线| 中文文精品字幕一区二区| 欧美影院午夜播放| 欧美日韩dvd在线观看| 久久激五月天综合精品| 自拍偷拍国产亚洲| 欧美一区二区三区视频免费播放| 粗大黑人巨茎大战欧美成人| 日本亚洲最大的色成网站www| 国产精品天天看| 91精品国产91热久久久做人人 | 91视视频在线观看入口直接观看www| 午夜精品久久一牛影视| 亚洲国产成人一区二区三区| www.66久久| fc2成人免费人成在线观看播放| 亚洲欧美视频在线观看| 精品国产一区二区三区不卡| 在线视频一区二区免费| 国产精品456露脸| 日韩制服丝袜先锋影音| 1区2区3区精品视频| 2024国产精品| 8x福利精品第一导航| 日本久久电影网| 成人黄色一级视频| 久久激情综合网| 日韩电影一二三区| 亚洲图片欧美综合| 一区二区三区在线视频观看| 国产精品久久久久aaaa樱花| 国产欧美一区二区三区鸳鸯浴 | 成人免费视频caoporn| 理论片日本一区| 蜜臀av亚洲一区中文字幕| 亚洲亚洲精品在线观看| 一区二区三区精品久久久| 中文字幕一区二区5566日韩| 欧美国产一区二区| 久久九九全国免费| 久久久久9999亚洲精品| 欧美大片在线观看| 欧美一区二区精品久久911| 欧美午夜不卡视频| 欧美精品tushy高清| 欧美美女直播网站| 日韩视频123| 91麻豆精品国产91久久久久久久久 | 中文在线一区二区| 国产精品免费观看视频| 国产精品欧美精品| 亚洲欧洲99久久| 一级中文字幕一区二区| 亚洲一二三专区| 日韩福利电影在线| 加勒比av一区二区| 国产黄色精品视频| 99这里只有久久精品视频| 一本到不卡免费一区二区| 在线观看一区二区视频| 欧美精品xxxxbbbb| 久久综合色之久久综合| 中文在线资源观看网站视频免费不卡| 亚洲国产精品ⅴa在线观看| **性色生活片久久毛片| 亚洲一区二区三区四区不卡| 日本免费新一区视频 | 三级久久三级久久| 毛片基地黄久久久久久天堂| 国产精品77777| 在线看国产日韩| 欧美不卡在线视频| 国产精品久久久久久久第一福利 | 美女mm1313爽爽久久久蜜臀| 风间由美一区二区三区在线观看| 91玉足脚交白嫩脚丫在线播放| 欧美日韩国产经典色站一区二区三区 | 亚洲精品国产一区二区精华液| 丝袜美腿亚洲色图| 国产成人午夜精品5599| 91久久精品一区二区三| 精品欧美一区二区久久| 亚洲婷婷综合久久一本伊一区| 日韩国产在线一| bt欧美亚洲午夜电影天堂| 91精品在线麻豆| 久久99国内精品| 不卡的av电影| 26uuu精品一区二区| 一区二区成人在线观看| 国产成人免费9x9x人网站视频| 欧美色图激情小说| 国产精品免费视频网站| 蜜臀av在线播放一区二区三区| 色综合久久久久网| 国产日韩欧美激情| 老汉av免费一区二区三区| 91黄色在线观看| 中文字幕av在线一区二区三区| 秋霞午夜av一区二区三区| 色综合久久88色综合天天免费| 2020国产精品久久精品美国| 视频在线观看一区| 日本道精品一区二区三区| 国产精品丝袜一区| 国产综合久久久久久久久久久久 | 这里只有精品电影| 亚洲免费毛片网站| 成人天堂资源www在线| 精品国产伦理网| 偷拍自拍另类欧美| 欧美在线免费播放| 最新欧美精品一区二区三区| 国产99精品视频| 国产无人区一区二区三区| 久久99久久久久久久久久久| 5月丁香婷婷综合| 亚洲电影一区二区三区| 欧美中文一区二区三区| 亚洲三级免费观看| 成人av在线资源网站| 国产女同互慰高潮91漫画| 国产呦萝稀缺另类资源| 久久免费看少妇高潮| 激情文学综合丁香| 精品乱码亚洲一区二区不卡| 美女网站一区二区|