| Author |
JavaBeans Bound Properties Question
|
Avi Abrami
Ranch Hand
Joined: Oct 11, 2000
Posts: 1112
|
|
How to obtain a list of the names of a java bean's bound properties?
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16686
|
|
Avi Abrami wrote:How to obtain a list of the names of a java bean's bound properties?
One option would be to use the java.beans.Introspector class... from this class, you can get the beaninfo for the javabean, which you can use to get an array of all the properties descriptors, and then, you can use the isBound() method of the descriptors to get the ones that you want.
Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
Avi Abrami
Ranch Hand
Joined: Oct 11, 2000
Posts: 1112
|
|
Thank you, Henry!
|
 |
 |
|
|
subject: JavaBeans Bound Properties Question
|
|
|