public class SimpleBeanInfo extends Object implements BeanInfo
It defaults to providing "noop" information, and can be selectively overriden to provide more explicit information on chosen topics. When the introspector sees the "noop" values, it will apply low level introspection and design patterns to automatically analyze the target bean.
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32| Constructor and Description |
|---|
SimpleBeanInfo() |
| Modifier and Type | Method and Description |
|---|---|
BeanInfo[] |
getAdditionalBeanInfo()
Claim there are no other relevant BeanInfo objects.
|
BeanDescriptor |
getBeanDescriptor()
Deny knowledge about the class and customizer of the bean.
|
int |
getDefaultEventIndex()
Deny knowledge of a default event.
|
int |
getDefaultPropertyIndex()
Deny knowledge of a default property.
|
EventSetDescriptor[] |
getEventSetDescriptors()
Deny knowledge of event sets.
|
Image |
getIcon(int iconKind)
Claim there are no icons available.
|
MethodDescriptor[] |
getMethodDescriptors()
Deny knowledge of methods.
|
PropertyDescriptor[] |
getPropertyDescriptors()
Deny knowledge of properties.
|
Image |
loadImage(String resourceName)
This is a utility method to help in loading icon images.
|
public BeanDescriptor getBeanDescriptor()
getBeanDescriptor in interface BeanInfopublic PropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors in interface BeanInfoPropertyDescriptors
describing all properties supported by the bean
or nullpublic int getDefaultPropertyIndex()
getDefaultPropertyIndex in interface BeanInfoReturns -1 if there is no default property.
public EventSetDescriptor[] getEventSetDescriptors()
getEventSetDescriptors in interface BeanInfopublic int getDefaultEventIndex()
getDefaultEventIndex in interface BeanInfoReturns -1 if there is no default event.
public MethodDescriptor[] getMethodDescriptors()
getMethodDescriptors in interface BeanInfopublic BeanInfo[] getAdditionalBeanInfo()
getAdditionalBeanInfo in interface BeanInfopublic Image getIcon(int iconKind)
getIcon in interface BeanInfoiconKind - The kind of icon requested. This should be
one of the constant values ICON_COLOR_16x16, ICON_COLOR_32x32,
ICON_MONO_16x16, or ICON_MONO_32x32.public Image loadImage(String resourceName)
resourceName - A pathname relative to the directory
holding the class file of the current class. For example,
"wombat.gif". 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, 2019, Oracle and/or its affiliates. All rights reserved.