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

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

?? container.java

?? gcc的組建
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* Container.java -- parent container class in AWT   Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005  Free Software FoundationThis 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.ComponentListener;import java.awt.event.ContainerEvent;import java.awt.event.ContainerListener;import java.awt.event.KeyEvent;import java.awt.event.MouseEvent;import java.awt.peer.ComponentPeer;import java.awt.peer.ContainerPeer;import java.awt.peer.LightweightPeer;import java.beans.PropertyChangeListener;import java.beans.PropertyChangeSupport;import java.io.IOException;import java.io.ObjectInputStream;import java.io.ObjectOutputStream;import java.io.PrintStream;import java.io.PrintWriter;import java.io.Serializable;import java.util.Collections;import java.util.EventListener;import java.util.HashSet;import java.util.Iterator;import java.util.Set;import javax.accessibility.Accessible;import gnu.java.awt.AWTUtilities;/** * A generic window toolkit object that acts as a container for other objects. * Components are tracked in a list, and new elements are at the end of the * list or bottom of the stacking order. * * @author original author unknown * @author Eric Blake (ebb9@email.byu.edu) * * @since 1.0 * * @status still missing 1.4 support */public class Container extends Component{  /**   * Compatible with JDK 1.0+.   */  private static final long serialVersionUID = 4613797578919906343L;  /* Serialized fields from the serialization spec. */  int ncomponents;  Component[] component;  LayoutManager layoutMgr;  LightweightDispatcher dispatcher;  Dimension maxSize;  /**   * @since 1.4   */  boolean focusCycleRoot;  int containerSerializedDataVersion;  /* Anything else is non-serializable, and should be declared "transient". */  transient ContainerListener containerListener;  transient PropertyChangeSupport changeSupport;   /** The focus traversal policy that determines how focus is      transferred between this Container and its children. */  private FocusTraversalPolicy focusTraversalPolicy;  /**   * The focus traversal keys, if not inherited from the parent or default   * keyboard manager. These sets will contain only AWTKeyStrokes that   * represent press and release events to use as focus control.   *   * @see #getFocusTraversalKeys(int)   * @see #setFocusTraversalKeys(int, Set)   * @since 1.4   */  transient Set[] focusTraversalKeys;  /**   * Default constructor for subclasses.   */  public Container()  {    // Nothing to do here.  }  /**   * Returns the number of components in this container.   *   * @return The number of components in this container.   */  public int getComponentCount()  {    return countComponents ();  }  /**   * Returns the number of components in this container.   *   * @return The number of components in this container.   *   * @deprecated use {@link #getComponentCount()} instead   */  public int countComponents()  {    return ncomponents;  }  /**   * Returns the component at the specified index.   *   * @param n The index of the component to retrieve.   *   * @return The requested component.   *   * @throws ArrayIndexOutOfBoundsException If the specified index is invalid   */  public Component getComponent(int n)  {    synchronized (getTreeLock ())      {        if (n < 0 || n >= ncomponents)          throw new ArrayIndexOutOfBoundsException("no such component");        return component[n];      }  }  /**   * Returns an array of the components in this container.   *   * @return The components in this container.   */  public Component[] getComponents()  {    synchronized (getTreeLock ())      {        Component[] result = new Component[ncomponents];        if (ncomponents > 0)          System.arraycopy(component, 0, result, 0, ncomponents);        return result;      }  }  /**   * Swaps the components at position i and j, in the container.   */  protected void swapComponents (int i, int j)  {       synchronized (getTreeLock ())      {        if (i < 0             || i >= component.length            || j < 0             || j >= component.length)          throw new ArrayIndexOutOfBoundsException ();        Component tmp = component[i];        component[i] = component[j];        component[j] = tmp;      }  }  /**   * Returns the insets for this container, which is the space used for   * borders, the margin, etc.   *   * @return The insets for this container.   */  public Insets getInsets()  {    return insets ();  }  /**   * Returns the insets for this container, which is the space used for   * borders, the margin, etc.   *   * @return The insets for this container.   * @deprecated use {@link #getInsets()} instead   */  public Insets insets()  {    if (peer == null)      return new Insets (0, 0, 0, 0);    return ((ContainerPeer) peer).getInsets ();  }  /**   * Adds the specified component to this container at the end of the   * component list.   *   * @param comp The component to add to the container.   *   * @return The same component that was added.   */  public Component add(Component comp)  {    addImpl(comp, null, -1);    return comp;  }  /**   * Adds the specified component to the container at the end of the   * component list.  This method should not be used. Instead, use   * <code>add(Component, Object)</code>.   *   * @param name The name of the component to be added.   * @param comp The component to be added.   *   * @return The same component that was added.   *   * @see #add(Component,Object)   */  public Component add(String name, Component comp)  {    addImpl(comp, name, -1);    return comp;  }  /**   * Adds the specified component to this container at the specified index   * in the component list.   *   * @param comp The component to be added.   * @param index The index in the component list to insert this child   * at, or -1 to add at the end of the list.   *   * @return The same component that was added.   *   * @throws ArrayIndexOutOfBoundsException If the specified index is invalid.   */  public Component add(Component comp, int index)  {    addImpl(comp, null, index);    return comp;  }  /**   * Adds the specified component to this container at the end of the   * component list.  The layout manager will use the specified constraints   * when laying out this component.   *   * @param comp The component to be added to this container.   * @param constraints The layout constraints for this component.   */  public void add(Component comp, Object constraints)  {    addImpl(comp, constraints, -1);  }  /**   * Adds the specified component to this container at the specified index   * in the component list.  The layout manager will use the specified   * constraints when layout out this component.   *   * @param comp The component to be added.   * @param constraints The layout constraints for this component.   * @param index The index in the component list to insert this child   * at, or -1 to add at the end of the list.   *   * @throws ArrayIndexOutOfBoundsException If the specified index is invalid.   */  public void add(Component comp, Object constraints, int index)  {    addImpl(comp, constraints, index);  }  /**   * This method is called by all the <code>add()</code> methods to perform   * the actual adding of the component.  Subclasses who wish to perform   * their own processing when a component is added should override this   * method.  Any subclass doing this must call the superclass version of   * this method in order to ensure proper functioning of the container.   *   * @param comp The component to be added.   * @param constraints The layout constraints for this component, or   * <code>null</code> if there are no constraints.   * @param index The index in the component list to insert this child   * at, or -1 to add at the end of the list.   *   * @throws ArrayIndexOutOfBoundsException If the specified index is invalid.   */  protected void addImpl(Component comp, Object constraints, int index)  {    synchronized (getTreeLock ())      {        if (index > ncomponents            || (index < 0 && index != -1)            || comp instanceof Window            || (comp instanceof Container                && ((Container) comp).isAncestorOf(this)))          throw new IllegalArgumentException();        // Reparent component, and make sure component is instantiated if        // we are.        if (comp.parent != null)          comp.parent.remove(comp);        comp.parent = this;        if (peer != null)          {	    // Notify the component that it has a new parent.	    comp.addNotify();            if (comp.isLightweight ())	      {		enableEvents (comp.eventMask);		if (!isLightweight ())		  enableEvents (AWTEvent.PAINT_EVENT_MASK);	      }          }        // Invalidate the layout of the added component and its ancestors.        comp.invalidate();        if (component == null)          component = new Component[4]; // FIXME, better initial size?        // This isn't the most efficient implementation.  We could do less        // copying when growing the array.  It probably doesn't matter.        if (ncomponents >= component.length)          {            int nl = component.length * 2;            Component[] c = new Component[nl];            System.arraycopy(component, 0, c, 0, ncomponents);            component = c;          }          if (index == -1)          component[ncomponents++] = comp;        else          {            System.arraycopy(component, index, component, index + 1,                             ncomponents - index);            component[index] = comp;            ++ncomponents;          }        // Notify the layout manager.        if (layoutMgr != null)          {            if (layoutMgr instanceof LayoutManager2)              {                LayoutManager2 lm2 = (LayoutManager2) layoutMgr;                lm2.addLayoutComponent(comp, constraints);              }            else if (constraints instanceof String)              layoutMgr.addLayoutComponent((String) constraints, comp);            else              layoutMgr.addLayoutComponent(null, comp);          }        // We previously only sent an event when this container is showing.        // Also, the event was posted to the event queue. A Mauve test shows        // that this event is not delivered using the event queue and it is        // also sent when the container is not showing.         ContainerEvent ce = new ContainerEvent(this,                                               ContainerEvent.COMPONENT_ADDED,                                               comp);        ContainerListener[] listeners = getContainerListeners();        for (int i = 0; i < listeners.length; i++)          listeners[i].componentAdded(ce);        // Repaint this container.        repaint(comp.getX(), comp.getY(), comp.getWidth(),                comp.getHeight());      }  }  /**   * Removes the component at the specified index from this container.   *   * @param index The index of the component to remove.   */  public void remove(int index)  {    synchronized (getTreeLock ())      {        Component r = component[index];        ComponentListener[] list = r.getComponentListeners();        for (int j = 0; j < list.length; j++)              r.removeComponentListener(list[j]);                if (r.isShowing())          r.removeNotify();        System.arraycopy(component, index + 1, component, index,                         ncomponents - index - 1);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品国产精品国产专区不蜜| 欧美亚洲另类激情小说| 亚洲欧美日韩久久| 日韩欧美一级特黄在线播放| 懂色av一区二区三区蜜臀| 亚洲h精品动漫在线观看| 国产视频亚洲色图| 日韩一区二区在线播放| 欧美电影免费观看高清完整版在 | 欧美日韩黄色影视| 成人性生交大片免费看中文网站| 亚洲6080在线| 亚洲精品视频在线观看免费| 国产视频一区在线观看| 精品乱码亚洲一区二区不卡| 欧美影院一区二区三区| av亚洲产国偷v产偷v自拍| 国产麻豆视频一区二区| 日本最新不卡在线| 亚洲狠狠爱一区二区三区| 亚洲欧美一区二区视频| 国产日韩欧美亚洲| 久久嫩草精品久久久久| 日韩女优视频免费观看| 欧美电影一区二区三区| 欧美私模裸体表演在线观看| 不卡高清视频专区| 粉嫩嫩av羞羞动漫久久久| 麻豆91免费看| 美女视频黄频大全不卡视频在线播放| 亚洲视频在线一区二区| 一区二区三区加勒比av| 久久精品国产网站| 色综合久久久久综合99| 欧美日韩免费不卡视频一区二区三区 | 91在线观看高清| 成人在线综合网| 日本欧美一区二区在线观看| 午夜视频一区在线观看| 亚洲福利视频三区| 婷婷综合另类小说色区| 日韩综合在线视频| 日本成人在线电影网| 午夜av一区二区| 蜜桃传媒麻豆第一区在线观看| 午夜久久久影院| 日本欧美肥老太交大片| 裸体健美xxxx欧美裸体表演| 久久 天天综合| 国产一区二区在线观看免费| 国产精品白丝jk黑袜喷水| 成人毛片在线观看| 欧美日韩激情一区| 欧美三日本三级三级在线播放| 91猫先生在线| 91行情网站电视在线观看高清版| 99国产精品久久久| 色综合久久中文字幕综合网| 色婷婷av一区二区三区软件| 色吧成人激情小说| 欧美三级韩国三级日本三斤| 欧美性大战久久久久久久蜜臀| 欧美三级电影在线观看| 日韩欧美美女一区二区三区| 精品国产乱码久久久久久牛牛| 精品剧情在线观看| 国产日韩综合av| 国产精品成人一区二区三区夜夜夜| 国产精品久久久久三级| 亚洲欧洲99久久| 亚洲影院久久精品| 日本亚洲电影天堂| 美国三级日本三级久久99| 国产伦理精品不卡| 91啪亚洲精品| 欧美一区二区视频在线观看| 精品国内二区三区| 最新国产精品久久精品| 亚洲午夜久久久久久久久电影院 | 亚洲图片欧美一区| 久久精品国产澳门| 成人在线综合网| 欧美日韩综合在线| 久久午夜羞羞影院免费观看| 亚洲同性同志一二三专区| 亚洲va国产va欧美va观看| 国产精品一区二区91| 91蜜桃免费观看视频| 91精品久久久久久久91蜜桃| 国产欧美日韩不卡| 亚洲高清视频中文字幕| 国产精品99久久久久久久女警 | 国产精品色在线观看| 久久99久久99小草精品免视看| 国产在线精品国自产拍免费| 成人免费视频一区| 91精品国产综合久久久久久久久久 | 91视频国产观看| 日韩一级精品视频在线观看| 亚洲欧洲色图综合| 久久99精品久久久久久动态图| 91在线无精精品入口| 日韩你懂的在线观看| 亚洲欧美一区二区久久 | 美女mm1313爽爽久久久蜜臀| 99精品国产热久久91蜜凸| 欧美一区日韩一区| 亚洲视频一二区| 国产精品456| 欧美一区二视频| 亚洲国产成人精品视频| 成人午夜激情片| 欧美不卡视频一区| 亚洲高清不卡在线| 91免费看视频| 日本一区二区电影| 久久成人免费网站| 欧美体内she精视频| 国产精品进线69影院| 国产在线精品一区二区夜色| 色婷婷久久久综合中文字幕| 国产女人18毛片水真多成人如厕 | 久久久久久久一区| 蜜桃一区二区三区在线| 欧美三级视频在线| 亚洲精品国产一区二区三区四区在线| 国产一区在线看| 欧美一区二区三区视频免费播放| 成人小视频免费观看| 日韩精品最新网址| 婷婷夜色潮精品综合在线| 97se亚洲国产综合自在线不卡| 国产午夜精品久久久久久久 | 精品国产凹凸成av人网站| 亚洲第一狼人社区| 欧美日韩中文精品| 亚洲影院免费观看| 欧美主播一区二区三区美女| 国产精品乱子久久久久| 国产成人aaa| 久久久久久毛片| 精品中文字幕一区二区小辣椒| 91精品在线麻豆| 日本最新不卡在线| 欧美va日韩va| 理论片日本一区| 精品国产乱码久久久久久久久| 免费在线观看不卡| 日韩一区二区三区四区| 日韩在线a电影| 日韩限制级电影在线观看| 久久99深爱久久99精品| 欧美精品一区二区高清在线观看| 美腿丝袜亚洲色图| 国产精品免费观看视频| xf在线a精品一区二区视频网站| 在线播放中文字幕一区| 欧美日韩一级大片网址| 欧美午夜精品久久久久久超碰| 色狠狠色狠狠综合| 91精品福利在线| 在线观看日产精品| 在线中文字幕一区二区| 91国在线观看| 欧美综合一区二区| 欧美色综合网站| 欧美精品在欧美一区二区少妇| 欧美日韩一区二区欧美激情| 欧美精品免费视频| 在线不卡一区二区| 久久影院视频免费| 国产精品盗摄一区二区三区| ●精品国产综合乱码久久久久| 国产精品久久久久久久久图文区 | 中文字幕av一区二区三区高| 久久激五月天综合精品| 久久精品这里都是精品| 99在线热播精品免费| 亚洲精品乱码久久久久久久久 | 国产精品自拍三区| 日韩码欧中文字| 欧美精品久久99| 国产精品中文字幕日韩精品| 国产精品热久久久久夜色精品三区| 91免费观看国产| 美女爽到高潮91| 最新高清无码专区| 日韩情涩欧美日韩视频| 成人精品在线视频观看| 午夜欧美在线一二页| 欧美激情综合在线| 欧美久久久久久蜜桃| 成人av集中营| 青娱乐精品视频| 中文字幕亚洲一区二区av在线| 这里只有精品电影| 日韩久久精品一区| 91福利视频网站| 国产黄色成人av| 亚洲国产色一区|