1 19 20 package org.netbeans.modules.form.beaninfo.swing; 21 22 import java.beans.*; 23 import javax.swing.border.BevelBorder ; 24 25 public class BevelBorderBeanInfo extends BISupport { 26 27 public BevelBorderBeanInfo() { 28 super("bevelBorder", javax.swing.border.BevelBorder .class); } 30 31 protected PropertyDescriptor[] createPropertyDescriptors() throws IntrospectionException { 32 PropertyDescriptor[] pds = new PropertyDescriptor[] { 33 createRO(BevelBorder .class, "bevelType"), createRO(BevelBorder .class, "highlightOuterColor"), createRO(BevelBorder .class, "highlightInnerColor"), createRO(BevelBorder .class, "shadowOuterColor"), createRO(BevelBorder .class, "shadowInnerColor"), }; 39 pds[0].setPropertyEditorClass(BevelTypePropertyEditor.class); 40 return pds; 41 } 42 43 public static class BevelTypePropertyEditor extends BISupport.TaggedPropertyEditor { 44 public BevelTypePropertyEditor() { 45 super( 46 new int[] { 47 BevelBorder.RAISED, 48 BevelBorder.LOWERED, 49 }, 50 new String [] { 51 "javax.swing.border.BevelBorder.RAISED", "javax.swing.border.BevelBorder.LOWERED", }, 54 new String [] { 55 "VALUE_BevelRaised", "VALUE_BevelLowered", } 58 ); 59 } 60 } 61 62 } 63 | Popular Tags |