Class DecimalNumericDisplayConverter

All Implemented Interfaces:
IDisplayConverter
Direct Known Subclasses:
DefaultBigDecimalDisplayConverter, DefaultDoubleDisplayConverter, DefaultFloatDisplayConverter

public abstract class DecimalNumericDisplayConverter extends NumericDisplayConverter
Abstract base class for decimal converters.
  • Constructor Details

    • DecimalNumericDisplayConverter

      public DecimalNumericDisplayConverter()
      Creates a converter that uses NumberFormat.
    • DecimalNumericDisplayConverter

      public DecimalNumericDisplayConverter(boolean useNumberFormat)
      Creates a converter and allows to specify whether NumberFormat should be used or not.
      Parameters:
      useNumberFormat - true if a NumberFormat should be used, false if not.
      Since:
      1.4
  • Method Details

    • setMinimumFractionDigits

      public void setMinimumFractionDigits(int newValue)
      Sets the minimum number of digits allowed in the fraction portion of a number.
      Parameters:
      newValue - newValue the minimum number of fraction digits to be shown; if less than zero, then zero is used.
      See Also:
    • setMaximumFractionDigits

      public void setMaximumFractionDigits(int newValue)
      Sets the maximum number of digits allowed in the fraction portion of a number.
      Parameters:
      newValue - newValue the maximum number of fraction digits to be shown; if less than zero, then zero is used.
      See Also: