Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 1.1 Source Code Directory
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes: "C:\fyicenter\jdk-1.1.8\src".
Here is the list of Java classes of the JDK 1.1 source code:
✍: FYIcenter
⏎ java/beans/PropertyChangeSupport.java
/* * @(#)PropertyChangeSupport.java 1.14 01/12/10 * * Copyright 2002 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.beans; import java.io.Serializable; import java.io.ObjectOutputStream; import java.io.ObjectInputStream; import java.io.IOException; /** * This is a utility class that can be used by beans that support bound * properties. You can use an instance of this class as a member field * of your bean and delegate various work to it. */ public class PropertyChangeSupport implements java.io.Serializable { /** * @sourceBean The bean to be given as the source for any events. */ public PropertyChangeSupport(Object sourceBean) { source = sourceBean; } /** * Add a PropertyChangeListener to the listener list. * * @param listener The PropertyChangeListener to be added */ public synchronized void addPropertyChangeListener( PropertyChangeListener listener) { if (listeners == null) { listeners = new java.util.Vector(); } listeners.addElement(listener); } /** * Remove a PropertyChangeListener from the listener list. * * @param listener The PropertyChangeListener to be removed */ public synchronized void removePropertyChangeListener( PropertyChangeListener listener) { if (listeners == null) { return; } listeners.removeElement(listener); } /** * Report a bound property update to any registered listeners. * No event is fired if old and new are equal and non-null. * * @param propertyName The programmatic name of the property * that was changed. * @param oldValue The old value of the property. * @param newValue The new value of the property. */ public void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (oldValue != null && oldValue.equals(newValue)) { return; } java.util.Vector targets; synchronized (this) { if (listeners == null) { return; } targets = (java.util.Vector) listeners.clone(); } PropertyChangeEvent evt = new PropertyChangeEvent(source, propertyName, oldValue, newValue); for (int i = 0; i < targets.size(); i++) { PropertyChangeListener target = (PropertyChangeListener)targets.elementAt(i); target.propertyChange(evt); } } private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); java.util.Vector v = null; synchronized (this) { if (listeners != null) { v = (java.util.Vector) listeners.clone(); } } if (v != null) { for(int i = 0; i < v.size(); i++) { PropertyChangeListener l = (PropertyChangeListener)v.elementAt(i); if (l instanceof Serializable) { s.writeObject(l); } } } s.writeObject(null); } private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException { s.defaultReadObject(); Object listenerOrNull; while(null != (listenerOrNull = s.readObject())) { addPropertyChangeListener((PropertyChangeListener)listenerOrNull); } } transient private java.util.Vector listeners; private Object source; private int propertyChangeSupportSerializedDataVersion = 1; }
⏎ java/beans/PropertyChangeSupport.java
Or download all of them as a single archive file:
File name: jdk-1.1.8-src.zip File size: 1574187 bytes Release date: 2018-11-16 Download
⇒ Backup JDK 1.1 Installation Directory
2018-11-17, 150450👍, 0💬
Popular Posts:
jlGui is a music player for the Java platform. It is based on Java Sound 1.0 (i.e. JDK 1.3+). It sup...
The JMX technology provides the tools for building distributed, Web-based, modular and dynamic solut...
JDK 11 jdk.charsets.jmod is the JMOD file for JDK 11 Charsets module. JDK 11 Charsets module compile...
What Is jaxb-impl-2.1.12.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Jav...
Where Can I see Java Source Code files for Xerces Java 2.11.2? Here are Java Source Code files for X...