Class BigIntegerFormatter

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

public class BigIntegerFormatter
extends NumberFormatter
This class provides formatting of BigInteger values in a FormattedText.

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

  • Constructor Details

    • BigIntegerFormatter

      public BigIntegerFormatter()
      Constructs a new instance with all defaults.
      See Also:
      NumberFormatter()
    • BigIntegerFormatter

      public BigIntegerFormatter​(java.util.Locale loc)
      Constructs a new instance with default edit and display masks for the given locale.
      Parameters:
      loc - the locale
    • BigIntegerFormatter

      public BigIntegerFormatter​(java.lang.String editPattern, java.util.Locale loc)
      Constructs a new instance with the given edit mask and locale. Display mask is identical to the edit mask.
      Parameters:
      editPattern - the edit mask
      loc - the locale
    • BigIntegerFormatter

      public BigIntegerFormatter​(java.lang.String editPattern, java.lang.String displayPattern, java.util.Locale loc)
      Constructs a new instance with the given masks and locale.
      Parameters:
      editPattern - the edit mask
      displayPattern - the display mask
      loc - the locale
    • BigIntegerFormatter

      public BigIntegerFormatter​(java.lang.String editPattern, java.lang.String displayPattern)
      Constructs a new instance with the given edit and display masks. Uses the default locale.
      Parameters:
      editPattern - the edit mask
      displayPattern - the display mask
    • BigIntegerFormatter

      public BigIntegerFormatter​(java.lang.String editPattern)
      Constructs a new instance with the given edit mask. Display mask is identical to the edit mask, and locale is the default one.
      Parameters:
      editPattern - the edit mask
  • Method Details