1 19 20 package org.netbeans.modules.search; 21 22 import java.beans.BeanDescriptor ; 23 import java.beans.IntrospectionException ; 24 import java.beans.PropertyDescriptor ; 25 import java.beans.SimpleBeanInfo ; 26 27 28 33 public class SearchProjectSettingsBeanInfo extends SimpleBeanInfo { 34 35 public PropertyDescriptor [] getPropertyDescriptors () { 36 try { 37 PropertyDescriptor [] desc = new PropertyDescriptor [] { 38 new PropertyDescriptor (SearchProjectSettings.PROP_CRITERIA, 39 SearchProjectSettings.class, 40 "getSearchCriteria", "setSearchCriteria")}; desc[0].setHidden(true); 43 return desc; 44 } catch (IntrospectionException ex) { 45 ex.printStackTrace(); return null; 47 } 48 } 49 50 public BeanDescriptor getBeanDescriptor() { 51 BeanDescriptor descr = new BeanDescriptor (SearchProjectSettings.class); 52 return descr; 53 } 54 55 } 56 | Popular Tags |