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

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

?? button.java

?? linux下編程用 編譯軟件
?? 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一区二区三区免费野_久草精品视频
成人免费一区二区三区视频| 精品系列免费在线观看| 日韩精品一区二区在线| 欧美视频一区二区三区四区| 丁香婷婷综合色啪| 国产91丝袜在线播放| 国产激情视频一区二区在线观看| 国内精品嫩模私拍在线| 蜜桃久久av一区| 日本不卡视频在线| 久久99精品久久久久久动态图 | 欧美日韩午夜在线视频| 99re成人精品视频| 成+人+亚洲+综合天堂| 色综合久久综合中文综合网| 色综合天天综合网国产成人综合天 | 欧美激情在线看| 欧美一激情一区二区三区| 欧美影片第一页| 91精品国产色综合久久| 亚洲精品一线二线三线无人区| 91精品国产综合久久蜜臀| 欧美一区二区美女| 国产亚洲综合av| 亚洲欧美日韩一区| 亚洲一区二区在线视频| 麻豆91精品91久久久的内涵| 国产精品一区二区久久精品爱涩| 成人性生交大片免费看视频在线| 久久久久久久久久久99999| 中文字幕第一区二区| 亚洲精品写真福利| 一区二区三区在线免费| 免费精品99久久国产综合精品| 国内精品伊人久久久久av影院| 成人h精品动漫一区二区三区| 欧美性感一类影片在线播放| 精品久久久久久最新网址| ㊣最新国产の精品bt伙计久久| 亚洲国产综合91精品麻豆| 激情文学综合网| 91久久精品一区二区三区| 精品人在线二区三区| 自拍偷拍亚洲欧美日韩| 美女视频黄 久久| 99久久综合精品| 精品国产91乱码一区二区三区| 亚洲日本乱码在线观看| 国产在线看一区| 免费在线看一区| 欧美亚洲禁片免费| 亚洲国产日韩综合久久精品| 色久综合一二码| 亚洲精品乱码久久久久久黑人| 亚洲午夜羞羞片| 韩国v欧美v亚洲v日本v| 日本国产一区二区| 欧美激情艳妇裸体舞| 日本大胆欧美人术艺术动态| 色屁屁一区二区| 中文字幕高清不卡| 国产美女娇喘av呻吟久久| 91精品国产一区二区三区香蕉| 亚洲人吸女人奶水| 成人高清在线视频| 久久美女艺术照精彩视频福利播放 | 亚洲免费看黄网站| 亚洲一区二区三区中文字幕在线| 高清成人在线观看| 久久一留热品黄| 精品一区二区日韩| 日韩精品一区国产麻豆| 美腿丝袜在线亚洲一区| 欧美一卡二卡三卡四卡| 婷婷综合久久一区二区三区| 欧美日韩色综合| 亚洲在线视频一区| 日本韩国欧美三级| 亚洲综合图片区| 在线观看亚洲成人| 亚洲一区二区三区精品在线| 91日韩一区二区三区| 一区二区三区在线不卡| 色婷婷综合中文久久一本| 一区二区三区精品视频在线| 亚洲精品欧美激情| 欧美性做爰猛烈叫床潮| 亚洲精品自拍动漫在线| 久久精品国产亚洲a| 国产欧美日韩在线| 国产永久精品大片wwwapp| 久久久久久电影| 国产成a人亚洲精品| 亚洲欧洲精品成人久久奇米网| 91在线小视频| 亚洲二区在线观看| 欧美一区二区视频在线观看 | 欧美日韩在线播放一区| 性久久久久久久久久久久| 9191成人精品久久| 韩国女主播成人在线观看| 国产亚洲欧美日韩俺去了| 99re这里只有精品首页| 亚洲午夜激情av| 26uuu亚洲综合色| www.亚洲激情.com| 丝袜美腿高跟呻吟高潮一区| 久久亚洲捆绑美女| 91久久奴性调教| 青青草原综合久久大伊人精品优势| 久久夜色精品国产噜噜av| 91在线观看免费视频| 免费成人在线播放| 自拍偷拍亚洲欧美日韩| 欧美一区二区三区视频免费| 成人午夜激情在线| 日韩成人一区二区三区在线观看| 久久亚洲精品小早川怜子| 欧美亚洲国产一区在线观看网站| 国产一区久久久| 亚洲成人黄色小说| 国产精品剧情在线亚洲| 91精品国产综合久久精品app| 成人精品电影在线观看| 免费人成精品欧美精品 | 色综合婷婷久久| 久久精品国产亚洲高清剧情介绍| 亚洲欧美日韩国产一区二区三区 | 国产精品传媒视频| 日韩一级高清毛片| 在线观看视频欧美| 成人av网站在线观看| 麻豆一区二区三区| 亚洲va欧美va人人爽| 亚洲欧美日韩人成在线播放| 久久久久久97三级| 日韩免费性生活视频播放| 99精品视频在线免费观看| 国产乱码精品1区2区3区| 免费在线观看视频一区| 亚洲精选免费视频| 亚洲欧美一区二区三区国产精品| 久久久久高清精品| 精品久久久三级丝袜| 欧美午夜电影一区| 在线欧美小视频| 色婷婷精品大视频在线蜜桃视频| 国内久久精品视频| 黄页视频在线91| 国产一区在线视频| 青娱乐精品在线视频| 秋霞午夜鲁丝一区二区老狼| 一级日本不卡的影视| 一区二区久久久| 亚洲综合免费观看高清在线观看| 国产视频一区二区在线| 欧美精品一区二区三区一线天视频| 欧美日韩国产片| 在线不卡一区二区| 538在线一区二区精品国产| 欧美精品丝袜久久久中文字幕| 色哦色哦哦色天天综合| 国产精品88888| 国产高清不卡一区二区| 成人综合婷婷国产精品久久蜜臀| 成人精品一区二区三区四区| 国产成人在线视频播放| av不卡在线播放| 日本乱人伦一区| 欧美精品久久久久久久多人混战 | 国产日韩高清在线| 中文字幕成人av| 亚洲欧美日韩精品久久久久| 亚洲成人免费看| 老司机一区二区| 国产成人免费视| av电影一区二区| 欧美少妇xxx| 精品乱人伦一区二区三区| 久久久国产精品午夜一区ai换脸| 国产精品久久久久桃色tv| 亚洲免费在线电影| 免费观看成人av| 不卡的av网站| 欧美精品一级二级三级| 国产日韩三级在线| 亚洲国产精品一区二区久久| 激情综合色综合久久综合| 99久久伊人网影院| 91精品国产乱码| 国产精品久久久久久福利一牛影视| 一区二区在线观看av| 精品在线免费视频| 91在线高清观看| 精品欧美久久久| 亚洲精品欧美在线| 大桥未久av一区二区三区中文| 欧美午夜精品一区| 日本一区二区免费在线观看视频 | 日本视频一区二区|