Hi,
K&B book discusses about
java bean standards in first chapter for
a) Simple properties
b) Boolean properties
c) Events
But it does not discusses about indexed properties {arrays} , so here are the conventions
If a bean has a indexed property named say Foo[] foos; then the valid getter and setter method signatures are as follows
a) public Foo[] getFoos();
b) public void setFoos( Foo[] var) ;
c) public Foo getFoos(int index);
d) public void setFoos( int index, Foo var);
Note, getFoos() and setFoos() are overloaded, one returns the indexed property and the other returns a specific Foo object from the array given the index and note that index must be the first argument to setFoos().
Also Events :
The event source must extend java.util.EventListner
So if you have an event named ActionListner, then the ActionListner class must extend java.util.EventListner and the method conventions are same as explained in the book.
Read javabean spec Section 8.3.
Thanks
Deepak