Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.beans.SimpleBeanInfo
This is a support class to make it easier for people to provide BeanInfo classes.
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.
Fields inherited from interface java.beans.BeanInfo |
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
Constructor Summary | |
SimpleBeanInfo()
|
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleBeanInfo()
Method Detail |
public BeanDescriptor getBeanDescriptor()
getBeanDescriptor
in interface BeanInfo
java.beans.BeanInfo
public PropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors
in interface BeanInfo
java.beans.BeanInfo
If a property is indexed, then its entry in the result array will belong to the IndexedPropertyDescriptor subclass of PropertyDescriptor. A client of getPropertyDescriptors can use "instanceof" to check if a given PropertyDescriptor is an IndexedPropertyDescriptor.
public int getDefaultPropertyIndex()
getDefaultPropertyIndex
in interface BeanInfo
java.beans.BeanInfo
Returns -1 if there is no default property.
public EventSetDescriptor[] getEventSetDescriptors()
getEventSetDescriptors
in interface BeanInfo
java.beans.BeanInfo
public int getDefaultEventIndex()
getDefaultEventIndex
in interface BeanInfo
java.beans.BeanInfo
Returns -1 if there is no default event.
public MethodDescriptor[] getMethodDescriptors()
getMethodDescriptors
in interface BeanInfo
java.beans.BeanInfo
public BeanInfo[] getAdditionalBeanInfo()
getAdditionalBeanInfo
in interface BeanInfo
java.beans.BeanInfo
public Image getIcon(int iconKind)
getIcon
in interface BeanInfo
java.beans.BeanInfo
iconKind
- 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".
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.