java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.factorypmi.application.components.touchscreen.NumericKeypadDialog
All Implemented Interfaces:
PopupWindowContents, ImageObserver, MenuContainer, Serializable, Accessible

public class NumericKeypadDialog extends JPanel implements PopupWindowContents
See Also:
  • Field Details

    • value

      protected Number value
    • originalValue

      protected Number originalValue
    • buffer

      protected StringBuilder buffer
    • positive

      protected boolean positive
    • display

      protected JLabel display
    • dotBtn

      protected JButton dotBtn
    • cancel

      protected boolean cancel
    • usePasswordMode

      protected boolean usePasswordMode
    • popupParent

      protected PopupWindowParent popupParent
    • intFormat

      protected DecimalFormat intFormat
    • floatFormat

      protected DecimalFormat floatFormat
  • Method Details

    • setTouchScreenKeyBoardWidth

      public static void setTouchScreenKeyBoardWidth(float width)
    • getTouchScreenKeyBoardFontSize

      public static int getTouchScreenKeyBoardFontSize()
    • setTouchScreenKeyBoardFontSize

      public static void setTouchScreenKeyBoardFontSize(int fontSize)
    • initComponents

      protected void initComponents(float fontSize)
    • bufferToNumber

      protected boolean bufferToNumber(StringBuilder localBuffer)
      Converts a string buffer to a number, and sets that number for the display using setValue()
    • showNumericInputKeypadDialog

      public static Number showNumericInputKeypadDialog(Component parent, Number n, int fontSize)
      Overload for backwards compatibility
    • showNumericInputKeypadDialog

      public static Number showNumericInputKeypadDialog(Component parent, Number n, int fontSize, boolean usePasswordMode)
    • showModal

      public Number showModal(Number n)
    • getValue

      public Number getValue()
    • setValue

      public void setValue(Number n)
    • notifyClosed

      public void notifyClosed()
      Specified by:
      notifyClosed in interface PopupWindowContents
    • getComponent

      public JComponent getComponent()
      Specified by:
      getComponent in interface PopupWindowContents