com.altair.hwm.beans.utils
Class HWMSimpleBeanInfo

java.lang.Object
  extended by java.beans.SimpleBeanInfo
      extended by com.altair.hwm.beans.utils.HWMSimpleBeanInfo
All Implemented Interfaces:
java.beans.BeanInfo
Direct Known Subclasses:
FEPreSelectBeanInfo, HMCreateLineBeanInfo, HMCreatePointBeanInfo, HMEvalTCLBeanInfo, HMImportBeanInfo, HMMeshBeanInfo, HMReflectBeanInfo, HMScaleBeanInfo, HMSelectBeanInfo, HMViewBeanInfo, HWMButtonBeanInfo, HWMCheckBoxBeanInfo, HWMComboBoxBeanInfo, HWMLabelBeanInfo, HWMListBoxBeanInfo, HWMMinMaxIconBeanInfo, HWMRadioButtonBeanInfo, HWMSeparatorBeanInfo, HWMSliderBeanInfo, HWMSpinnerBeanInfo, HWMStartDBBeanInfo, HWMTextAreaBeanInfo, HWMTextFieldBeanInfo, PmgrExecBeanInfo

public class HWMSimpleBeanInfo
extends java.beans.SimpleBeanInfo

Title: HWMSimpleBeanInfo

Description: Class derived from SimpleBeanINfo, exposing methods such as enable/disable, and properties such as enable/disable, UIvisible, and foreground, backgound colors

Company: Altair Engineering, Inc.


Field Summary
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
HWMSimpleBeanInfo()
           
HWMSimpleBeanInfo(java.lang.Class classBean)
           
 
Method Summary
 java.beans.MethodDescriptor[] AppendMethodDescriptors(java.beans.MethodDescriptor[] arrMethDescDerived)
          Append the property descriptors defined in this base class with those defined in the derived class
 java.beans.PropertyDescriptor[] AppendPropertyDescriptors(java.beans.PropertyDescriptor[] arrPropDescDerived)
          Append the property descriptors defined in this base class with those defined in the derived class
 java.beans.BeanDescriptor getBeanDescriptor()
           
 java.beans.EventSetDescriptor[] GetEventSetDescriptors()
          Returns the HWMCmdEvent as the only event
 java.awt.Image getIcon(int nIconKind)
           
 java.beans.MethodDescriptor[] GetMethodDescriptors()
           
 java.beans.PropertyDescriptor[] GetPropertyDescriptors()
           
 java.awt.Image loadImage(java.lang.String strImgName)
          This is a utility method to help in loading icon images.
 
Methods inherited from class java.beans.SimpleBeanInfo
getAdditionalBeanInfo, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getMethodDescriptors, getPropertyDescriptors
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HWMSimpleBeanInfo

public HWMSimpleBeanInfo()

HWMSimpleBeanInfo

public HWMSimpleBeanInfo(java.lang.Class classBean)
Method Detail

getBeanDescriptor

public java.beans.BeanDescriptor getBeanDescriptor()
Specified by:
getBeanDescriptor in interface java.beans.BeanInfo
Overrides:
getBeanDescriptor in class java.beans.SimpleBeanInfo

GetMethodDescriptors

public java.beans.MethodDescriptor[] GetMethodDescriptors()

GetEventSetDescriptors

public java.beans.EventSetDescriptor[] GetEventSetDescriptors()
Returns the HWMCmdEvent as the only event

Returns:
EventSetDescriptor[] The array of events that the bean exposes

GetPropertyDescriptors

public java.beans.PropertyDescriptor[] GetPropertyDescriptors()

getIcon

public java.awt.Image getIcon(int nIconKind)
Specified by:
getIcon in interface java.beans.BeanInfo
Overrides:
getIcon in class java.beans.SimpleBeanInfo

AppendPropertyDescriptors

public java.beans.PropertyDescriptor[] AppendPropertyDescriptors(java.beans.PropertyDescriptor[] arrPropDescDerived)
Append the property descriptors defined in this base class with those defined in the derived class


AppendMethodDescriptors

public java.beans.MethodDescriptor[] AppendMethodDescriptors(java.beans.MethodDescriptor[] arrMethDescDerived)
Append the property descriptors defined in this base class with those defined in the derived class


loadImage

public java.awt.Image loadImage(java.lang.String strImgName)
This is a utility method to help in loading icon images. It takes the name of image file and loads the image object

Overrides:
loadImage in class java.beans.SimpleBeanInfo
Parameters:
strImgName - A pathname of the image file
Returns:
an image object. May be null if the load failed.