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

public class PMITextField extends BaseFormattedTextField
See Also:
  • Constructor Details

    • PMITextField

      public PMITextField()
  • Method Details

    • 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
    • setText

      public void setText(String text)
      Overrides:
      setText in class JTextComponent
    • getTouchscreenPropertyName

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

      public String getTextDirect()
    • setTextDirect

      public void setTextDirect(String text)
      This calls super.setValue(text) without checking for the editing/reject during edit settings. Used as the touchscreen popup keyboard callback, otherwise it fails because the field is editing while the keyboard is visible in mobile mode.
    • setBackground

      public void setBackground(Color bg)
      For backwards compatibility.
      Overrides:
      setBackground in class JComponent
    • isDeferUpdates

      public boolean isDeferUpdates()
    • setDeferUpdates

      public void setDeferUpdates(boolean deferUpdates)
    • getMaxChars

      public int getMaxChars()
    • setMaxChars

      public void setMaxChars(int maxChars)