Class EditFieldDescription

java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
All Implemented Interfaces:
CloneableObject, Description, com.hp.lft.sdk.internal.DescriptionWithVri, Cloneable

public class EditFieldDescription extends ElementDescription
Description of a SAP GUI for Windows edit box.
  • Constructor Details

    • EditFieldDescription

      public EditFieldDescription()
      Initializes a new instance of the EditFieldDescription class.
    • EditFieldDescription

      protected EditFieldDescription(EditFieldDescription.Init<?> init)
      Initializes a new instance of the EditFieldDescription class using the Builder pattern.
      Parameters:
      init - the Builder pattern.
  • Method Details

    • setAttachedText

      public void setAttachedText(StringProperty attachedText)
      Sets the static text attached to the edit field.
      Parameters:
      attachedText - a StringProperty or RegExpProperty.
    • setAttachedText

      public void setAttachedText(String attachedText)
      Sets the static text attached to the edit field.
      Parameters:
      attachedText - the static text.
    • getAttachedText

      public StringProperty getAttachedText()
      Returns the static text attached to the edit field.
      Returns:
      the static text.
    • setEnabled

      public void setEnabled(Boolean isEnabled)
      Sets whether the object can accept user input.
      Parameters:
      isEnabled - true to set as enabled.
    • isEnabled

      public Boolean isEnabled()
      Indicates whether the object can accept user input.
      Returns:
      true if enabled.
    • setHighlighted

      public void setHighlighted(Boolean isHighlighted)
      Sets whether whether the edit box is highlighted.
      Parameters:
      isHighlighted - true to set as highlighted.
    • isHighlighted

      public Boolean isHighlighted()
      Indicates whether whether the edit box is highlighted.
      Returns:
      true if highlighted.
    • setIconName

      public void setIconName(StringProperty iconName)
      Sets the name of the icon used in the edit box.
      Parameters:
      iconName - a StringProperty or RegExpProperty.
    • setIconName

      public void setIconName(String iconName)
      Sets the name of the icon used in the edit box.
      Parameters:
      iconName - the name of the icon.
    • getIconName

      public StringProperty getIconName()
      Returns the name of the icon used in the edit box.
      Returns:
      the name of the icon.
    • setMaxLength

      public void setMaxLength(Integer maxLength)
      Sets the maximum number of characters that can be entered in the edit box.
      Parameters:
      maxLength - the maximum number of characters.
    • getMaxLength

      public Integer getMaxLength()
      Returns the maximum number of characters that can be entered in the edit box.
      Returns:
      the maximum number of characters.
    • setNumerical

      public void setNumerical(Boolean isNumerical)
      Sets whether whether the edit box is a numerical field.
      Parameters:
      isNumerical - true to set as numerical field
    • isNumerical

      public Boolean isNumerical()
      Returns the whether the edit box is a numerical field.
      Returns:
      true if numerical field
    • setRequired

      public void setRequired(Boolean isRequired)
      Sets the whether the edit box is required.
      Parameters:
      isRequired - true to set as required.
    • isRequired

      public Boolean isRequired()
      Returns the whether the edit box is required.
      Returns:
      true if required.
    • setText

      public void setText(StringProperty text)
      Sets the text string value of the object.
      Parameters:
      text - a StringProperty or RegExpProperty.
    • setText

      public void setText(String text)
      Sets the text string value of the object.
      Parameters:
      text - the text.
    • getText

      public StringProperty getText()
      Returns the text string value of the object.
      Returns:
      a StringProperty representing the text string value of the object.