Enterprise Information Portal APIs

com.ibm.mm.beans.gui
Class CMBVersionsViewerBeanInfo

java.lang.Object
  |
  +--java.beans.SimpleBeanInfo
        |
        +--com.ibm.mm.beans.gui.CMBVersionsViewerBeanInfo
All Implemented Interfaces:
java.beans.BeanInfo

public class CMBVersionsViewerBeanInfo
extends java.beans.SimpleBeanInfo


Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
CMBVersionsViewerBeanInfo()
           
 
Method Summary
 java.beans.BeanInfo[] getAdditionalBeanInfo()
          Gets a BeanInfo for the superclass of this bean.
 java.awt.Image getIcon(int nIconKind)
          Gets an image that can be used to visually represent this bean (in the toolbar, on a form, etc).
 java.beans.PropertyDescriptor[] getPropertyDescriptors()
          Gets the BeanDescriptor for this bean.
 
Methods inherited from class java.beans.SimpleBeanInfo
getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getMethodDescriptors, loadImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMBVersionsViewerBeanInfo

public CMBVersionsViewerBeanInfo()
Method Detail

getAdditionalBeanInfo

public java.beans.BeanInfo[] getAdditionalBeanInfo()
Gets a BeanInfo for the superclass of this bean.
Overrides:
getAdditionalBeanInfo in class java.beans.SimpleBeanInfo
Returns:
BeanInfo[] containing this bean's superclass BeanInfo

getPropertyDescriptors

public java.beans.PropertyDescriptor[] getPropertyDescriptors()
Gets the BeanDescriptor for this bean.
Overrides:
getPropertyDescriptors in class java.beans.SimpleBeanInfo
Returns:
an object of type BeanDescriptor
See Also:
public BeanDescriptor getBeanDescriptor() { // use symantec bean descriptor if possible try { if (getClass().getClassLoader().loadClass("symantec.itools.beans.SymantecBeanDescriptor") != null) { Class c = getClass().getClassLoader().loadClass("com.ibm.mm.beans.gui.PSymantecSupport"); Method m = c.getMethod("getVersionsViewerBeanDescriptor",new Class[] {beanClass.getClass()}); BeanDescriptor desc = (BeanDescriptor)m.invoke(null,new Object[] {beanClass}); return desc; } } catch (NullPointerException e) { } catch (ClassNotFoundException e) { } catch (InvocationTargetException e) { } catch (NoSuchMethodException e) { } catch (IllegalAccessException e) { } // otherwise, use generic return super.getBeanDescriptor(); }

getIcon

public java.awt.Image getIcon(int nIconKind)
Gets an image that can be used to visually represent this bean (in the toolbar, on a form, etc).
Overrides:
getIcon in class java.beans.SimpleBeanInfo
Parameters:
iconKind - the type of icon desired, one of: BeanInfo.ICON_MONO_16x16, BeanInfo.ICON_COLOR_16x16, BeanInfo.ICON_MONO_32x32, or BeanInfo.ICON_COLOR_32x32.
Returns:
an image for this bean
See Also:
BeanInfo.ICON_MONO_16x16, BeanInfo.ICON_COLOR_16x16, BeanInfo.ICON_MONO_32x32, BeanInfo.ICON_COLOR_32x32

EIP JavaBeans

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.