/*
* Copyright (c) 1995, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package java.awt;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.util.Objects;
import java.util.Vector;
import java.util.Locale;
import java.util.EventListener;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.Collections;
import java.awt.peer.ComponentPeer;
import java.awt.peer.ContainerPeer;
import java.awt.peer.LightweightPeer;
import java.awt.image.BufferStrategy;
import java.awt.image.ImageObserver;
import java.awt.image.ImageProducer;
import java.awt.image.ColorModel;
import java.awt.image.VolatileImage;
import java.awt.event.*;
import java.io.Serializable;
import java.io.ObjectOutputStream;
import java.io.ObjectInputStream;
import java.io.IOException;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.beans.Transient;
import java.awt.im.InputContext;
import java.awt.im.InputMethodRequests;
import java.awt.dnd.DropTarget;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.security.AccessControlContext;
import javax.accessibility.*;
import java.applet.Applet;
import sun.security.action.GetPropertyAction;
import sun.awt.AppContext;
import sun.awt.AWTAccessor;
import sun.awt.ConstrainableGraphics;
import sun.awt.SubRegionShowable;
import sun.awt.SunToolkit;
import sun.awt.WindowClosingListener;
import sun.awt.CausedFocusEvent;
import sun.awt.EmbeddedFrame;
import sun.awt.dnd.SunDropTargetEvent;
import sun.awt.im.CompositionArea;
import sun.font.FontManager;
import sun.font.FontManagerFactory;
import sun.font.SunFontManager;
import sun.java2d.SunGraphics2D;
import sun.java2d.pipe.Region;
import sun.awt.image.VSyncedBSManager;
import sun.java2d.pipe.hw.ExtendedBufferCapabilities;
import static sun.java2d.pipe.hw.ExtendedBufferCapabilities.VSyncType.*;
import sun.awt.RequestFocusController;
import sun.java2d.SunGraphicsEnvironment;
import sun.util.logging.PlatformLogger;
/**
* A <em>component</em> is an object having a graphical representation
* that can be displayed on the screen and that can interact with the
* user. Examples of components are the buttons, checkboxes, and scrollbars
* of a typical graphical user interface. <p>
* The <code>Component</code> class is the abstract superclass of
* the nonmenu-related Abstract Window Toolkit components. Class
* <code>Component</code> can also be extended directly to create a
* lightweight component. A lightweight component is a component that is
* not associated with a native window. On the contrary, a heavyweight
* component is associated with a native window. The {@link #isLightweight()}
* method may be used to distinguish between the two kinds of the components.
* <p>
* Lightweight and heavyweight components may be mixed in a single component
* hierarchy. However, for correct operating of such a mixed hierarchy of
* components, the whole hierarchy must be valid. When the hierarchy gets
* invalidated, like after changing the bounds of components, or
* adding/removing components to/from containers, the whole hierarchy must be
* validated afterwards by means of the {@link Container#validate()} method
* invoked on the top-most invalid container of the hierarchy.
*
* <h3>Serialization</h3>
* It is important to note that only AWT listeners which conform
* to the <code>Serializable</code> protocol will be saved when
* the object is stored. If an AWT object has listeners that
* aren't marked serializable, they will be dropped at
* <code>writeObject</code> time. Developers will need, as always,
* to consider the implications of making an object serializable.
* One situation to watch out for is this:
* <pre>
* import java.awt.*;
* import java.awt.event.*;
* import java.io.Serializable;
*
* class MyApp implements ActionListener, Serializable
* {
* BigObjectThatShouldNotBeSerializedWithAButton bigOne;
* Button aButton = new Button();
*
* MyApp()
* {
* // Oops, now aButton has a listener with a reference
* // to bigOne!
* aButton.addActionListener(this);
* }
*
* public void actionPerformed(ActionEvent e)
* {
* System.out.println("Hello There");
* }
* }
* </pre>
* In this example, serializing <code>aButton</code> by itself
* will cause <code>MyApp</code> and everything it refers to
* to be serialized as well. The problem is that the listener
* is serializable by coincidence, not by design. To separate
* the decisions about <code>MyApp</code> and the
* <code>ActionListener</code> being serializable one can use a
* nested class, as in the following example:
* <pre>
* import java.awt.*;
* import java.awt.event.*;
* import java.io.Serializable;
*
* class MyApp implements java.io.Serializable
* {
* BigObjectThatShouldNotBeSerializedWithAButton bigOne;
* Button aButton = new Button();
*
* static class MyActionListener implements ActionListener
* {
* public void actionPerformed(ActionEvent e)
* {
* System.out.println("Hello There");
* }
* }
*
* MyApp()
* {
* aButton.addActionListener(new MyActionListener());
* }
* }
* </pre>
* <p>
* <b>Note</b>: For more information on the paint mechanisms utilitized
* by AWT and Swing, including information on how to write the most
* efficient painting code, see
* <a href="http://www.oracle.com/technetwork/java/painting-140037.html">Painting in AWT and Swing</a>.
* <p>
* For details on the focus subsystem, see
* <a href="https://docs.oracle.com/javase/tutorial/uiswing/misc/focus.html">
* How to Use the Focus Subsystem</a>,
* a section in <em>The Java Tutorial</em>, and the
* <a href="../../java/awt/doc-files/FocusSpec.html">Focus Specification</a>
* for more information.
*
* @author Arthur van Hoff
* @author Sami Shaio
*/
public abstract class Component implements ImageObserver, MenuContainer,
Serializable
{
private static final PlatformLogger log = PlatformLogger.getLogger("java.awt.Component");
private static final PlatformLogger eventLog = PlatformLogger.getLogger("java.awt.event.Component");
private static final PlatformLogger focusLog = PlatformLogger.getLogger("java.awt.focus.Component");
private static final PlatformLogger mixingLog = PlatformLogger.getLogger("java.awt.mixing.Component");
/**
* The peer of the component. The peer implements the component's
* behavior. The peer is set when the <code>Component</code> is
没有合适的资源?快使用搜索试试~ 我知道了~
jenkins-jnlp.tar.gz
需积分: 0 3 下载量 84 浏览量
2023-12-13
15:17:41
上传
评论
收藏 835.85MB GZ 举报
温馨提示
共2000个文件
java:2000个
https://blog.csdn.net/weixin_46560589/article/details/128801979 文章《【Kubernetes 企业项目实战】06、基于 Jenkins+K8s 构建 DevOps 自动化运维管理平台(中)》测试 jenkins 的 CI/CD 实验所需资料文件!
资源推荐
资源详情
资源评论
收起资源包目录
jenkins-jnlp.tar.gz (2000个子文件)
Component.java 370KB
Character.java 262KB
ConcurrentHashMap.java 258KB
Arrays.java 223KB
BigDecimal.java 217KB
Pattern.java 216KB
Collections.java 212KB
ResultSet.java 204KB
DateTimeFormatterBuilder.java 197KB
Container.java 191KB
Formatter.java 188KB
DecimalFormat.java 175KB
BigInteger.java 170KB
Files.java 166KB
MethodHandles.java 163KB
DatabaseMetaData.java 160KB
Window.java 151KB
ForkJoinPool.java 149KB
ObjectInputStream.java 149KB
Class.java 145KB
AffineTransform.java 144KB
Calendar.java 140KB
GregorianCalendar.java 134KB
Locale.java 134KB
ConcurrentSkipListMap.java 134KB
URI.java 132KB
CallableStatement.java 132KB
ComponentColorModel.java 132KB
ResourceBundle.java 131KB
KeyboardFocusManager.java 129KB
String.java 122KB
Parser.java 120KB
DualPivotQuicksort.java 115KB
Toolkit.java 112KB
MethodWriter.java 110KB
TreeMap.java 107KB
Font.java 107KB
X509CertSelector.java 104KB
ZonedDateTime.java 104KB
TextLayout.java 103KB
Path2D.java 103KB
DateTimeFormatter.java 99KB
Scanner.java 99KB
JapaneseImperialCalendar.java 98KB
ClassReader.java 97KB
SimpleDateFormat.java 96KB
File.java 94KB
ObjectStreamClass.java 94KB
CharacterData00.java 93KB
LocalDate.java 91KB
Math.java 91KB
ObjectOutputStream.java 91KB
HashMap.java 90KB
ColorModel.java 90KB
AbstractQueuedSynchronizer.java 90KB
Logger.java 89KB
GridBagLayout.java 89KB
CompletableFuture.java 89KB
LocalDateTime.java 89KB
Spliterators.java 85KB
OffsetDateTime.java 85KB
ClassLoader.java 83KB
ThreadPoolExecutor.java 81KB
AbstractQueuedLongSynchronizer.java 80KB
Raster.java 78KB
Thread.java 78KB
Nodes.java 78KB
MethodHandleImpl.java 77KB
LambdaForm.java 75KB
KeyStore.java 74KB
MethodHandle.java 74KB
LogManager.java 74KB
SecurityManager.java 74KB
Collectors.java 73KB
MutableBigInteger.java 72KB
Connection.java 71KB
SimpleTimeZone.java 71KB
LocalTime.java 70KB
AbstractPreferences.java 69KB
Provider.java 68KB
ICC_Profile.java 67KB
MessageFormat.java 67KB
PreparedStatement.java 67KB
Socket.java 67KB
List.java 66KB
Introspector.java 66KB
Statement.java 65KB
Dialog.java 65KB
KeyEvent.java 65KB
URLConnection.java 64KB
IndexColorModel.java 64KB
StrictMath.java 64KB
BufferedImage.java 64KB
DirectColorModel.java 62KB
MetaData.java 62KB
ClassWriter.java 62KB
Instant.java 61KB
Long.java 61KB
Integer.java 60KB
Preferences.java 60KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
Stars.Sky
- 粉丝: 7519
- 资源: 21
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功