How to implement a bound property in your bean application?
Submitted by: AdministratorTo implement a bound property in the application, follow these steps:
► Import the java.beans package. This gives you access to the PropertyChangeSupport class.
► Instantiate a PropertyChangeSupport object. This object maintains the property change listener list and fires property change events. You can also make your class a PropertyChangeSupport subclass.
► Implement methods to maintain the property change listener list. Since a PropertyChangeSupport subclass implements these methods, you merely wrap calls to the property-change support object's methods.
► Modify a property's set method to fire a property change event when the property is changed.
Submitted by: Administrator
► Import the java.beans package. This gives you access to the PropertyChangeSupport class.
► Instantiate a PropertyChangeSupport object. This object maintains the property change listener list and fires property change events. You can also make your class a PropertyChangeSupport subclass.
► Implement methods to maintain the property change listener list. Since a PropertyChangeSupport subclass implements these methods, you merely wrap calls to the property-change support object's methods.
► Modify a property's set method to fire a property change event when the property is changed.
Submitted by: Administrator
Read Online Java Beans Job Interview Questions And Answers
Top Java Beans Questions
☺ | What are Java Beans? |
☺ | What is the relationship between Enterprise JavaBeans and JavaBeans? |
☺ | What are introspection API in java beans? |
☺ | Why do I get a NullPointerException when loading a JAR file into the BeanBox? |
☺ | What are the purpose of introspection? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |