Class DoubleFormatter

java.lang.Object
All Implemented Interfaces:
java.util.EventListener, ITextFormatter, org.eclipse.swt.events.VerifyListener, org.eclipse.swt.internal.SWTEventListener

public class DoubleFormatter
extends NumberFormatter
This class provides formatting of Double values in a FormattedText.

NumberFormatter returns different numeric types based on the current value in the Text field. DoubleFormatter is an override of NumberFormatter allowing to guaranty to always return Double values (Number.doubleValue()).

  • Constructor Details

    • DoubleFormatter

      public DoubleFormatter()
    • DoubleFormatter

      public DoubleFormatter​(java.util.Locale loc)
    • DoubleFormatter

      public DoubleFormatter​(java.lang.String editPattern, java.util.Locale loc)
    • DoubleFormatter

      public DoubleFormatter​(java.lang.String editPattern, java.lang.String displayPattern, java.util.Locale loc)
    • DoubleFormatter

      public DoubleFormatter​(java.lang.String editPattern, java.lang.String displayPattern)
    • DoubleFormatter

      public DoubleFormatter​(java.lang.String editPattern)
  • Method Details