| java.lang.Object org.netbeans.modules.form.BeanSupport
BeanSupport | public class BeanSupport (Code) | | BeanSupport is a utility class with various static methods supporting
operations with JavaBeans.
author: Ian Formanek, Jan Stola |
Method Summary | |
public static Object | createBeanInstance(Class beanClass) Utility method to create an instance of given class. | public static Class | getAdapterForListener(Class listener) A utility method that returns a class of event adapter for
specified listener. | public static Image | getBeanIcon(Class beanClass, int iconType) Utility method that obtains icon for a bean class.
(This method is currently used only for obtaining default icons for AWT
components. | public static Object | getDefaultInstance(Class beanClass) Utility method to obtain an instance of specified beanClass. |
createBeanInstance | public static Object createBeanInstance(Class beanClass)(Code) | | Utility method to create an instance of given class. Returns null on
error.
Parameters: beanClass - the class to create inctance of new instance of specified class or null if an error occuredduring instantiation |
getAdapterForListener | public static Class getAdapterForListener(Class listener)(Code) | | A utility method that returns a class of event adapter for
specified listener. It works only on known listeners from java.awt.event.
Null is returned for unknown listeners.
Parameters: listener - class of the listener class of an adapter for specified listener or null ifunknown/does not exist |
getBeanIcon | public static Image getBeanIcon(Class beanClass, int iconType)(Code) | | Utility method that obtains icon for a bean class.
(This method is currently used only for obtaining default icons for AWT
components. Other icons should be provided by BeanInfo.)
Parameters: beanClass - class of the bean Parameters: iconType - not used icon for the bean class |
getDefaultInstance | public static Object getDefaultInstance(Class beanClass)(Code) | | Utility method to obtain an instance of specified beanClass. The
instance is reused, and thus should only be used to obtain info about
settings of default instances of the specified class.
Parameters: beanClass - the class to create inctance of instance of specified class or null if an error occured duringinstantiation |
|
|