Java Beans - PowerPoint PPT Presentation

About This Presentation
Title:

Java Beans

Description:

Boolean accessor. public boolean is PropertyName () Indexed property // Accessors ... Vetoable accessor & modifier // Beans accessor. public TYPE get ... – PowerPoint PPT presentation

Number of Views:27
Avg rating:3.0/5.0
Slides: 27
Provided by: Alexi79
Category:
Tags: accessor | beans | java

less

Transcript and Presenter's Notes

Title: Java Beans


1
Lecture 11
  • Java Beans

2
(No Transcript)
3
Bean accessor modifier
  • // Beans accessor
  • public TYPE getltPropertyNamegt()
  • // Bean modifier
  • public void setltPropertyNamegt( TYPE arg )

4
Boolean accessor
  • public boolean isltPropertyNamegt()

5
(No Transcript)
6
(No Transcript)
7
Indexed property
  • // Accessors
  • public TYPE getltPropertyNamegt()
  • public TYPE getltPropertyNamegt( int idx )
  • // Modifiers
  • public void setltPropertyNamegt( TYPE arg )
  • public void setltPropertyNamegt( int idx, TYPE arg )

8
(No Transcript)
9
Property listeners
  • public void addPropertyChangeListener(
  • PropertyChangeListener listener )
  • public void removePropertyChangeListener(
  • PropertyChangeListener listener )

10
Property Change listener
  • public void propertyChange( PropertyChangeEvent
    ev )

11
(No Transcript)
12
(No Transcript)
13
(No Transcript)
14
Specific Property Change listener
  • public void addltPropertyNamegtListener(
    PropertyChangeListener listener )
  • public void removeltPropertyNamegtListener(
    PropertyChangeListener listener )

15
Vetoable accessor modifier
  • // Beans accessor
  • public TYPE getltPropertyNamegt()
  • // Bean modifier
  • public void setltPropertyNamegt( TYPE arg )
  • throws PropertyVetoException

16
Vetoable Property listeners
  • public void addVetoableChangeListener(
  • PropertyChangeListener listener )
  • public void removeVetoableChangeListener(
  • PropertyChangeListener listener )

17
(No Transcript)
18
(No Transcript)
19
(No Transcript)
20
(No Transcript)
21
(No Transcript)
22
(No Transcript)
23
(No Transcript)
24
(No Transcript)
25
(No Transcript)
26
Please read
  • JavBeans tutorial by Sun Microsystems
Write a Comment
User Comments (0)
About PowerShow.com