private static PropertyDescriptor[] getDescriptors(Class<?> clazz) { PropertyDescriptor[] pds; List<PropertyDescriptor> list; PropertyDescriptor[] pds2 = descriptors.get(clazz); if (null == pds2) { try { BeanInfo beanInfo = Introspector.getBeanInfo(clazz); pds = beanInfo.getPropertyDescriptors(); list = new ArrayList<PropertyDescriptor>(); for (int i = 0; i < pds.length; i++) { if (null != pds[i].getPropertyType()) { list.add(pds[i]); } } pds2 = new PropertyDescriptor[list.size()]; list.toArray(pds2); } catch (IntrospectionException ie) { ie.printStackTrace(); pds2 = new PropertyDescriptor[0]; } } descriptors.put(clazz, pds2); return (pds2); }
protected void defaultUpdateDescriptor(PropertyDescriptor pd) { // make non-editable try { pd.setWriteMethod(null); } catch (IntrospectionException e) { // TODO Auto-generated catch block e.printStackTrace(); } if(HIDDEN_PROPS.contains(pd.getName())) { pd.setHidden(true); } } }
e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace();
private static PropertyDescriptor[] getPdescriptor(){ PropertyDescriptor[] properties = new PropertyDescriptor[1]; try { properties[PROPERTY_calendar] = new PropertyDescriptor ( "calendar", org.tentackle.swing.FormCalendar.class, "getCalendar", "setCalendar" ); // NOI18N } catch(IntrospectionException e) { e.printStackTrace(); }//GEN-HEADEREND:Properties // Here you can add code for customizing the properties array. return properties; }//GEN-LAST:Properties
private static BeanInfo getBeanInfo(Object object) { BeanInfo beanInfo = BEAN_CACHE.get(object.getClass()); if(beanInfo == null){ try { beanInfo = new BeanInfo(object.getClass()); BEAN_CACHE.put(object.getClass(), beanInfo); } catch (IntrospectionException e) { e.printStackTrace(); } } return beanInfo; }
private static EventSetDescriptor[] getEdescriptor(){ EventSetDescriptor[] eventSets = new EventSetDescriptor[1]; try { eventSets[EVENT_propertyChangeListener] = new EventSetDescriptor ( nl.cloudfarming.client.geoviewer.EditLayer.class, "propertyChangeListener", java.beans.PropertyChangeListener.class, new String[] {"propertyChange"}, "addPropertyChangeListener", "removePropertyChangeListener" ); // NOI18N } catch(IntrospectionException e) { e.printStackTrace(); }//GEN-HEADEREND:Events // Here you can add code for customizing the event sets array. return eventSets; }//GEN-LAST:Events
private static PropertyDescriptor[] getPdescriptor(){ PropertyDescriptor[] properties = new PropertyDescriptor[1]; try { properties[PROPERTY_scale] = new PropertyDescriptor ( "scale", org.tentackle.swing.AbstractFractionNumberFormField.class, "getScale", "setScale" ); // NOI18N properties[PROPERTY_scale].setPreferred ( true ); } catch(IntrospectionException e) { e.printStackTrace(); }//GEN-HEADEREND:Properties // Here you can add code for customizing the properties array. return properties; }//GEN-LAST:Properties
private static PropertyDescriptor[] getPdescriptor(){ PropertyDescriptor[] properties = new PropertyDescriptor[1]; try { properties[PROPERTY_month] = new PropertyDescriptor ( "month", org.tentackle.swing.MonthSpinField.class, "getMonth", "setMonth" ); // NOI18N properties[PROPERTY_month].setPreferred ( true ); } catch(IntrospectionException e) { e.printStackTrace(); }//GEN-HEADEREND:Properties // Here you can add code for customizing the properties array. return properties; }//GEN-LAST:Properties
private static PropertyDescriptor[] getPdescriptor(){ PropertyDescriptor[] properties = new PropertyDescriptor[1]; try { properties[PROPERTY_clickCount] = new PropertyDescriptor ( "clickCount", org.tentackle.swing.FormTree.class, "getClickCount", null ); // NOI18N properties[PROPERTY_clickCount].setExpert ( true ); } catch(IntrospectionException e) { e.printStackTrace(); }//GEN-HEADEREND:Properties // Here you can add code for customizing the properties array. return properties; }//GEN-LAST:Properties
private static EventSetDescriptor[] getEdescriptor(){ EventSetDescriptor[] eventSets = new EventSetDescriptor[1]; try { eventSets[EVENT_propertyChangeListener] = new EventSetDescriptor ( Shape.class, "propertyChangeListener", java.beans.PropertyChangeListener.class, new String[] {"propertyChange"}, "addPropertyChangeListener", "removePropertyChangeListener" ); // NOI18N } catch(IntrospectionException e) { e.printStackTrace(); } // Here you can add code for customizing the event sets array. return eventSets; }
private static EventSetDescriptor[] getEdescriptor(){ EventSetDescriptor[] eventSets = new EventSetDescriptor[1]; try { eventSets[EVENT_propertyChangeListener] = new EventSetDescriptor ( nl.cloudfarming.client.model.Task.class, "propertyChangeListener", java.beans.PropertyChangeListener.class, new String[] {"propertyChange"}, "addPropertyChangeListener", "removePropertyChangeListener" ); // NOI18N } catch(IntrospectionException e) { e.printStackTrace(); }//GEN-HEADEREND:Events // Here you can add code for customizing the event sets array. return eventSets; }//GEN-LAST:Events
private static PropertyDescriptor[] getPdescriptor(){ PropertyDescriptor[] properties = new PropertyDescriptor[1]; try { properties[PROPERTY_year] = new PropertyDescriptor ( "year", org.tentackle.swing.YearSpinField.class, "getYear", "setYear" ); // NOI18N properties[PROPERTY_year].setPreferred ( true ); } catch(IntrospectionException e) { e.printStackTrace(); }//GEN-HEADEREND:Properties // Here you can add code for customizing the properties array. return properties; }//GEN-LAST:Properties
private static PropertyDescriptor[] getPdescriptor(){ PropertyDescriptor[] properties = new PropertyDescriptor[1]; try { properties[PROPERTY_timeZone] = new PropertyDescriptor ( "timeZone", org.tentackle.swing.TimeZoneComboBox.class, "getTimeZone", "setTimeZone" ); // NOI18N properties[PROPERTY_timeZone].setPreferred ( true ); } catch(IntrospectionException e) { e.printStackTrace(); }//GEN-HEADEREND:Properties // Here you can add code for customizing the properties array. return properties; }//GEN-LAST:Properties
private static EventSetDescriptor[] getEdescriptor(){ EventSetDescriptor[] eventSets = new EventSetDescriptor[1]; try { eventSets[EVENT_propertyChangeListener] = new EventSetDescriptor ( nl.cloudfarming.client.model.ProductionUnit.class, "propertyChangeListener", java.beans.PropertyChangeListener.class, new String[] {"propertyChange"}, "addPropertyChangeListener", "removePropertyChangeListener" ); // NOI18N } catch(IntrospectionException e) { e.printStackTrace(); }//GEN-HEADEREND:Events // Here you can add code for customizing the event sets array. return eventSets; }//GEN-LAST:Events // Method identifiers//GEN-FIRST:Methods
private static PropertyDescriptor[] getPdescriptor(){ PropertyDescriptor[] properties = new PropertyDescriptor[1]; try { properties[PROPERTY_hour] = new PropertyDescriptor ( "hour", org.tentackle.swing.HourSpinField.class, "getHour", "setHour" ); // NOI18N properties[PROPERTY_hour].setPreferred ( true ); } catch(IntrospectionException e) { e.printStackTrace(); }//GEN-HEADEREND:Properties // Here you can add code for customizing the properties array. return properties; }//GEN-LAST:Properties
private static PropertyDescriptor[] getPdescriptor(){ PropertyDescriptor[] properties = new PropertyDescriptor[1]; try { properties[PROPERTY_localeValue] = new PropertyDescriptor ( "localeValue", org.tentackle.swing.LocaleComboBox.class, "getLocaleValue", "setLocaleValue" ); // NOI18N properties[PROPERTY_localeValue].setPreferred ( true ); } catch(IntrospectionException e) { e.printStackTrace(); }//GEN-HEADEREND:Properties // Here you can add code for customizing the properties array. return properties; }//GEN-LAST:Properties
private static PropertyDescriptor[] getPdescriptor(){ PropertyDescriptor[] properties = new PropertyDescriptor[1]; try { properties[PROPERTY_weekday] = new PropertyDescriptor ( "weekday", org.tentackle.swing.WeekdayComboBox.class, "getWeekday", "setWeekday" ); // NOI18N properties[PROPERTY_weekday].setPreferred ( true ); } catch(IntrospectionException e) { e.printStackTrace(); }//GEN-HEADEREND:Properties // Here you can add code for customizing the properties array. return properties; }//GEN-LAST:Properties
private static PropertyDescriptor[] getPdescriptor(){ PropertyDescriptor[] properties = new PropertyDescriptor[1]; try { properties[PROPERTY_minSec] = new PropertyDescriptor ( "minSec", org.tentackle.swing.MinSecSpinField.class, "getMinSec", "setMinSec" ); // NOI18N properties[PROPERTY_minSec].setPreferred ( true ); } catch(IntrospectionException e) { e.printStackTrace(); }//GEN-HEADEREND:Properties // Here you can add code for customizing the properties array. return properties; }//GEN-LAST:Properties
private static PropertyDescriptor[] getPdescriptor(){ PropertyDescriptor[] properties = new PropertyDescriptor[1]; try { properties[PROPERTY_invert] = new PropertyDescriptor ( "invert", org.tentackle.swing.AcceptDenyCheckBox.class, "isInvert", "setInvert" ); // NOI18N properties[PROPERTY_invert].setPreferred ( true ); } catch(IntrospectionException e) { e.printStackTrace(); }//GEN-HEADEREND:Properties // Here you can add code for customizing the properties array. return properties; }//GEN-LAST:Properties