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

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

?? button.java

?? gcc的組建
?? JAVA
字號:
/* Button.java -- AWT button widget   Copyright (C) 1999, 2002, 2004, 2005  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.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.peer.ButtonPeer;import java.lang.reflect.Array;import java.util.EventListener;import javax.accessibility.Accessible;import javax.accessibility.AccessibleAction;import javax.accessibility.AccessibleContext;import javax.accessibility.AccessibleRole;import javax.accessibility.AccessibleValue;/**  * This class provides a button widget for the AWT.   *  * @author Aaron M. Renn (arenn@urbanophile.com)  * @author Tom Tromey (tromey@cygnus.com)  */public class Button extends Component  implements java.io.Serializable, Accessible{/* * Static Variables */// FIXME: Need readObject/writeObject for serialization// Serialization version constantprivate static final long serialVersionUID = -8774683716313001058L;/*************************************************************************//* * Instance Variables *//**  * @serial The action command name for this button.  * This is package-private to avoid an accessor method.  */String actionCommand;/**  * @serial The label for this button.  * This is package-private to avoid an accessor method.  */String label;// List of ActionListeners for this class.private transient ActionListener action_listeners;  /*   * The number used to generate the name returned by getName.   */  private static transient long next_button_number;    protected class AccessibleAWTButton extends AccessibleAWTComponent    implements AccessibleAction, AccessibleValue  {    public static final long serialVersionUID = -5932203980244017102L;    protected AccessibleAWTButton()    {      // Do nothing here.    }    /* (non-Javadoc)     * @see javax.accessibility.AccessibleAction#getAccessibleActionCount()     */    public int getAccessibleActionCount()    {      // Only 1 action possible      return 1;    }    /* (non-Javadoc)     * @see javax.accessibility.AccessibleAction#getAccessibleActionDescription(int)     */    public String getAccessibleActionDescription(int i)    {      // JDK 1.4.2 returns the string "click" for action 0.  However, the API      // docs don't say what the string to be returned is, beyond being a      // description of the action.  So we return the same thing for      // compatibility with 1.4.2.      if (i == 0)        return "click";      return null;    }    /* (non-Javadoc)     * @see javax.accessibility.AccessibleAction#doAccessibleAction(int)     */    public boolean doAccessibleAction(int i)    {      if (i != 0)        return false;      processActionEvent(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, actionCommand));      return true;    }        public String getAccessibleName()    {      return label;    }        public AccessibleAction getAccessibleAction()    {      return this;    }        public AccessibleValue getAccessibleValue()    {      return this;    }    /* (non-Javadoc)     * @see javax.accessibility.AccessibleValue#getCurrentAccessibleValue()     */    public Number getCurrentAccessibleValue()    {      // Docs say return 1 if selected, but buttons can't be selected, right?      return new Integer(0);    }    /* (non-Javadoc)     * @see javax.accessibility.AccessibleValue#setCurrentAccessibleValue(java.lang.Number)     */    public boolean setCurrentAccessibleValue(Number number)    {      // Since there's no selection with buttons, we're ignoring this.      // TODO someone who knows shoulw check this.      return false;    }    /* (non-Javadoc)     * @see javax.accessibility.AccessibleValue#getMinimumAccessibleValue()     */    public Number getMinimumAccessibleValue()    {      return new Integer(0);    }    /* (non-Javadoc)     * @see javax.accessibility.AccessibleValue#getMaximumAccessibleValue()     */    public Number getMaximumAccessibleValue()    {      return new Integer(0);    }        public AccessibleRole getAccessibleRole()    {      return AccessibleRole.PUSH_BUTTON;    }  }/*************************************************************************//* * Constructors *//**  * Initializes a new instance of <code>Button</code> with no label.  *  * @exception HeadlessException If GraphicsEnvironment.isHeadless()  * returns true  */publicButton(){  this("");}/*************************************************************************//**  * Initializes a new instance of <code>Button</code> with the specified  * label.  The action command name is also initialized to this value.  *  * @param label The label to display on the button.  *  * @exception HeadlessException If GraphicsEnvironment.isHeadless()  * returns true  */publicButton(String label){  this.label = label;  actionCommand = label;  if (GraphicsEnvironment.isHeadless ())    throw new HeadlessException ();}/*************************************************************************//* * Instance Variables *//**  * Returns the label for this button.  *  * @return The label for this button.  */public StringgetLabel(){  return(label);}/*************************************************************************//**  * Sets the label for this button to the specified value.  *  * @param label The new label for this button.  */public synchronized voidsetLabel(String label){  this.label = label;  actionCommand = label;  if (peer != null)    {      ButtonPeer bp = (ButtonPeer) peer;      bp.setLabel (label);    }}/*************************************************************************//**  * Returns the action command name for this button.  *  * @return The action command name for this button.  */public StringgetActionCommand(){  return(actionCommand);}/*************************************************************************//**  * Sets the action command name for this button to the specified value.  *  * @param actionCommand The new action command name.  */public voidsetActionCommand(String actionCommand){  this.actionCommand = actionCommand == null ? label : actionCommand;}/*************************************************************************//**  * Adds a new entry to the list of listeners that will receive  * action events from this button.  *  * @param listener The listener to add.  */public synchronized voidaddActionListener(ActionListener listener){  action_listeners = AWTEventMulticaster.add(action_listeners, listener);}/*************************************************************************//**  * Removes the specified listener from the list of listeners that will  * receive action events from this button.  *   * @param listener The listener to remove.  */public synchronized voidremoveActionListener(ActionListener listener){  action_listeners = AWTEventMulticaster.remove(action_listeners, listener);}  /**   * Returns all added <code>ActionListener</code> objects.   *   * @return an array of listeners   *   * @since 1.4   */  public synchronized ActionListener[] getActionListeners()  {    return (ActionListener[])      AWTEventMulticaster.getListeners(action_listeners,                                       ActionListener.class);  }/** * Returns all registered EventListers of the given listenerType.  * listenerType must be a subclass of EventListener, or a  * ClassClassException is thrown. * * @param listenerType the listener type to return * * @return an array of listeners *  * @exception ClassCastException If listenerType doesn't specify a class or * interface that implements @see java.util.EventListener. * * @since 1.3  */  public EventListener[] getListeners(Class listenerType)  {    if (listenerType == ActionListener.class)      return getActionListeners();    return (EventListener[]) Array.newInstance(listenerType, 0);  }/*************************************************************************//**  * Notifies this button that it should create its native peer object.  */public voidaddNotify(){  if (peer == null)    peer = getToolkit ().createButton (this);  super.addNotify();}/*************************************************************************//**  * Processes an event for this button.  If the specified event is an  * instance of <code>ActionEvent</code>, then the  * <code>processActionEvent()</code> method is called to dispatch it  * to any registered listeners.  Otherwise, the superclass method  * will be invoked.  Note that this method will not be called at all  * unless <code>ActionEvent</code>'s are enabled.  This will be done  * implicitly if any listeners are added.  *  * @param event The event to process.  */protected voidprocessEvent(AWTEvent event){  if (event instanceof ActionEvent)    processActionEvent((ActionEvent)event);  else    super.processEvent(event);}/*************************************************************************//**  * This method dispatches an action event for this button to any  * registered listeners.  *  * @param event The event to process.  */protected voidprocessActionEvent(ActionEvent event){  if (action_listeners != null)    action_listeners.actionPerformed(event);}voiddispatchEventImpl(AWTEvent e){  if (e.id <= ActionEvent.ACTION_LAST       && e.id >= ActionEvent.ACTION_FIRST      && (action_listeners != null 	  || (eventMask & AWTEvent.ACTION_EVENT_MASK) != 0))    processEvent(e);  else    super.dispatchEventImpl(e);}/*************************************************************************//**  * Returns a debugging string for this button.  *  * @return A debugging string for this button.  */protected StringparamString(){  return getName () + "," + getX () + "," + getY () + ","    + getWidth () + "x" + getHeight () + ",label=" + getLabel ();}/** * Gets the AccessibleContext associated with this <code>Button</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 AccessibleAWTButton();  return accessibleContext;}  /**   * Generate a unique name for this button.   *   * @return A unique name for this button.   */  String generateName ()  {    return "button" + getUniqueLong ();  }  private static synchronized long getUniqueLong ()  {    return next_button_number++;  }} // class Button 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区在线免费观看| 亚洲成人综合网站| 国产精品色呦呦| 国产亚洲午夜高清国产拍精品| 日本一区二区视频在线| 亚洲免费在线播放| 99精品视频在线观看| 亚洲国产精品精华液ab| 91性感美女视频| 8v天堂国产在线一区二区| 国产欧美视频在线观看| 成人黄色电影在线| 欧美日精品一区视频| 亚洲成人动漫在线观看| 日韩欧美一二三区| 成人手机在线视频| 亚洲超碰精品一区二区| 精品国产网站在线观看| 本田岬高潮一区二区三区| 亚洲一区二区五区| 日韩午夜激情免费电影| 9l国产精品久久久久麻豆| 亚洲成国产人片在线观看| 久久综合色婷婷| 中文字幕亚洲综合久久菠萝蜜| 成人综合在线视频| 亚洲h在线观看| 日韩欧美国产一区二区三区| 国产99久久精品| 图片区小说区区亚洲影院| 久久久国产精品不卡| 欧美性一二三区| 福利一区二区在线| 日韩电影在线免费看| 中文字幕一区在线观看| 欧美大尺度电影在线| 在线免费精品视频| 国产精品一区一区三区| 丝袜亚洲精品中文字幕一区| 中文字幕乱码亚洲精品一区| 欧美一级在线观看| 色av一区二区| 国产九色sp调教91| 视频一区二区中文字幕| 亚洲人123区| 欧美国产日本视频| 日韩欧美国产精品一区| 91麻豆精品视频| 粉嫩av一区二区三区在线播放| 亚洲图片一区二区| 国产精品国产三级国产a| 精品国产区一区| 欧美日韩国产a| 91色在线porny| 成人一区二区三区视频| 国产在线不卡视频| 日韩一区二区三| 亚洲国产成人精品视频| 在线一区二区视频| 亚洲国产视频直播| 日韩亚洲欧美在线观看| 在线观看视频91| 欧美mv日韩mv国产网站| 亚洲第一激情av| 99精品欧美一区二区三区小说| 91精品国产综合久久精品麻豆| 色综合久久久久久久| 奇米精品一区二区三区四区 | 国产精品久久久一本精品| 亚洲欧洲精品成人久久奇米网| 欧美老女人第四色| 欧美性受xxxx黑人xyx性爽| 一区二区三区在线观看网站| 99国产一区二区三精品乱码| 26uuu久久综合| 国产一区不卡在线| 亚洲午夜私人影院| 精品国产自在久精品国产| 94-欧美-setu| 99re这里只有精品首页| 色综合久久中文综合久久牛| 91福利精品视频| 欧美亚洲自拍偷拍| 欧美久久久久免费| 欧美成人精品1314www| 91毛片在线观看| 91在线无精精品入口| 韩国理伦片一区二区三区在线播放| 国产精品久久久久久久蜜臀 | 国产日韩亚洲欧美综合| 一本大道久久精品懂色aⅴ| 麻豆国产91在线播放| 综合久久国产九一剧情麻豆| 久久无码av三级| aaa国产一区| 日韩极品在线观看| 亚洲午夜私人影院| 亚洲免费观看高清完整版在线观看熊| 日韩手机在线导航| 在线精品视频一区二区三四| 国产一区日韩二区欧美三区| 六月丁香婷婷久久| 在线观看免费一区| 色噜噜狠狠色综合中国| 欧美日韩国产在线播放网站| 欧美性生活影院| 欧美人成免费网站| 精品国产一区二区三区久久影院| 在线中文字幕不卡| 久久亚洲欧美国产精品乐播| 香蕉影视欧美成人| 麻豆一区二区三| 欧美亚洲综合一区| 欧美成人精精品一区二区频| 国产精品色哟哟网站| 亚洲va韩国va欧美va精品| 国产精品羞羞答答xxdd | 国产精品久久久久久久久免费桃花| 亚洲欧美日韩在线不卡| 久久国产欧美日韩精品| 91亚洲精品久久久蜜桃网站| 在线播放91灌醉迷j高跟美女| 久久久电影一区二区三区| 亚洲va国产天堂va久久en| 福利一区二区在线| 91精品国产综合久久国产大片| 欧美高清在线精品一区| 日韩精品欧美成人高清一区二区| 国产精品一区二区视频| 欧美日韩激情一区| 国产精品国产三级国产aⅴ入口 | 亚洲一区在线观看视频| 国产很黄免费观看久久| 欧美乱熟臀69xxxxxx| 亚洲欧美在线高清| 韩国精品一区二区| 欧美精品丝袜中出| 亚洲黄色av一区| 成人福利视频网站| 精品电影一区二区| 奇米777欧美一区二区| 欧美性色黄大片| 中文字幕日本乱码精品影院| 国产精品2024| 日韩精品在线看片z| 天堂蜜桃一区二区三区| 一本大道av一区二区在线播放| 国产人久久人人人人爽| 久久精品99国产精品日本| 欧美日韩亚洲国产综合| 国产精品第四页| 国产老女人精品毛片久久| 日韩你懂的在线播放| 无码av中文一区二区三区桃花岛| 91婷婷韩国欧美一区二区| 国产欧美日产一区| 人妖欧美一区二区| 欧美日韩在线直播| 亚洲最新视频在线播放| 色悠悠久久综合| 亚洲视频一区二区免费在线观看| av男人天堂一区| 中文一区二区在线观看| 国产精品自拍一区| 国产视频一区二区在线观看| 国产伦精一区二区三区| 欧美一区二区三区在线看| 性感美女极品91精品| 欧美高清你懂得| 青青草视频一区| 欧美成人a视频| 国产一区二区三区精品视频| 久久免费看少妇高潮| 国产精品77777| 最新国产精品久久精品| 91丨porny丨在线| 亚洲综合在线电影| 6080午夜不卡| 极品少妇xxxx精品少妇| 2020国产成人综合网| 成人一区二区三区视频在线观看| 国产精品毛片久久久久久| 色综合视频在线观看| 亚洲国产精品嫩草影院| 日韩欧美卡一卡二| 韩国av一区二区三区在线观看| 久久看人人爽人人| 色综合色综合色综合色综合色综合| 一区二区三区精品在线观看| 91精品国产综合久久香蕉的特点| 精东粉嫩av免费一区二区三区| 国产日韩欧美精品在线| 色婷婷激情一区二区三区| 日韩电影在线观看一区| 国产视频一区二区在线观看| 在线精品视频免费播放| 捆绑紧缚一区二区三区视频 | 亚洲精品日韩专区silk| 欧美久久久一区| 国产成a人亚洲精品|