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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? menu.java

?? gcc的組建
?? JAVA
字號:
/* Menu.java -- A Java AWT Menu   Copyright (C) 1999, 2002, 2004 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., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301 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.MenuPeer;import java.io.Serializable;import java.util.Enumeration;import java.util.Vector;import javax.accessibility.AccessibleContext;import javax.accessibility.AccessibleRole;/**  * This class represents a pull down or tear off menu in Java's AWT.  *  * @author Aaron M. Renn (arenn@urbanophile.com)  */public class Menu extends MenuItem implements MenuContainer, Serializable{/* * Static Variables */// Serialization Constantprivate static final long serialVersionUID = -8809584163345499784L;/*************************************************************************//* * Instance Variables *//**  * @serial The actual items in the menu  */private Vector items = new Vector();/**  * @serial Flag indicating whether or not this menu is a tear off  */private boolean tearOff;/**  * @serial Indicates whether or not this is a help menu.  */private boolean isHelpMenu;  /*   * @serial Unused in this implementation, but present in Sun's   * serialization spec.  Value obtained via reflection.   */  private int menuSerializedDataVersion = 1;static final transient String separatorLabel = "-";/*************************************************************************//* * Constructors *//**  * Initializes a new instance of <code>Menu</code> with no label and that  * is not a tearoff;  *  * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.  */publicMenu(){}/*************************************************************************//**  * Initializes a new instance of <code>Menu</code> that is not a tearoff and  * that has the specified label.  *  * @param label The menu label.  *  * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.  */publicMenu(String label){  this(label, false);}/*************************************************************************//**  * Initializes a new instance of <code>Menu</code> with the specified  * label and tearoff status.  *  * @param label The label for this menu  * @param isTearOff <code>true</code> if this menu is a tear off menu,  * <code>false</code> otherwise.  *  * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.  */publicMenu(String label, boolean isTearOff){  super(label);  tearOff = isTearOff;  if (label.equals("Help"))    isHelpMenu = true;  if (GraphicsEnvironment.isHeadless())    throw new HeadlessException ();}/*************************************************************************//* * Instance Methods *//**  * Tests whether or not this menu is a tearoff.  *  * @return <code>true</code> if this menu is a tearoff, <code>false</code>  * otherwise.  */public booleanisTearOff(){  return(tearOff);}/*************************************************************************//**  * Returns the number of items in this menu.  *  * @return The number of items in this menu.  */public intgetItemCount(){  return countItems ();}/** * Returns the number of items in this menu. * * @return The number of items in this menu. * * @deprecated As of JDK 1.1, replaced by getItemCount(). */public int countItems (){  return items.size ();} /*************************************************************************//**  * Returns the item at the specified index.  *  * @return The item at the specified index.  *  * @exception ArrayIndexOutOfBoundsException If the index value is not valid.  */public MenuItemgetItem(int index){  return((MenuItem)items.elementAt(index));}/*************************************************************************//**  * Adds the specified item to this menu.  If it was previously part of  * another menu, it is first removed from that menu.  *  * @param item The new item to add.  *  * @return The item that was added.  */public MenuItemadd(MenuItem item){  items.addElement(item);  if (item.parent != null)    {      item.parent.remove(item);    }  item.parent = this;  if (peer != null)    {      MenuPeer mp = (MenuPeer) peer;      mp.addItem(item);    }  return item;}/*************************************************************************//**  * Add an item with the specified label to this menu.  *  * @param label The label of the menu item to add.  */public voidadd(String label){  add(new MenuItem(label));}/*************************************************************************//**  * Inserts the specified menu item into this menu at the specified index.  *  * @param item The menu item to add.  * @param index The index of the menu item.  *  * @exception IllegalArgumentException If the index is less than zero.  * @exception ArrayIndexOutOfBoundsException If the index is otherwise invalid.  */public voidinsert(MenuItem item, int index){  if (index < 0)    throw new IllegalArgumentException("Index is less than zero");  MenuPeer peer = (MenuPeer) getPeer();  if (peer == null)    return;  int count = getItemCount ();  if (index >= count)    peer.addItem (item);  else    {      for (int i = count - 1; i >= index; i--)        peer.delItem (i);      peer.addItem (item);      for (int i = index; i < count; i++)        peer.addItem ((MenuItem) items.elementAt (i));    }  items.insertElementAt(item, index);}/*************************************************************************//**  * Inserts an item with the specified label into this menu at the specified index.  *  * @param label The label of the item to add.  * @param index The index of the menu item.  *  * @exception IllegalArgumentException If the index is less than zero.  * @exception ArrayIndexOutOfBoundsException If the index is otherwise invalid.  */public voidinsert(String label, int index){  insert(new MenuItem(label), index);}/*************************************************************************//**  * Adds a separator bar at the current menu location.  */public voidaddSeparator(){  add(new MenuItem(separatorLabel));}/*************************************************************************//**  * Inserts a separator bar at the specified index value.  *  * @param index The index at which to insert a separator bar.  *  * @exception IllegalArgumentException If the index is less than zero.  * @exception ArrayIndexOutOfBoundsException If the index is otherwise invalid.  */public voidinsertSeparator(int index){  insert(new MenuItem(separatorLabel), index);}/*************************************************************************//**  * Deletes the item at the specified index from this menu.  *  * @param index The index of the item to remove.  *   * @exception ArrayIndexOutOfBoundsException If the index is otherwise invalid.  */public synchronized voidremove(int index){  items.removeElementAt(index);  MenuPeer mp = (MenuPeer)getPeer();  if (mp != null)    mp.delItem(index);}/*************************************************************************//**  * Removes the specifed item from the menu.  If the specified component  * does not exist, this method does nothing.  *  * @param item The component to remove.  */public voidremove(MenuComponent item){  int index = items.indexOf(item);  if (index == -1)    return;  remove(index);}/*************************************************************************//**  * Removes all the elements from this menu.  */public synchronized voidremoveAll(){  int count = getItemCount();  for(int i = 0; i < count; i++)    {      // We must always remove item 0.      remove(0);    }}/*************************************************************************//**  * Creates the native peer for this object.  */public voidaddNotify(){  if (peer == null)    peer = getToolkit().createMenu(this);  Enumeration e = items.elements();  while (e.hasMoreElements())  {    MenuItem mi = (MenuItem)e.nextElement();    mi.addNotify();  }      super.addNotify ();}/*************************************************************************//**  * Destroys the native peer for this object.  */public voidremoveNotify(){  Enumeration e = items.elements();  while (e.hasMoreElements())  {    MenuItem mi = (MenuItem) e.nextElement();    mi.removeNotify();  }  super.removeNotify();}/*************************************************************************//**  * Returns a debugging string for this menu.  *  * @return A debugging string for this menu.  */public StringparamString(){  return (",tearOff=" + tearOff + ",isHelpMenu=" + isHelpMenu	  + super.paramString());}  /**   * Basic Accessibility class for Menu.  Details get provided in derived   * classes.   */  protected class AccessibleAWTMenu extends AccessibleAWTMenuItem  {    private static final long serialVersionUID = 5228160894980069094L;    protected AccessibleAWTMenu()    {    }        public AccessibleRole getAccessibleRole()    {      return AccessibleRole.MENU;    }  }  /**   * Gets the AccessibleContext associated with this <code>Menu</code>.   * The context is created, if necessary.   *   * @return the associated context   */  public AccessibleContext getAccessibleContext()  {    /* Create the context if this is the first request */    if (accessibleContext == null)      accessibleContext = new AccessibleAWTMenu();    return accessibleContext;  }} // class Menu

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品在线一区二区三区| 91在线视频免费观看| 久久久久久久综合狠狠综合| 成人av电影观看| 免费观看在线色综合| 最新热久久免费视频| 久久综合狠狠综合久久综合88 | 国产综合色产在线精品| 17c精品麻豆一区二区免费| 欧美一区二区三区色| 色婷婷综合久久| 国产91高潮流白浆在线麻豆| 日韩高清一区二区| 亚洲欧美国产三级| 国产亚洲污的网站| 国产乱人伦偷精品视频免下载 | 国产99精品国产| 美女一区二区视频| 亚洲国产美女搞黄色| 国产精品成人一区二区艾草| 久久蜜桃一区二区| 欧美一级日韩免费不卡| 欧美主播一区二区三区美女| 99综合电影在线视频| 国产精品资源在线看| 国产精品美女久久久久久久 | 久久综合久久久久88| 91精品在线免费| 欧美日韩久久久一区| 色诱亚洲精品久久久久久| 成人午夜激情影院| 国产成人一区在线| 国产精一品亚洲二区在线视频| 亚洲国产精品高清| 国产无遮挡一区二区三区毛片日本| 欧美一区二区久久| 制服.丝袜.亚洲.另类.中文| 欧美日韩日本视频| 欧美日韩成人在线| 91精品国产91久久久久久一区二区| 精品视频在线免费观看| 欧美理论电影在线| 欧美日韩mp4| 欧美一区三区四区| 国产不卡高清在线观看视频| 国产成人综合网| 国产成人av影院| 成人午夜视频网站| 91色乱码一区二区三区| 一本色道久久综合狠狠躁的推荐| 一本一道综合狠狠老| 色婷婷狠狠综合| 在线观看欧美日本| 欧美老年两性高潮| 欧美一区二区三区播放老司机| 国产在线精品免费av| 国产精品一区二区三区乱码| 国产精品系列在线观看| 成人亚洲一区二区一| 色偷偷久久人人79超碰人人澡| 91久久香蕉国产日韩欧美9色| 欧美在线免费播放| 日韩无一区二区| 亚洲国产视频在线| 精品久久一区二区三区| 亚洲国产综合色| 视频一区在线播放| 国内精品免费**视频| 成人动漫视频在线| 欧美色图12p| 欧美成人免费网站| 国产精品国产自产拍高清av王其 | 国产精品一区2区| 99国产精品一区| 欧美性大战久久久| 国产精品性做久久久久久| 一本大道综合伊人精品热热| 欧美美女bb生活片| 久久久91精品国产一区二区精品 | 亚洲一区二区三区爽爽爽爽爽| 偷拍亚洲欧洲综合| 国产成人自拍在线| 欧美在线免费视屏| 久久久国产精品麻豆| 亚洲国产日韩一级| 国产精品影视在线观看| 在线一区二区观看| 久久久久久电影| 亚洲成人动漫在线观看| 国产精品一级二级三级| 欧美日韩卡一卡二| 国产精品久线在线观看| 麻豆精品蜜桃视频网站| av在线综合网| 日韩欧美一区电影| 一区二区三区中文在线观看| 狠狠色综合色综合网络| 欧美亚洲一区三区| 国产日本欧美一区二区| 日本亚洲三级在线| 日本高清视频一区二区| 久久蜜桃香蕉精品一区二区三区| 亚洲第一久久影院| 91麻豆免费看片| 国产色综合一区| 免费成人在线观看| 欧美日韩中文另类| 1区2区3区国产精品| 国产福利精品一区| 欧美sm极限捆绑bd| 视频精品一区二区| 色婷婷亚洲综合| 国产精品久久久久久久午夜片| 久久精品国产一区二区三| 久久国产欧美日韩精品| 欧美日韩国产中文| 一级女性全黄久久生活片免费| 国产成人综合亚洲91猫咪| 精品成人一区二区三区四区| 亚洲成av人片一区二区| 日本成人在线一区| 欧美日韩黄色一区二区| 亚洲美女免费视频| 99久久国产综合精品麻豆| 国产欧美在线观看一区| 国产一区不卡在线| 久久亚洲综合色一区二区三区| 青青草国产精品97视觉盛宴| 欧美色图片你懂的| 一区二区三区中文在线| 日本韩国欧美在线| 欧美日韩国产综合一区二区三区| 一区二区不卡在线视频 午夜欧美不卡在 | 亚洲男人的天堂一区二区| 成人精品视频一区| 国产精品乱子久久久久| va亚洲va日韩不卡在线观看| 国产人伦精品一区二区| 成人h精品动漫一区二区三区| 国产亚洲成aⅴ人片在线观看 | 国产精品久线观看视频| gogo大胆日本视频一区| 国产精品国产三级国产有无不卡| av电影在线观看一区| 亚洲天堂久久久久久久| 色999日韩国产欧美一区二区| 一区二区三区在线观看网站| 欧美性猛交xxxx乱大交退制版| 亚洲高清免费视频| 欧美肥大bbwbbw高潮| 蜜桃视频在线观看一区| 精品福利一二区| 国产盗摄一区二区三区| 国产精品久久久久久久午夜片| 99re热视频精品| 亚洲一二三专区| 欧美大片一区二区| 国产乱码字幕精品高清av| 亚洲欧美怡红院| 欧美性极品少妇| 国模一区二区三区白浆| 国产欧美日本一区视频| 91在线视频免费91| 天天影视网天天综合色在线播放| 欧美电视剧免费全集观看| 粗大黑人巨茎大战欧美成人| 一区二区三区在线观看视频| 在线成人高清不卡| 国产大片一区二区| 亚洲激情自拍偷拍| 日韩免费高清av| www.欧美.com| 日本三级亚洲精品| 国产三区在线成人av| 在线影视一区二区三区| 久久国产精品99久久人人澡| 中文字幕一区二区三区蜜月| 欧美性大战久久久久久久蜜臀| 韩国精品在线观看| 亚洲乱码国产乱码精品精可以看 | 欧美成人精品二区三区99精品| 国产精品18久久久久| 亚洲黄色免费电影| 欧美精品一区视频| 91豆麻精品91久久久久久| 国产一区二区在线视频| 亚洲综合一区二区| 欧美激情一区在线| 欧美一区二区三区视频免费| 91一区二区在线| 国内精品在线播放| 丝袜国产日韩另类美女| 亚洲婷婷在线视频| 精品福利一二区| 9191国产精品| 色综合中文综合网| 国产精品一二三四五| 午夜在线电影亚洲一区| 欧美军同video69gay| 91小视频在线免费看|