1 19 20 package org.netbeans.modules.form.beaninfo.swing; 21 22 import java.beans.*; 23 import javax.swing.border.EtchedBorder ; 24 25 26 public class EtchedBorderBeanInfo extends BISupport { 27 28 public EtchedBorderBeanInfo() { 29 super("etchedBorder", javax.swing.border.EtchedBorder .class); } 31 32 protected PropertyDescriptor[] createPropertyDescriptors() throws IntrospectionException { 33 PropertyDescriptor[] pds = new PropertyDescriptor[] { 34 createRO(EtchedBorder .class, "etchType"), createRO(EtchedBorder .class, "highlightColor"), createRO(EtchedBorder .class, "shadowColor"), }; 38 pds[0].setPropertyEditorClass(EtchTypePropertyEditor.class); 39 return pds; 40 } 41 42 public static class EtchTypePropertyEditor extends BISupport.TaggedPropertyEditor { 43 public EtchTypePropertyEditor() { 44 super( 45 new int[] { 46 EtchedBorder.LOWERED, 47 EtchedBorder.RAISED, 48 }, 49 new String [] { 50 "javax.swing.border.EtchedBorder.LOWERED", "javax.swing.border.EtchedBorder.RAISED" }, 53 new String [] { 54 "VALUE_EtchLowered", "VALUE_EtchRaised", } 57 ); 58 } 59 } 60 61 } 62 | Popular Tags |