public class BeanDescriptor extends FeatureDescriptor
这是BeanInfo对象返回的描述符之一,它也返回属性,方法和事件的描述符。
Constructor and Description |
---|
BeanDescriptor(类<?> beanClass)
为没有自定义程序的bean创建BeanDescriptor。
|
BeanDescriptor(类<?> beanClass, 类<?> customizerClass)
为具有自定义程序的bean创建BeanDescriptor。
|
Modifier and Type | Method and Description |
---|---|
类<?> |
getBeanClass()
获取bean的Class对象。
|
类<?> |
getCustomizerClass()
获取bean的定制器的Class对象。
|
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue, toString
public BeanDescriptor(类<?> beanClass)
beanClass
- 实现bean的Java类的Class对象。
例如sun.beans.OurButton.class。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.