home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
VCAFE.3.0A
/
Main.bin
/
StringComboBoxModelBeanInfo.java
< prev
next >
Wrap
Text File
|
1998-10-21
|
1KB
|
43 lines
package com.symantec.itools.swing.models;
import java.beans.*;
import com.symantec.itools.vcafe.beans.PropertyDescriptorAttributes;
import com.symantec.itools.vcafe.beans.PropertyHelpIDs;
public class StringComboBoxModelBeanInfo
extends ModelBeanInfo
{
protected Class getBeanClass()
{
return StringComboBoxModel.class;
}
public PropertyDescriptor[] getPropertyDescriptors()
{
try
{
PropertyDescriptor items =new PropertyDescriptor("items",getBeanClass());
items.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.STRINGCOMBOBOXMODEL_ITEMS_HELP_ID));
PropertyDescriptor[] rv = { items };
return rv;
}
catch(IntrospectionException e)
{
e.printStackTrace();
}
return null;
}
protected void modifyBeanDescriptor(BeanDescriptor beanDescriptor)
{
super.modifyBeanDescriptor(beanDescriptor);
beanDescriptor.setValue("WINHELP", winHelpID);
}
protected final static String winHelpID = "0x6012F";
}