Share this page

com.hp.lft.sdk.wpf

## Class EditFieldDescription

- java.lang.Object
- - com.hp.lft.sdk.internal.PropertiesDescriptionBase
  - - com.hp.lft.sdk.PropertiesDescription
    - - com.hp.lft.sdk.DescriptionBase
      - - com.hp.lft.sdk.wpf.UiObjectDescriptionBase
        - - com.hp.lft.sdk.wpf.EditFieldDescription

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

      public class EditFieldDescription
      extends UiObjectDescriptionBase

  The description of a WPF EditField test object.

- - ### Nested Class Summary

    Modifier and Type | Class and Description
    --- | ---
    `static class` | `EditFieldDescription.Builder` This class can be used to construct an instance of the EditFieldDescription class using the builder pattern.
    `protected static class` | `EditFieldDescription.Init<T extends EditFieldDescription.Init<T>>`

  - ### Field Summary

    - ### Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase

      `properties`

  - ### Constructor Summary

    Modifier | Constructor and Description
    --- | ---
    `` | `EditFieldDescription()` Constructs a new instance of EditFieldDescription.
    `protected` | `EditFieldDescription(EditFieldDescription.Init<?> init)`

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `StringProperty` | `getName()` Returns the name of this object.
    `StringProperty` | `getParentText()` Returns the text associated with the parent object of this object.
    `java.lang.Boolean` | `isReadOnly()` Indicates whether the text editing object is read-only to a user interacting with the object.
    `void` | `setName(java.lang.String name)` Sets the name of the object.
    `void` | `setName(StringProperty name)` Sets the name of the object.
    `void` | `setParentText(java.lang.String parentText)` Sets the text associated with the parent object of this object.
    `void` | `setParentText(StringProperty parentText)` Sets the text associated with the parent object of this object.
    `void` | `setReadOnly(java.lang.Boolean isReadOnly)` Sets whether the text editing object is read-only to a user interacting with the object.

    - ### Methods inherited from class com.hp.lft.sdk.wpf.UiObjectDescriptionBase

      `canFocus, getAbsoluteLocation, getAttachedText, getFullNamePath, getFullType, getLocation, getNativeClass, getObjectName, getObjectProperties, getSize, getText, getWindowTitleRegExp, isEnabled, isFocused, isVisible, setAbsoluteLocation, setAbsoluteLocation, setAbsoluteLocation, setAttachedText, setAttachedText, setCanFocus, setEnabled, setFocused, setFullNamePath, setFullNamePath, setFullType, setFullType, setLocation, setLocation, setLocation, setNativeClass, setNativeClass, setObjectName, setObjectName, setObjectProperties, setSize, setSize, setSize, setText, setText, setVisible, setWindowTitleRegExp, setWindowTitleRegExp`

    - ### Methods inherited from class com.hp.lft.sdk.DescriptionBase

      `cloneTo, getIndex, getIndexType, getVRI, setIndex, setIndexType, setVRI, setVRI`

    - ### Methods inherited from class com.hp.lft.sdk.PropertiesDescription

      `clone`

    - ### Methods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase

      `getValueAs, getValueAsStringProperty, insertValue`

    - ### Methods inherited from class java.lang.Object

      `equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface com.hp.lft.sdk.CloneableObject

      `clone`

- - ### Constructor Detail

    - #### EditFieldDescription

          public EditFieldDescription()

      Constructs a new instance of EditFieldDescription.

    - #### EditFieldDescription

          protected EditFieldDescription(EditFieldDescription.Init<?> init)

  - ### Method Detail

    - #### setReadOnly

          public void setReadOnly(java.lang.Boolean isReadOnly)

      Sets whether the text editing object is read-only to a user interacting with the object.
      Parameters:
        `isReadOnly` - whether the text editing object is read-only to a user interacting with the object.

    - #### isReadOnly

          public java.lang.Boolean isReadOnly()

      Indicates whether the text editing object is read-only to a user interacting with the object.
      Returns:
        true, if the text editing object is read-only to a user interacting with the object.

    - #### setParentText

          public void setParentText(java.lang.String parentText)

      Sets the text associated with the parent object of this object.
      Parameters:
        `parentText` - the text to associate with the parent object

    - #### setParentText

          public void setParentText(StringProperty parentText)

      Sets the text associated with the parent object of this object.
      Parameters:
        `parentText` - a StringProperty or RegExpProperty

    - #### getParentText

          public StringProperty getParentText()

      Returns the text associated with the parent object of this object.
      Returns:
        parentText the text associated with the parent

    - #### setName

          public void setName(java.lang.String name)

      Sets the name of the object.
      Parameters:
        `name` - the name of this object

    - #### setName

          public void setName(StringProperty name)

      Sets the name of the object.
      Parameters:
        `name` - a StringProperty(or RegExpProperty) representing the text associated with the name of the object.

    - #### getName

          public StringProperty getName()

      Returns the name of this object.
      Returns:
        name the name of the object.

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: