JavaBeans is a multiplex software model JavaBeans runs in a container to provide specific operations.
Performance JavaBeans is the establishment of an application's architectural module Most commonly used JavaBeans is usually small and medium-sized control.
Procedure, but we can also write a JavaBeans component that packages the entire application running logic and embed it.
Composite document in order to achieve more complex features
Generally, JavaBeans can be expressed as simple GUI components can be a button component cursor menu, etc.
These simple Javabeans components provide telling users about what is JavaBeans, but we can also
To write some invisible JavaBeans for accepting events, such as access to database execution queries
Operation JavaBeans They do not need any visual interface in JavaBeans in the JSP program at runtime
JavaBeans generally visible to invisible components are generally used to write Applet programs or Java applications.
The JavaBeans component model allows the software to make it easy to modify and easily upgrade each JavaBeans component contains a set of properties and event processors to combine several JavaBeans components to generate design.
The specific running behavior required by developers is stored in the container or toolbase for developers development
application
The Java application can also develop by JavaBeans component designers or applications at runtime.
The attribute access method established by the person setXXX method and getxxx method modifies the properties of the JavaBeans component.
Some attributes may be simple attributes such as color and shape or may be complex attributes affecting the overall behavior of the JavaBeans component.
JavaBeans attribute:
JavaBeans's properties and properties referred to in the general java program or all object-oriented programming
The properties of the object in the language are the specific embodiment of the same concept in the program is the variable in the class in JavaBeans.
The design of the 4 type Simple property index property Bound property is subdivided into the constrained property in the design.
SIMPLE attribute
A Simple type property represents a variable attribute accompanying a pair of getxxx () setxxx () methods
The name is relative to the getxxx () setXXXX () method associated with this property, for example, if there is setX () and getx ()
Methods The fellow means that there is an attribute called "X" if there is a method called ISX (), usually, "X" is a cloth
The properties of the type.
Indexed property
A indexed type JavaBeans property represents an array value to use setxxx () corresponding to this property.
Methods and getxxx () methods can access the values of an element in an array while we can also use the other two
Methods Set or acquire the value of the entire array (ie the value of the attribute).
Bound property
The properties of a bound type JavaBean component have such features When the value of the property changes
This must be notified that other JavaBeans component objects will change when the property value of the JavaBeans component object changes.
Attributes triggers a PropertyChange event (attribute change event is also seen in the Java program.
Object) This event encapsulates the new value of the original value attribute attribute attribute attribute name properties that occur attribute change events
This event will be passed to other JavaBeans components as the JavaBeans component object that receives events should be done.
What actions are defined by themselves.
Constrained property
The attribute of the consTrained type of the JavaBeans component has the nature of this property. When this attribute is about to happen.
When it is changed, it has established some Java objects that have established a certain monitor relationship when there is no change.
Change the event listener object of the attribute of this constrained type by retrieval attribute value will be thrown
PropertyVetoException exception events to block changes in this property value.