Documentation

The Java™ Tutorials

Trail: JavaBeans(TM)

JavaBeans™ makes it easy to reuse software components.JavaBeans™使重用软件组件变得容易。Developers can use software components written by others without having to understand their inner workings.开发人员可以使用他人编写的软件组件,而无需了解其内部工作原理。

To understand why software components are useful, think of a worker assembling a car.要理解软件组件为什么有用,请想象一个组装汽车的工人。Instead of building a radio from scratch, for example, she simply obtains a radio and hooks it up with the rest of the car.例如,她没有从头开始制造收音机,而是简单地获得一台收音机并将其与汽车的其余部分连接起来。

This trail describes JavaBeans using the following lessons:本教程介绍了使用以下课程的JavaBeans:

Quick Start快速起步 provides a speedy introduction to JavaBeans by showing how to build applications with NetBeans.通过展示如何使用NetBeans构建应用程序,快速介绍了JavaBeans。

Writing JavaBeans Components编写JavaBeans组件 describes the coding patterns used for bean properties, methods, and events.描述用于bean属性、方法和事件的编码模式。It also outlines the use of a BeanInfo to customize the development experience in a builder tool.它还概述了如何使用BeanInfo在builder工具中定制开发体验。

Advanced JavaBeans Topics高级JavaBeans主题 covers bean persistence, long term persistence, and customization.包括bean持久性、长期持久性和定制。


Previous page: Beginning of Tutorial
Next page: Quick Start