private Object getIntegerTemplateValue( IIntegerPropertyDescriptor propertyDescriptor) { double templateValue = DEF_DISP_MAX_VALUE; if (propertyDescriptor.getMaxValue() != null) { templateValue = propertyDescriptor.getMaxValue().doubleValue(); } return new Integer((int) templateValue); }
private Object getIntegerTemplateValue( IIntegerPropertyDescriptor propertyDescriptor) { double templateValue = DEF_DISP_MAX_VALUE; if (propertyDescriptor.getMaxValue() != null) { templateValue = propertyDescriptor.getMaxValue().doubleValue(); } return new Integer((int) templateValue); }
private Object getIntegerTemplateValue( IIntegerPropertyDescriptor propertyDescriptor) { double templateValue = DEF_DISP_MAX_VALUE; if (propertyDescriptor.getMaxValue() != null) { templateValue = propertyDescriptor.getMaxValue().doubleValue(); } return new Integer((int) templateValue); }
private ULCNumberDataType createIntegerDataType( IIntegerPropertyDescriptor propertyDescriptor, Locale locale, NumberFormat format) { ULCNumberDataType numberDataType = new ULCNumberDataType(locale); numberDataType.setInteger(true); numberDataType.setMin(propertyDescriptor.getMinValue()); numberDataType.setMax(propertyDescriptor.getMaxValue()); numberDataType.setMaxFractionDigits(0); numberDataType.setMinFractionDigits(0); numberDataType.setGroupingUsed(format.isGroupingUsed()); return numberDataType; }