home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
VCAFE.3.0A
/
Main.bin
/
EtchedBorderBeanInfo.java
< prev
next >
Wrap
Text File
|
1998-10-21
|
2KB
|
64 lines
package com.symantec.itools.swing.borders;
import java.beans.*;
import com.symantec.itools.vcafe.beans.PropertyDescriptorAttributes;
import com.symantec.itools.vcafe.beans.PropertyHelpIDs;
public final class EtchedBorderBeanInfo
extends BorderBeanInfo
{
public EtchedBorderBeanInfo()
{
super();
set16x16ColorIconName("EtchedBorder.gif");
}
protected Class getBeanClass()
{
return EtchedBorder.class;
}
public PropertyDescriptor[] getPropertyDescriptors()
{
try
{
Class beanClass = getBeanClass();
PropertyDescriptor etchTypePD = new PropertyDescriptor("etchType", beanClass);
etchTypePD.setPropertyEditorClass(EtchedTypePropertyEditor.class);
etchTypePD.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.ETCHEDBORDER_ETCH_TYPE_HELP_ID));
PropertyDescriptor highlightColor = new PropertyDescriptor("highlightColor", beanClass);
highlightColor.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.ETCHEDBORDER_HIGHLIGHT_COLOR_HELP_ID));
PropertyDescriptor shadowColor = new PropertyDescriptor("shadowColor", beanClass);
shadowColor.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.ETCHEDBORDER_SHADOW_COLOR_HELP_ID));
PropertyDescriptor[] rv = {
etchTypePD,
highlightColor,
shadowColor };
return rv;
}
catch(IntrospectionException e)
{
e.printStackTrace();
}
//Error, return no properties
return new PropertyDescriptor[0];
}
protected void modifyBeanDescriptor(BeanDescriptor beanDescriptor)
{
super.modifyBeanDescriptor(beanDescriptor);
beanDescriptor.setValue("WINHELP", winHelpID);
}
protected final static String winHelpID = "0x60138";
}