1 Introduction to JavaBeans.- Objectives.- Is this book for you?.- How to use this book.- Why have software components?.- What are JavaBeans?.- JavaBeans and other component models.- The JavaBeans package.- Bean terminology.- Builder tool support.- Building an application.- What you need to use JavaBeans.- How to get the BDK.- What you get in the BDK.- Program conventions.- 2 Using the BeanBox.- Objectives.- Starting the BeanBox.- The BeanBox.- TheBeanBox menus.- Working with Beans.- Connecting Beans together.- Adding Beans to the BeanBox.- Builder tools.- 3 The Delegation Event Model.- Objectives.- Background.- What is an event?.- Delegating responsibility for an event.- Event listeners.- Working with events.- Creating new events.- Defining new listener interfaces.- Multicast and unicast sources.- Events and Beans.- 4 Building Basic Beans.- Objectives.- The JavaBeans architecture.- Creating a bean.- The Beans conventions.- The Beanlnfo object.- The Counter and Alarm beans.- Packaging the beans.- Using the beans.- JavaBeans and you.- 5 Property Data Types.- Objectives.- Simple properties.- Bound properties.- Constrained properties.- Indexed properties.- 6 Reflection and Bean Introspection.- Objectives.- Reflection.- The introspection process.- How it actually works.- Experimenting with introspection.- 7 Beanlnfo Objects.- Objectives.- The jaya.beans package.- Beanlnfo objects.- The Beanlnfo interface.- Classes used with Beanlnfo.- The SimpleBeanlnfo class.- Additionallnfo objects.- The getBeanDescriptor method.- 8 An example BeanInfo Object.- Objectives.- The Clock bean.- The ClockBeanlnfo class.- The geticon ( ) method.- The getPropertyDescriptors ( ) method.- The getMethodDescriptors ( ) method.- Handling bound properties.- The manifest and JAR files.- 9 Bean Serialization.- Objectives.- Serialization in Java.- Serializing a bean.- Defining beans that can be serialized.- 10 Property Editors and Customizers.- Objectives.- Changing property values.- The Property Sheet.- Property Views.- Property Editors.- The PropertyEditor interface.- The PropertyEditorSupport class.- Registering a PropertyEditor.- Customizers.- 11 JavaBeans and ActiveX.- Objectives.- The Component Object Model.- What is ActiveX?.- ActiveX bridge.- Packaging a Bean.- Creating an ActiveX component.- Using the ActiveX component in a container.- Runtime support.- 12 Event Adapters.- Objectives.- Event adapters.- The use of event adapters.- Defining event adapters.- 13 RMI and Beans.- Objectives.- Non-graphical beans.- Remote Method Invocation.- the RMIClientBean.- The Manifest file.- Building the JAR file.- Using the RMI bean.- Appendix A: The Clock Bean.- Appendix B: The Monitor Bean.- Appendix C: The Alarm Bean.- Appendix D: The Multiplexer.- Appendix E: RMI beans.
Inhaltsverzeichnis
1 Introduction to JavaBeans. - Objectives. - Is this book for you? . - How to use this book. - Why have software components? . - What are JavaBeans? . - JavaBeans and other component models. - The JavaBeans package. - Bean terminology. - Builder tool support. - Building an application. - What you need to use JavaBeans. - How to get the BDK. - What you get in the BDK. - Program conventions. - 2 Using the BeanBox. - Objectives. - Starting the BeanBox. - The BeanBox. - TheBeanBox menus. - Working with Beans. - Connecting Beans together. - Adding Beans to the BeanBox. - Builder tools. - 3 The Delegation Event Model. - Objectives. - Background. - What is an event? . - Delegating responsibility for an event. - Event listeners. - Working with events. - Creating new events. - Defining new listener interfaces. - Multicast and unicast sources. - Events and Beans. - 4 Building Basic Beans. - Objectives. - The JavaBeans architecture. - Creating a bean. - The Beans conventions. - The Beanlnfo object. - The Counter and Alarm beans. - Packaging the beans. - Using the beans. - JavaBeans and you. - 5 Property Data Types. - Objectives. - Simple properties. - Bound properties. - Constrained properties. - Indexed properties. - 6 Reflection and Bean Introspection. - Objectives. - Reflection. - The introspection process. - How it actually works. - Experimenting with introspection. - 7 Beanlnfo Objects. - Objectives. - The jaya. beans package. - Beanlnfo objects. - The Beanlnfo interface. - Classes used with Beanlnfo. - The SimpleBeanlnfo class. - Additionallnfo objects. - The getBeanDescriptor method. - 8 An example BeanInfo Object. - Objectives. - The Clock bean. - The ClockBeanlnfo class. - The geticon ( ) method. - The getPropertyDescriptors ( ) method. - The getMethodDescriptors ( ) method. - Handling bound properties. - The manifest and JAR files. - 9 Bean Serialization. - Objectives. - Serialization in Java. - Serializing a bean. - Defining beans that can be serialized. - 10 Property Editors and Customizers. - Objectives. - Changing property values. - The Property Sheet. - Property Views. - Property Editors. - The PropertyEditor interface. - The PropertyEditorSupport class. - Registering a PropertyEditor. - Customizers. - 11 JavaBeans and ActiveX. - Objectives. - The Component Object Model. - What is ActiveX? . - ActiveX bridge. - Packaging a Bean. - Creating an ActiveX component. - Using the ActiveX component in a container. - Runtime support. - 12 Event Adapters. - Objectives. - Event adapters. - The use of event adapters. - Defining event adapters. - 13 RMI and Beans. - Objectives. - Non-graphical beans. - Remote Method Invocation. - the RMIClientBean. - The Manifest file. - Building the JAR file. - Using the RMI bean. - Appendix A: The Clock Bean. - Appendix B: The Monitor Bean. - Appendix C: The Alarm Bean. - Appendix D: The Multiplexer. - Appendix E: RMI beans.