⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jinternalframe.java

📁 gcc的组建
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
/* JInternalFrame.java --   Copyright (C) 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 javax.swing;import java.awt.Component;import java.awt.Container;import java.awt.Graphics;import java.awt.KeyboardFocusManager;import java.awt.LayoutManager;import java.awt.Rectangle;import java.beans.PropertyVetoException;import javax.accessibility.Accessible;import javax.accessibility.AccessibleContext;import javax.accessibility.AccessibleRole;import javax.accessibility.AccessibleValue;import javax.swing.event.InternalFrameEvent;import javax.swing.event.InternalFrameListener;import javax.swing.plaf.DesktopIconUI;import javax.swing.plaf.InternalFrameUI;/** * This class implements a Swing widget that looks and acts like a native * frame. The frame can be dragged, resized, closed, etc. Typically, * JInternalFrames are placed in JDesktopPanes. The actions that the * JInternalFrame performs (maximizing, minimizing, etc.) are performed by a * DesktopManager. As with regular frames, components are added by calling * frame.getContentPane().add. */public class JInternalFrame extends JComponent implements Accessible,                                                          WindowConstants,                                                          RootPaneContainer{  /** DOCUMENT ME! */  private static final long serialVersionUID = -5425177187760785402L;  /**   * DOCUMENT ME!   */  protected class AccessibleJInternalFrame extends AccessibleJComponent    implements AccessibleValue  {    private static final long serialVersionUID = 5931936924175476797L;    /**     * Creates a new AccessibleJInternalFrame object.     */    protected AccessibleJInternalFrame()    {      super();    }    /**     * DOCUMENT ME!     *     * @return DOCUMENT ME!     */    public String getAccessibleName()    {      return null;    }    /**     * DOCUMENT ME!     *     * @return DOCUMENT ME!     */    public AccessibleRole getAccessibleRole()    {      return null;    }    /**     * DOCUMENT ME!     *     * @return DOCUMENT ME!     */    public AccessibleValue getAccessibleValue()    {      return null;    }    /**     * DOCUMENT ME!     *     * @return DOCUMENT ME!     */    public Number getCurrentAccessibleValue()    {      return null;    }    /**     * DOCUMENT ME!     *     * @return DOCUMENT ME!     */    public Number getMaximumAccessibleValue()    {      return null;    }    /**     * DOCUMENT ME!     *     * @return DOCUMENT ME!     */    public Number getMinimumAccessibleValue()    {      return null;    }    /**     * DOCUMENT ME!     *     * @param n DOCUMENT ME!     *     * @return DOCUMENT ME!     */    public boolean setCurrentAccessibleValue(Number n)    {      return false;    }  }  /**   * This class represents the JInternalFrame while it is iconified.   */  public static class JDesktopIcon extends JComponent implements Accessible  {    /**     * DOCUMENT ME!     */    protected class AccessibleJDesktopIcon extends AccessibleJComponent      implements AccessibleValue    {      private static final long serialVersionUID = 5035560458941637802L;      /**       * Creates a new AccessibleJDesktopIcon object.       */      protected AccessibleJDesktopIcon()      {	super();      }      /**       * DOCUMENT ME!       *       * @return DOCUMENT ME!       */      public AccessibleRole getAccessibleRole()      {	return null;      }      /**       * DOCUMENT ME!       *       * @return DOCUMENT ME!       */      public AccessibleValue getAccessibleValue()      {	return null;      }      /**       * DOCUMENT ME!       *       * @return DOCUMENT ME!       */      public Number getCurrentAccessibleValue()      {	return null;      }      /**       * DOCUMENT ME!       *       * @return DOCUMENT ME!       */      public Number getMaximumAccessibleValue()      {	return null;      }      /**       * DOCUMENT ME!       *       * @return DOCUMENT ME!       */      public Number getMinimumAccessibleValue()      {	return null;      }      /**       * DOCUMENT ME!       *       * @param n DOCUMENT ME!       *       * @return DOCUMENT ME!       */      public boolean setCurrentAccessibleValue(Number n)      {	return false;      }    }    private static final long serialVersionUID = 4672973344731387687L;    /** The JInternalFrame this DesktopIcon represents. */    JInternalFrame frame;    /**     * Creates a new JDesktopIcon object for representing the given frame.     *     * @param f The JInternalFrame to represent.     */    public JDesktopIcon(JInternalFrame f)    {      frame = f;      updateUI();    }    /**     * DOCUMENT ME!     *     * @return DOCUMENT ME!     */    public AccessibleContext getAccessibleContext()    {      if (accessibleContext == null)	accessibleContext = new AccessibleJDesktopIcon();      return accessibleContext;    }    /**     * This method returns the JDesktopPane this JDesktopIcon is in.     *     * @return The JDesktopPane this JDesktopIcon is in.     */    public JDesktopPane getDesktopPane()    {      JDesktopPane p = (JDesktopPane) SwingUtilities.getAncestorOfClass(JDesktopPane.class,                                                                        this);      return p;    }    /**     * This method returns the JInternalFrame this JDesktopIcon represents.     *     * @return The JInternalFrame this JDesktopIcon represents.     */    public JInternalFrame getInternalFrame()    {      return frame;    }    /**     * This method returns the UI that is responsible for the JDesktopIcon.     *     * @return The UI that is responsible for the JDesktopIcon.     */    public DesktopIconUI getUI()    {      return (DesktopIconUI) ui;    }    /**     * This method returns the String identifier that is used to determine     * which class is used for JDesktopIcon's UI.     *     * @return A String identifier for the UI class.     */    public String getUIClassID()    {      return "DesktopIconUI";    }    /**     * This method sets the JInternalFrame that this JDesktopIcon represents.     *     * @param f The JInternalFrame that this JDesktopIcon represents.     */    public void setInternalFrame(JInternalFrame f)    {      frame = f;    }    /**     * This method sets the UI used for this JDesktopIcon.     *     * @param ui The UI to use.     */    public void setUI(DesktopIconUI ui)    {      super.setUI(ui);    }    /**     * This method restores the UI property to the defaults.     */    public void updateUI()    {      setUI((DesktopIconUI) UIManager.getUI(this));    }  }  /**   * The property fired in a PropertyChangeEvent when the contentPane property   * changes.   */  public static final String CONTENT_PANE_PROPERTY = "contentPane";  /**   * The property fired in a PropertyChangeEvent when the frameIcon property   * changes.   */  public static final String FRAME_ICON_PROPERTY = "frameIcon";  /**   * The property fired in a PropertyChangeEvent when the glassPane property   * changes.   */  public static final String GLASS_PANE_PROPERTY = "glassPane";  /**   * The property fired in a PropertyChangeEvent when the closed property   * changes.   */  public static final String IS_CLOSED_PROPERTY = "closed";  /**   * The property fired in a PropertyChangeEvent when the icon property   * changes.   */  public static final String IS_ICON_PROPERTY = "icon";  /**   * The property fired in a PropertyChangeEvent when the maximum property   * changes.   */  public static final String IS_MAXIMUM_PROPERTY = "maximum";  /**   * The property fired in a PropertyChangeEvent when the selected property   * changes.   */  public static final String IS_SELECTED_PROPERTY = "selected";  /**   * The property fired in a PropertyChangeEvent when the layeredPane property   * changes.   */  public static final String LAYERED_PANE_PROPERTY = "layeredPane";  /**   * The property fired in a PropertyChangeEvent when the jMenuBar property   * changes.   */  public static final String MENU_BAR_PROPERTY = "JMenuBar";  /**   * The property fired in a PropertyChangeEvent when the rootPane property   * changes.   */  public static final String ROOT_PANE_PROPERTY = "rootPane";  /**   * The property fired in a PropertyChangeEvent when the title property   * changes.   */  public static final String TITLE_PROPERTY = "title";  /** Whether the JInternalFrame is closable. */  protected boolean closable;  /** Whether the JInternalFrame can be iconified. */  protected boolean iconable;  /** Whether the JInternalFrame is closed. */  protected boolean isClosed;  /** Whether the JInternalFrame has been iconified. */  protected boolean isIcon;  /** Whether the JInternalFrame has been maximized. */  protected boolean isMaximum;  /** Whether the JInternalFrame is the active frame. */  protected boolean isSelected;  /** Whether the JInternalFrame can be maximized. */  protected boolean maximizable;  /**   * Whether the JInternalFrame has rootPaneChecking enabled.   *   * @specnote Should be false to comply with J2SE 5.0   */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -