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

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

?? menu.java

?? linux下編程用 編譯軟件
?? 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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91国在线观看| 欧美专区亚洲专区| 91福利视频在线| 精品免费日韩av| 一级女性全黄久久生活片免费| 狂野欧美性猛交blacked| 99久久伊人网影院| 精品国产凹凸成av人导航| 亚洲与欧洲av电影| 91同城在线观看| 国产欧美精品一区二区三区四区| 视频一区欧美精品| 欧美亚洲愉拍一区二区| 中文字幕一区日韩精品欧美| 国产一区二区在线视频| 91精品国产综合久久香蕉的特点| 亚洲美女在线国产| 成人综合日日夜夜| 精品国产三级a在线观看| 男女男精品网站| 欧美日韩一区二区三区在线| 亚洲精品成人少妇| 国产精品99久久久久久有的能看 | 91亚洲大成网污www| 国产亚洲精品bt天堂精选| 精品一区二区三区免费视频| 日韩色在线观看| 美女国产一区二区| 日韩欧美你懂的| 激情综合一区二区三区| 欧美不卡在线视频| 国产在线日韩欧美| 久久女同精品一区二区| 国产一区在线看| 欧美高清在线精品一区| 不卡免费追剧大全电视剧网站| 久久综合久久综合亚洲| 国产成人综合在线观看| 久久众筹精品私拍模特| 国产一区二区在线免费观看| 久久这里都是精品| 国产mv日韩mv欧美| 国产精品女主播在线观看| 国产成人免费在线视频| 国产欧美视频在线观看| 国产成都精品91一区二区三| 国产精品入口麻豆原神| 91在线观看一区二区| 亚洲精品国产a| 在线成人av影院| 韩国中文字幕2020精品| 亚洲国产精品黑人久久久| 91丨porny丨首页| 亚洲一区二区美女| 欧美一区二区精品久久911| 久久99最新地址| 国产欧美精品一区aⅴ影院| 91在线国内视频| 日韩成人精品在线| 久久久久久免费毛片精品| 成人av在线资源| 亚洲动漫第一页| 精品乱人伦一区二区三区| 成人av动漫网站| 亚洲成a人v欧美综合天堂| 日韩视频中午一区| 粗大黑人巨茎大战欧美成人| 亚洲韩国精品一区| 国产日韩欧美高清在线| 91传媒视频在线播放| 久久国产精品第一页| 国产精品电影一区二区三区| 欧美日韩国产天堂| 国产成人高清视频| 一区二区在线看| 精品久久久久久综合日本欧美| 99久久精品国产网站| 另类成人小视频在线| 亚洲国产成人一区二区三区| 欧美日韩第一区日日骚| 国产乱码精品一品二品| 一区二区三区国产精华| 亚洲精品一区二区三区香蕉| 欧美在线999| 国产福利一区在线观看| 视频一区免费在线观看| 亚洲人成影院在线观看| 久久久国产精品麻豆| 91精品国产入口| 欧美性一二三区| 91免费视频大全| 成人性生交大片免费看中文| 欧美a一区二区| 一区二区在线观看免费| 中文字幕亚洲欧美在线不卡| 国产色婷婷亚洲99精品小说| 日韩三级中文字幕| 欧美日韩一级二级| 在线亚洲一区二区| 9l国产精品久久久久麻豆| 国产一区免费电影| 久久电影网电视剧免费观看| 午夜不卡av免费| 亚洲午夜av在线| 曰韩精品一区二区| 亚洲精品日韩一| 亚洲欧洲成人av每日更新| 国产欧美日韩在线观看| 2021久久国产精品不只是精品| 日韩精品一区二区三区在线观看 | 亚洲成人黄色小说| 一区二区三区蜜桃网| 亚洲欧美电影院| 一区二区三区在线播放| 中文字幕一区二区在线观看| 最新不卡av在线| 亚洲美女少妇撒尿| 亚洲精品欧美综合四区| 亚洲亚洲精品在线观看| 亚洲国产裸拍裸体视频在线观看乱了| 亚洲欧美日韩国产综合| 一区二区在线观看免费视频播放| 樱桃视频在线观看一区| 亚洲一区二区三区激情| 午夜精品爽啪视频| 日精品一区二区三区| 蜜桃av一区二区| 国产精品自拍一区| 成人夜色视频网站在线观看| av在线一区二区三区| 欧美在线观看禁18| 日韩欧美一区二区免费| 久久久久免费观看| 2022国产精品视频| 亚洲视频在线一区| 日韩国产精品大片| 国产精品资源站在线| 成人精品国产免费网站| 欧美性猛交xxxxxxxx| 日韩免费视频一区二区| 欧美国产精品中文字幕| 亚洲美女在线国产| 麻豆国产精品一区二区三区 | 精品在线观看视频| 懂色av一区二区三区蜜臀| 一本色道a无线码一区v| 日韩欧美亚洲国产另类| 国产精品少妇自拍| 日韩精品三区四区| 成人国产视频在线观看| 欧美视频一区二区三区| 国产亚洲欧美日韩俺去了| 亚洲国产综合色| 国产一区二区三区日韩| 91久久精品午夜一区二区| 精品美女一区二区三区| 亚洲免费av高清| 国内精品国产成人国产三级粉色| 色婷婷精品久久二区二区蜜臂av| 欧美tickling挠脚心丨vk| 亚洲欧美一区二区三区久本道91 | 亚洲va国产天堂va久久en| 国产成人av一区二区三区在线| 在线观看日韩国产| 久久综合九色综合久久久精品综合| 亚洲色图第一区| 国产成人精品www牛牛影视| 91精品啪在线观看国产60岁| 亚洲人精品午夜| 国产电影精品久久禁18| 日韩一级精品视频在线观看| 亚洲美女少妇撒尿| 成熟亚洲日本毛茸茸凸凹| 欧美变态口味重另类| 亚洲高清免费观看高清完整版在线观看 | 久久99久久精品| 欧美在线三级电影| 亚洲日本护士毛茸茸| 国产在线视频不卡二| 日韩一区二区在线播放| 亚洲成人7777| 欧美日韩一区二区三区四区五区| 最新久久zyz资源站| 国产.欧美.日韩| 久久久午夜精品理论片中文字幕| 日本在线不卡一区| 欧美男男青年gay1069videost| 一区二区三区在线视频播放 | 国产久卡久卡久卡久卡视频精品| 日韩你懂的在线观看| 日韩av不卡一区二区| 6080午夜不卡| 石原莉奈一区二区三区在线观看| 精品视频一区三区九区| 一区二区理论电影在线观看| 日本道精品一区二区三区| 亚洲精品网站在线观看| 色婷婷一区二区| 亚洲无人区一区| 欧美欧美午夜aⅴ在线观看|