SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Prepared by :- Hitesh Parmar
hitesh.parmar915@gmail.com
@i_hiteshparmar
 What is a Java Bean.
 Components and classes with respect to Java Bean.
 Java.Beans(Package).
 The Component and its type in Java Beans.
 Useful Terms while Using Java Beans.
 Software Components
 Visually Manipulated, Builder Tools
 Support
 “It’s a Component Architecture of Java which allow
you to define the Component ”
 Java Bean is nothing but the Java Class.
 Example:-
 Swing are all the Java Bean component
 Component (Button,TextField,Label)
 Java Bean classes follow certain Rule or Condition.
 All java Bean classes must Implement the Serializable
Interface.
 Component may be used by some apllication
builder.
 A bean has a no argument constructor.
Serializing
CLASS
Class Object
Component
Object
 Java Bean API makes it possible to write the
component s/w in a java programming language.
 This package will be used depending upon the need
of the Application (based on funcion of bean classes).
 Now when its only the use of the property or the
Getter & Setter Method at that time you might not
even make a use of this package.
 The component is nothing but the group of classes.
 Example:- Jbutton(it’s a component not a class).
 In order to a swing Button there are whole lot of class
are involved to build this Jbutton.
 Component is a single Functionality provided by
many different classes
 Component is a group of classses that interact with
eachother to fulfill the single purpose.
 Application developer uses different beans in his
application using the Java Beans.
 You can build two types of Components.
Component
GUI based
Non GUI based
Extends
Component
 Properties
 Event
 Persistence
 Introspection
 Customization
 Discrete, named attributes that determine the
appearance ,behavior and state of a component.
 Accessible programmatically through accessor
methods.
 Accessible visually through property sheets.
 Simple Properties
 Boolean Properties
 Indexed Properties
 1 Simple Properties:-
 Represent a single value.
 The accessor methods should follow standard naming
conventions.
public <PropertyType> get<PropertyName>();
public void set<PropertyName>(<PropertyType> value);
Example:
public String getHostName();
public void setHostName( String hostName );
 2 BooleanProperties:-
 They are simple properties
 The getter methods follow an optional design pattern
public boolean is<PropertyName>();
Example:
public boolean isConnected();
 3 Indexed Properties:-
 Represent an array of values
public <PropertyElement> get<PropertyName>(int index);
public void set<PropertyName>(int index,<PropertyElement> value);
public <PropertyElement>[] get<PropertyName>();
public void set<PropertyName>(<PropertyElement>[] values);
Example:
public Color setPalette(int index);
public void setPalette(int index,Color value);
public Color[] getPalette();
public void setPalette(Color[] values);
 Bound:-
 a bound property notifies other objects when its value
changes
 generates a PropertyChange event with property name,
old value and new value
 Constrained:-
 an object with constrained properties allows other
objects to veto a constrained property value change
 Constrained property listeners can veto a change by
throwing a PropertyVetoException
 Two types of objects are involved:
 “Source” objects.
 “Listener” objects.
 Message sent from one object to another.
 Sender fires event, recipient (listener) handles the
event
 There may be many listeners.
Event
source
Event
listener
Fire event
Event
Object
Register listener
Sender fires event, recipient (listener) handles
the event
 Persistance
 Your Bean should be able to store its state, which means
there should be the serializable interface.
 Upon the Bean a builder tool should be able to make a
reflaction and be able to create an object of your
component.
 [Ex. Drag and drop a component in to a design area and
the builder tool should be able to create the instance of
that component and be able to display the property of
that bean via reflaction.]
 Customization
 Using the Bean customization, you can specify what
methods or the properties that you want to expose at rhe
run time environment, so such property will be
displayed in the propertysheet.
 Introspection
 Is nothing but a reflection using which the builder tool
can display all the events and the properties of the
component.
 Reflection API
 It helps us to find out what are the contents of the class,
so you can findout what are the methods, constructors
and variables in the class and you can find out the
details in return.
 Due to the process of the reflection builder tool can be
able to display what are the property of the Component
in the property sheet and also provides the details
regarding the Events and methods.
 Buttons
 Text Fields
 List Boxes
 Scroll Bars
 Dialogs
BeanBoxToolBoxToolBox BeanBox
Property Sheet
 BDK - Sun
 NetBeans – www.netbeans.org
 Jbuilder - Inprise
 Super Mojo - Penumbra Software
 Visual Age for Java - IBM
 Visual Cafe - Symantec Corporation
 JDeveloper Suite - Oracle
Introduction to java beans

Weitere ähnliche Inhalte

Was ist angesagt? (20)

Introduction to EJB
Introduction to EJBIntroduction to EJB
Introduction to EJB
 
Java: GUI
Java: GUIJava: GUI
Java: GUI
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
Css selectors
Css selectorsCss selectors
Css selectors
 
introduction of Java beans
introduction of Java beansintroduction of Java beans
introduction of Java beans
 
ASP.NET Web API
ASP.NET Web APIASP.NET Web API
ASP.NET Web API
 
Web controls
Web controlsWeb controls
Web controls
 
Php string function
Php string function Php string function
Php string function
 
ADO.NET
ADO.NETADO.NET
ADO.NET
 
Mvc architecture
Mvc architectureMvc architecture
Mvc architecture
 
Spring Data JPA
Spring Data JPASpring Data JPA
Spring Data JPA
 
Javascript
JavascriptJavascript
Javascript
 
Hibernate ppt
Hibernate pptHibernate ppt
Hibernate ppt
 
Event In JavaScript
Event In JavaScriptEvent In JavaScript
Event In JavaScript
 
Ado.Net Tutorial
Ado.Net TutorialAdo.Net Tutorial
Ado.Net Tutorial
 
Developing an ASP.NET Web Application
Developing an ASP.NET Web ApplicationDeveloping an ASP.NET Web Application
Developing an ASP.NET Web Application
 
Javascript
JavascriptJavascript
Javascript
 
ADO .Net
ADO .Net ADO .Net
ADO .Net
 
Spring framework Controllers and Annotations
Spring framework   Controllers and AnnotationsSpring framework   Controllers and Annotations
Spring framework Controllers and Annotations
 
JDBC – Java Database Connectivity
JDBC – Java Database ConnectivityJDBC – Java Database Connectivity
JDBC – Java Database Connectivity
 

Ähnlich wie Introduction to java beans

Java Beans Unit 4(Part 1)
Java Beans Unit 4(Part 1)Java Beans Unit 4(Part 1)
Java Beans Unit 4(Part 1)SURBHI SAROHA
 
WEB PROGRAMMING UNIT IV NOTES BY BHAVSINGH MALOTH
WEB PROGRAMMING UNIT IV NOTES BY BHAVSINGH MALOTHWEB PROGRAMMING UNIT IV NOTES BY BHAVSINGH MALOTH
WEB PROGRAMMING UNIT IV NOTES BY BHAVSINGH MALOTHBhavsingh Maloth
 
Java interview questions and answers
Java interview questions and answersJava interview questions and answers
Java interview questions and answersKrishnaov
 
Java Beans Unit 4(part 2)
Java Beans Unit 4(part 2)Java Beans Unit 4(part 2)
Java Beans Unit 4(part 2)SURBHI SAROHA
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring FrameworkRajind Ruparathna
 
-Kotlin_Camp_Unit2.pptx
-Kotlin_Camp_Unit2.pptx-Kotlin_Camp_Unit2.pptx
-Kotlin_Camp_Unit2.pptxRishiGandhi19
 
Spring framework in depth
Spring framework in depthSpring framework in depth
Spring framework in depthVinay Kumar
 
SoapUI Pro Plugin Workshop #SoapUIPlugins
SoapUI Pro Plugin Workshop #SoapUIPluginsSoapUI Pro Plugin Workshop #SoapUIPlugins
SoapUI Pro Plugin Workshop #SoapUIPluginsSmartBear
 
Spring IOC and DAO
Spring IOC and DAOSpring IOC and DAO
Spring IOC and DAOAnushaNaidu
 
SCR Annotations for Fun and Profit
SCR Annotations for Fun and ProfitSCR Annotations for Fun and Profit
SCR Annotations for Fun and ProfitMike Pfaff
 
Start Developing Apps for Magnolia CMS
Start Developing Apps for Magnolia CMSStart Developing Apps for Magnolia CMS
Start Developing Apps for Magnolia CMSMagnolia
 

Ähnlich wie Introduction to java beans (20)

Java beans
Java beansJava beans
Java beans
 
Unit iv
Unit ivUnit iv
Unit iv
 
Java Beans Unit 4(Part 1)
Java Beans Unit 4(Part 1)Java Beans Unit 4(Part 1)
Java Beans Unit 4(Part 1)
 
Java beans
Java beansJava beans
Java beans
 
WEB PROGRAMMING UNIT IV NOTES BY BHAVSINGH MALOTH
WEB PROGRAMMING UNIT IV NOTES BY BHAVSINGH MALOTHWEB PROGRAMMING UNIT IV NOTES BY BHAVSINGH MALOTH
WEB PROGRAMMING UNIT IV NOTES BY BHAVSINGH MALOTH
 
Javabeans .pdf
Javabeans .pdfJavabeans .pdf
Javabeans .pdf
 
Java interview questions and answers
Java interview questions and answersJava interview questions and answers
Java interview questions and answers
 
Java Beans Unit 4(part 2)
Java Beans Unit 4(part 2)Java Beans Unit 4(part 2)
Java Beans Unit 4(part 2)
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
 
-Kotlin_Camp_Unit2.pptx
-Kotlin_Camp_Unit2.pptx-Kotlin_Camp_Unit2.pptx
-Kotlin_Camp_Unit2.pptx
 
-Kotlin Camp Unit2.pptx
-Kotlin Camp Unit2.pptx-Kotlin Camp Unit2.pptx
-Kotlin Camp Unit2.pptx
 
Unit4wt
Unit4wtUnit4wt
Unit4wt
 
Unit4wt
Unit4wtUnit4wt
Unit4wt
 
Spring framework in depth
Spring framework in depthSpring framework in depth
Spring framework in depth
 
SoapUI Pro Plugin Workshop #SoapUIPlugins
SoapUI Pro Plugin Workshop #SoapUIPluginsSoapUI Pro Plugin Workshop #SoapUIPlugins
SoapUI Pro Plugin Workshop #SoapUIPlugins
 
Spring IOC and DAO
Spring IOC and DAOSpring IOC and DAO
Spring IOC and DAO
 
SCR Annotations for Fun and Profit
SCR Annotations for Fun and ProfitSCR Annotations for Fun and Profit
SCR Annotations for Fun and Profit
 
Spring boot
Spring bootSpring boot
Spring boot
 
Form part1
Form part1Form part1
Form part1
 
Start Developing Apps for Magnolia CMS
Start Developing Apps for Magnolia CMSStart Developing Apps for Magnolia CMS
Start Developing Apps for Magnolia CMS
 

Kürzlich hochgeladen

Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...OnePlan Solutions
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdfExploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdfkalichargn70th171
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationBradBedford3
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceBrainSell Technologies
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作qr0udbr0
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...confluent
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsSafe Software
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsChristian Birchler
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtimeandrehoraa
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Developmentvyaparkranti
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Angel Borroy López
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 

Kürzlich hochgeladen (20)

Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdfExploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
Exploring Selenium_Appium Frameworks for Seamless Integration with HeadSpin.pdf
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion Application
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data Streams
 
Odoo Development Company in India | Devintelle Consulting Service
Odoo Development Company in India | Devintelle Consulting ServiceOdoo Development Company in India | Devintelle Consulting Service
Odoo Development Company in India | Devintelle Consulting Service
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtime
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Development
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 

Introduction to java beans

  • 1. Prepared by :- Hitesh Parmar hitesh.parmar915@gmail.com @i_hiteshparmar
  • 2.  What is a Java Bean.  Components and classes with respect to Java Bean.  Java.Beans(Package).  The Component and its type in Java Beans.  Useful Terms while Using Java Beans.  Software Components  Visually Manipulated, Builder Tools  Support
  • 3.  “It’s a Component Architecture of Java which allow you to define the Component ”  Java Bean is nothing but the Java Class.  Example:-  Swing are all the Java Bean component  Component (Button,TextField,Label)
  • 4.  Java Bean classes follow certain Rule or Condition.  All java Bean classes must Implement the Serializable Interface.  Component may be used by some apllication builder.  A bean has a no argument constructor. Serializing CLASS Class Object Component Object
  • 5.  Java Bean API makes it possible to write the component s/w in a java programming language.  This package will be used depending upon the need of the Application (based on funcion of bean classes).  Now when its only the use of the property or the Getter & Setter Method at that time you might not even make a use of this package.
  • 6.  The component is nothing but the group of classes.  Example:- Jbutton(it’s a component not a class).  In order to a swing Button there are whole lot of class are involved to build this Jbutton.  Component is a single Functionality provided by many different classes  Component is a group of classses that interact with eachother to fulfill the single purpose.
  • 7.  Application developer uses different beans in his application using the Java Beans.  You can build two types of Components. Component GUI based Non GUI based Extends Component
  • 8.  Properties  Event  Persistence  Introspection  Customization
  • 9.  Discrete, named attributes that determine the appearance ,behavior and state of a component.  Accessible programmatically through accessor methods.  Accessible visually through property sheets.
  • 10.  Simple Properties  Boolean Properties  Indexed Properties
  • 11.  1 Simple Properties:-  Represent a single value.  The accessor methods should follow standard naming conventions. public <PropertyType> get<PropertyName>(); public void set<PropertyName>(<PropertyType> value); Example: public String getHostName(); public void setHostName( String hostName );
  • 12.  2 BooleanProperties:-  They are simple properties  The getter methods follow an optional design pattern public boolean is<PropertyName>(); Example: public boolean isConnected();
  • 13.  3 Indexed Properties:-  Represent an array of values public <PropertyElement> get<PropertyName>(int index); public void set<PropertyName>(int index,<PropertyElement> value); public <PropertyElement>[] get<PropertyName>(); public void set<PropertyName>(<PropertyElement>[] values); Example: public Color setPalette(int index); public void setPalette(int index,Color value); public Color[] getPalette(); public void setPalette(Color[] values);
  • 14.  Bound:-  a bound property notifies other objects when its value changes  generates a PropertyChange event with property name, old value and new value  Constrained:-  an object with constrained properties allows other objects to veto a constrained property value change  Constrained property listeners can veto a change by throwing a PropertyVetoException
  • 15.  Two types of objects are involved:  “Source” objects.  “Listener” objects.  Message sent from one object to another.  Sender fires event, recipient (listener) handles the event  There may be many listeners.
  • 16. Event source Event listener Fire event Event Object Register listener Sender fires event, recipient (listener) handles the event
  • 17.  Persistance  Your Bean should be able to store its state, which means there should be the serializable interface.  Upon the Bean a builder tool should be able to make a reflaction and be able to create an object of your component.  [Ex. Drag and drop a component in to a design area and the builder tool should be able to create the instance of that component and be able to display the property of that bean via reflaction.]
  • 18.  Customization  Using the Bean customization, you can specify what methods or the properties that you want to expose at rhe run time environment, so such property will be displayed in the propertysheet.  Introspection  Is nothing but a reflection using which the builder tool can display all the events and the properties of the component.
  • 19.  Reflection API  It helps us to find out what are the contents of the class, so you can findout what are the methods, constructors and variables in the class and you can find out the details in return.  Due to the process of the reflection builder tool can be able to display what are the property of the Component in the property sheet and also provides the details regarding the Events and methods.
  • 20.  Buttons  Text Fields  List Boxes  Scroll Bars  Dialogs
  • 22.  BDK - Sun  NetBeans – www.netbeans.org  Jbuilder - Inprise  Super Mojo - Penumbra Software  Visual Age for Java - IBM  Visual Cafe - Symantec Corporation  JDeveloper Suite - Oracle