/** * See {@link java.beans.FeatureDescriptor}. */ public static void copyNonMethodProperties(PropertyDescriptor source, PropertyDescriptor target) { target.setExpert(source.isExpert()); target.setHidden(source.isHidden()); target.setPreferred(source.isPreferred()); target.setName(source.getName()); target.setShortDescription(source.getShortDescription()); target.setDisplayName(source.getDisplayName()); // Copy all attributes (emulating behavior of private FeatureDescriptor#addTable) Enumeration<String> keys = source.attributeNames(); while (keys.hasMoreElements()) { String key = keys.nextElement(); target.setValue(key, source.getValue(key)); } // See java.beans.PropertyDescriptor#PropertyDescriptor(PropertyDescriptor) target.setPropertyEditorClass(source.getPropertyEditorClass()); target.setBound(source.isBound()); target.setConstrained(source.isConstrained()); }
/** * See {@link java.beans.FeatureDescriptor}. */ public static void copyNonMethodProperties(PropertyDescriptor source, PropertyDescriptor target) { target.setExpert(source.isExpert()); target.setHidden(source.isHidden()); target.setPreferred(source.isPreferred()); target.setName(source.getName()); target.setShortDescription(source.getShortDescription()); target.setDisplayName(source.getDisplayName()); // Copy all attributes (emulating behavior of private FeatureDescriptor#addTable) Enumeration<String> keys = source.attributeNames(); while (keys.hasMoreElements()) { String key = keys.nextElement(); target.setValue(key, source.getValue(key)); } // See java.beans.PropertyDescriptor#PropertyDescriptor(PropertyDescriptor) target.setPropertyEditorClass(source.getPropertyEditorClass()); target.setBound(source.isBound()); target.setConstrained(source.isConstrained()); }
public void setPreferred(boolean preferred) { this.preffered = preferred; if( propertyDescriptor==null )return; propertyDescriptor.setPreferred(preferred); } //</editor-fold>
/** * Sets this property to preferred. */ public void setPreferred(boolean bpref) { m_delegate.setPreferred(bpref); }
protected void setPreferred(boolean preferred, String... propertyNames) { for (String propertyName : propertyNames) { PropertyDescriptor pd = properties.get(propertyName); if (pd != null) { pd.setPreferred(preferred); } else { LOG.log(Level.WARNING, "Failed to set preferred attribute for property '" + propertyName + "'. No such property was found"); } } }
protected void setPreferred(boolean preferred, String... propertyNames) { for (String propertyName : propertyNames) { PropertyDescriptor pd = properties.get(propertyName); if (pd != null) { pd.setPreferred(preferred); } else { LOG.log(Level.WARNING, "Failed to set preferred attribute for property '" + propertyName + "'. No such property was found"); } } }
protected void setPreferred(boolean preferred, String... propertyNames) { for (String propertyName : propertyNames) { PropertyDescriptor pd = properties.get(propertyName); if (pd != null) { pd.setPreferred(preferred); } else { LOG.log(Level.WARNING, "Failed to set preferred attribute for property '" + propertyName + "'. No such property was found"); } } }
private static PropertyDescriptor[] getPdescriptor(){ PropertyDescriptor[] properties = new PropertyDescriptor[2]; try { properties[PROPERTY_maxValue] = new PropertyDescriptor ( "maxValue", org.tentackle.swing.ByteFormField.class, "getMaxValue", "setMaxValue" ); // NOI18N properties[PROPERTY_maxValue].setPreferred ( true ); properties[PROPERTY_minValue] = new PropertyDescriptor ( "minValue", org.tentackle.swing.ByteFormField.class, "getMinValue", "setMinValue" ); // NOI18N properties[PROPERTY_minValue].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[2]; try { properties[PROPERTY_body] = new PropertyDescriptor ( "body", org.tentackle.swing.FormMailField.class, "getBody", "setBody" ); // NOI18N properties[PROPERTY_body].setPreferred ( true ); properties[PROPERTY_subject] = new PropertyDescriptor ( "subject", org.tentackle.swing.FormMailField.class, "getSubject", "setSubject" ); // NOI18N properties[PROPERTY_subject].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_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_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
private static PropertyDescriptor[] getPdescriptor(){ PropertyDescriptor[] properties = new PropertyDescriptor[1]; try { properties[PROPERTY_month] = new PropertyDescriptor ( "month", org.tentackle.swing.MonthComboBox.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_propertyGroup] = new PropertyDescriptor ( "propertyGroup", org.tentackle.swing.FormLabel.class, "getPropertyGroup", "setPropertyGroup" ); // NOI18N properties[PROPERTY_propertyGroup].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_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 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