com.hp.lft.sdk.sap.gui

Interface EditField

    • Method Detail

      • getAttachedText

        java.lang.String getAttachedText()
                                  throws GeneralLeanFtException
        Returns the static text attached to the edit field.
        Returns:
        the static text.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • getMaxLength

        int getMaxLength()
                  throws GeneralLeanFtException
        Returns the maximum number of characters in the edit field.
        Returns:
        the maximum number of characters.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • isNumerical

        boolean isNumerical()
                     throws GeneralLeanFtException
        Indicates whether the edit field is a numerical field.
        Returns:
        true if numerical field.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • setCursorPosition

        void setCursorPosition(int pos)
                        throws GeneralLeanFtException
        Sets the position of the cursor within the edit field.
        Parameters:
        pos - The 0-based character position.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • setSecure

        void setSecure(java.lang.String encryptedText)
                throws GeneralLeanFtException
        Sets the encoded value of this edit field. The SetSecure method enables you to hide passwords displayed on the screen while running or editing a LeanFT test. However, it is not intended to be a secure way to protect password information.
        Generate the encoded value using the Password Encoder utility (CryptonApp.exe), available in the LeanFT installation\bin folder.
        Parameters:
        encryptedText - the encoded text to enter in this edit field.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.