Open topic with navigation

com.hp.lft.sdk.web

## Interface EditFieldBase

- All Known Subinterfaces:
    EditField, EditField, EditFieldCommon, FileField, NumericField, Password, Slider

      public interface EditFieldBase

  Base interface for Web edit fields (EditField, NumericField, and FileField).

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `int` | `getMaxCharsInLine()` Returns the maximum number of characters allowed per line in this edit field.
    `java.lang.String` | `getPlaceholder()` Returns the hint text that is displayed in the edit box until a value is entered into it.
    `java.lang.String` | `getValue()` Returns the current text in the field.
    `boolean` | `isReadOnly()` Indicates whether this field is read-only.
    `boolean` | `isRequired()` Indicates whether this field is mandatory.
    `void` | `setValue(java.lang.String text)` Enters the specified text in the field.

- - ### Method Detail

    - #### setValue

          void setValue(java.lang.String text)
                 throws GeneralLeanFtException

      Enters the specified text in the field.
      Parameters:
        `text` - the value to set in the field.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getPlaceholder

          java.lang.String getPlaceholder()
          	throws GeneralLeanFtException

      Returns the hint text that is displayed in the edit box until a value is entered into it.
      Returns:
        the hint text that is displayed in the edit box until a value is entered into it.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getValue

          java.lang.String getValue()
                             throws GeneralLeanFtException

      Returns the current text in the field.
      Returns:
        the current text in the field.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### isReadOnly

          boolean isReadOnly()
                      throws GeneralLeanFtException

      Indicates whether this field is read-only.
      Returns:
        True, if this field is read-only.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### isRequired

          boolean isRequired()
                      throws GeneralLeanFtException

      Indicates whether this field is mandatory.
      Returns:
        True, if this field is mandatory.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getMaxCharsInLine

          int getMaxCharsInLine()
                         throws GeneralLeanFtException

      Returns the maximum number of characters allowed per line in this edit field.
      Returns:
        The maximum number of characters allowed per line in this edit field.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.