All Implemented Interfaces:
DynamicPropertyProvider, LocaleListener, MutableDynamicPropertyProvider, StyleProvider, ComponentLifecycle, EnabledEx, QualityMonitor, VisionComponent, TouchscreenMouseListener.TouchscreenEnabledComponent, ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, SwingConstants

public class PMINumericTextField extends BaseFormattedTextField
See Also:
  • Field Details

  • Constructor Details

    • PMINumericTextField

      public PMINumericTextField()
  • Method Details

    • isErrorOnOutOfBounds

      public boolean isErrorOnOutOfBounds()
    • setErrorOnOutOfBounds

      public void setErrorOnOutOfBounds(boolean errorOnOutOfBounds)
    • getOutOfBoundsMessage

      public String getOutOfBoundsMessage()
    • isDeferUpdates

      public boolean isDeferUpdates()
    • setDeferUpdates

      public void setDeferUpdates(boolean deferUpdates)
    • setOutOfBoundsMessage

      public void setOutOfBoundsMessage(String outOfBoundsMessage)
    • newFormatterFactory

      protected JFormattedTextField.AbstractFormatterFactory newFormatterFactory()
      Description copied from class: BaseFormattedTextField
      Subclasses must implement this to create the formatter factory of the type they want to use
      Specified by:
      newFormatterFactory in class BaseFormattedTextField
    • toString

      public String toString()
      Overrides:
      toString in class Component
    • getModeType

      public Class getModeType()
    • getTouchscreenPropertyName

      public String getTouchscreenPropertyName()
      Description copied from interface: TouchscreenMouseListener.TouchscreenEnabledComponent
      The javabeans-style name of the property to modify. Needs a getter and setter.
    • getTouchscreenStyle

      public TouchscreenMouseListener.KeyboardStyle getTouchscreenStyle()
      Specified by:
      getTouchscreenStyle in interface TouchscreenMouseListener.TouchscreenEnabledComponent
      Overrides:
      getTouchscreenStyle in class BaseFormattedTextField
    • getTouchscreenValue

      public double getTouchscreenValue()
    • setTouchscreenValue

      public void setTouchscreenValue(double value)
    • getMode

      public int getMode()
    • setMode

      public void setMode(int mode)
    • commitEdit

      public void commitEdit() throws ParseException
      Don't call this method outside of the Event Dispatch thread because commitsPossible is assumed to be checked serially on the event dispatch thread. If you call outside the event dispatch thread, an IllegalStateException will be thrown.
      Overrides:
      commitEdit in class JFormattedTextField
      Throws:
      ParseException
    • getMaximum

      public double getMaximum()
    • setMaximum

      public void setMaximum(double maximum)
    • getMinimum

      public double getMinimum()
    • setMinimum

      public void setMinimum(double minimum)
    • isUseBounds

      public boolean isUseBounds()
    • setUseBounds

      public void setUseBounds(boolean useBounds)
    • getDoubleValue

      public double getDoubleValue()
      If getValue() is outside the range of a double, TypeUtilities will display an error and we'll show 0 as the value.
    • setDoubleValue

      public void setDoubleValue(double doubleValue)
    • getFloatValue

      public float getFloatValue()
      If we're in float mode or in the range of a float, try to display the float value, throwing an error if it can't be evaluated as a float. Otherwise, display 0 in the props.

      Pre 7.7.7, values outside of float range would return the overflowed value, potentially altering the underlying value.

    • setFloatValue

      public void setFloatValue(float floatValue)
    • getIntValue

      public int getIntValue()
      If we're in int mode or in the range of a int, try to display the int value, throwing an error if it can't be evaluated as a int. Otherwise, display 0 in the props.

      Pre 7.7.7, values outside of int range would return the overflowed value, potentially altering the underlying value.

    • setIntValue

      public void setIntValue(int intValue)
    • getLongValue

      public long getLongValue()
      If we're in long mode or in the range of a long, try to display the long value, throwing an error if it can't be evaluated as a long. Otherwise, display 0 in the props.

      Pre 7.7.7, values outside of long range would return the overflowed value, potentially altering the underlying value.

    • setLongValue

      public void setLongValue(long longValue)
    • setValue

      public void setValue(Object obj)
      Overrides:
      setValue in class BaseFormattedTextField
    • getDecimalFormat

      public String getDecimalFormat()
    • setDecimalFormat

      public void setDecimalFormat(String decimalFormat)
    • onStartup

      protected void onStartup()
      Description copied from class: BaseFormattedTextField
      Subclasses should override this to provide startup logic.
      Overrides:
      onStartup in class BaseFormattedTextField
    • getSuffix

      public String getSuffix()
    • setSuffix

      public void setSuffix(String suffix)