Back to index

wims  3.65+svn20090927
Public Member Functions | Static Private Attributes
fr.ove.openmath.jome.ctrlview.bidim.FormulaDisplayBeanInfo Class Reference

List of all members.

Public Member Functions

 FormulaDisplayBeanInfo ()
BeanInfo[] getAdditionalBeanInfo ()
 Gets a BeanInfo for the superclass of this bean.
BeanDescriptor getBeanDescriptor ()
 Gets the SymantecBeanDescriptor for this bean.
java.awt.Image getIcon (int nIconKind)
 Gets an image that may be used to visually represent this bean (in the toolbar, on a form, etc).

Static Private Attributes

static final Class beanClass = FormulaDisplay.class

Detailed Description

Definition at line 35 of file FormulaDisplayBeanInfo.java.


Constructor & Destructor Documentation

Definition at line 37 of file FormulaDisplayBeanInfo.java.

       {
       }

Member Function Documentation

Gets a BeanInfo for the superclass of this bean.

Returns:
BeanInfo[] containing this bean's superclass BeanInfo

Definition at line 45 of file FormulaDisplayBeanInfo.java.

       {
              try
              {
                     BeanInfo[] bi = new BeanInfo[1];
                     bi[0] = Introspector.getBeanInfo(beanClass.getSuperclass());
                     return bi;
              }
              catch (IntrospectionException e)
              {
                     throw new Error(e.toString());
              }
       }

Gets the SymantecBeanDescriptor for this bean.

Returns:
an object of type SymantecBeanDescriptor
See also:
symantec.itools.beans.SymantecBeanDescriptor

Definition at line 64 of file FormulaDisplayBeanInfo.java.

       {
              BeanDescriptor bd = new BeanDescriptor(beanClass);
              bd.setValue("CAN_ADD_CHILD",new Boolean(true));

              return bd;
       }
java.awt.Image fr.ove.openmath.jome.ctrlview.bidim.FormulaDisplayBeanInfo.getIcon ( int  nIconKind) [inline]

Gets an image that may be used to visually represent this bean (in the toolbar, on a form, etc).

Parameters:
iconKindthe 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

Definition at line 83 of file FormulaDisplayBeanInfo.java.

       {
              java.awt.Image img = null;
              if (nIconKind == BeanInfo.ICON_COLOR_16x16)
                            img = loadImage("Icon_Bidim_16.gif");
              if (nIconKind == BeanInfo.ICON_COLOR_32x32)
                     img = loadImage("Icon_Bidim_32.gif");
              return img;
       }

Member Data Documentation

final Class fr.ove.openmath.jome.ctrlview.bidim.FormulaDisplayBeanInfo.beanClass = FormulaDisplay.class [static, private]

Definition at line 93 of file FormulaDisplayBeanInfo.java.


The documentation for this class was generated from the following file: