Class EnterAmountDialog


  • @Deprecated
    public class EnterAmountDialog
    extends java.lang.Object
    Deprecated.
    Replaced with InputDialog to accommodate String inputs

    Hybrid helper class for the "Enter amount:" dialog seen in banks, deposit boxes and elsewhere

    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static boolean enterAmount​(int amount)
      Deprecated.
      Enters the amount specified into the dialog box and delays until the action was successful
      static boolean enterAmount​(int amount, boolean metric)
      Deprecated.
       
      static boolean enterAmount​(java.lang.String text)
      Deprecated.
       
      static boolean isOpen()
      Deprecated.
      Determines whether or not the "Enter amount:" dialog is open
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isOpen

        public static boolean isOpen()
        Deprecated.
        Determines whether or not the "Enter amount:" dialog is open
        Returns:
        true if the dialog is open
      • enterAmount

        public static boolean enterAmount​(int amount)
        Deprecated.
        Enters the amount specified into the dialog box and delays until the action was successful
        Parameters:
        amount - amount to type
        Returns:
        if successfully typed the amount, selected enter and confirmed the dialog has closed
      • enterAmount

        public static boolean enterAmount​(int amount,
                                          boolean metric)
        Deprecated.
        Parameters:
        amount - amount to type
        metric - true to force truncation of amount, false to type whole number
        Returns:
        if successfully typed the amount, selected enter and confirmed the dialog has closed
      • enterAmount

        public static boolean enterAmount​(java.lang.String text)
        Deprecated.
        Parameters:
        text - string to type
        Returns:
        if successfully typed the amount, selected enter and confirmed the dialog has closed