| Author |
Is this consider a JavaBean?
|
K. Tsang
Ranch Hand
Joined: Sep 13, 2007
Posts: 1219
|
|
Hi all, I want to make sure my definition of JavaBean.
I want to point out is the method setVar2(String) valid if classify as JavaBean? Or "must" I use setVar2(int)?
|
K. Tsang JavaRanch SCJP5 SCJD/OCM-JD
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32689
|
|
|
I am not sure, but I think you need a setVar2(int) method.
|
 |
K. Tsang
Ranch Hand
Joined: Sep 13, 2007
Posts: 1219
|
|
|
thanks Campbell, so i assume it's not a javabean.
|
 |
Balu Sadhasivam
Ranch Hand
Joined: Jan 01, 2009
Posts: 874
|
|
One of the rule of Java Beans is the setter argument type must be same as the getter return type.
|
 |
K. Tsang
Ranch Hand
Joined: Sep 13, 2007
Posts: 1219
|
|
|
thanks Balu
|
 |
 |
|
|
subject: Is this consider a JavaBean?
|
|
|