Class EditFieldBaseDescription

All Implemented Interfaces:
CloneableObject, Description, com.hp.lft.sdk.internal.DescriptionWithVri, Cloneable
Direct Known Subclasses:
EditFieldDescription, FileFieldDescription

public abstract class EditFieldBaseDescription extends FormFieldDescription
A base class description for all edit fields (Edit, Number and File).
  • Constructor Details

    • EditFieldBaseDescription

      protected EditFieldBaseDescription(EditFieldBaseDescription.Init<?> init)
    • EditFieldBaseDescription

      protected EditFieldBaseDescription()
  • Method Details

    • setValue

      public void setValue(StringProperty value)
      Sets the text in the field.
      Parameters:
      value - a StringProperty (or RegExpProperty) representing the text in the field.
    • setValue

      public void setValue(String value)
      Sets the text in the field.
      Parameters:
      value - the text in the field.
    • getValue

      public StringProperty getValue()
      Returns the current text in the field.
      Returns:
      the current text in the field.
    • setPlaceholder

      public void setPlaceholder(StringProperty placeholder)
      Sets the hint text that is displayed in the edit box until a value is entered into it.
      Parameters:
      placeholder - a StringProperty (or RegExpProperty) representing the hint text that is displayed in the edit box until a value is entered into it.
    • setPlaceholder

      public void setPlaceholder(String placeholder)
      Sets the hint text that is displayed in the edit box until a value is entered into it.
      Parameters:
      placeholder - the hint text that is displayed in the edit box until a value is entered into it.
    • getPlaceholder

      public StringProperty getPlaceholder()
      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.
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
      Sets whether or not the control is read only.
      Parameters:
      readOnly - whether or not the control is read only.
    • isReadOnly

      public Boolean isReadOnly()
      Returns true if the object is read-only.
      Returns:
      true if read-only.
    • setRequired

      public void setRequired(Boolean required)
      Sets whether or not the field is mandatory in the form.
      Parameters:
      required - whether or not the field is mandatory in the form.
    • isRequired

      public Boolean isRequired()
      Returns true if the field is mandatory.
      Returns:
      True if the field is mandatory.
    • setMaxCharsInLine

      public void setMaxCharsInLine(Integer maxCharsInLine)
      Sets the number of characters that will be presented in each row.
      Parameters:
      maxCharsInLine - the number of characters that will be presented in each row.
    • getMaxCharsInLine

      public Integer getMaxCharsInLine()
      Returns the number of characters that will be presented in each row.
      Returns:
      the number of characters that will be presented in each row.
    • setEnabled

      public void setEnabled(Boolean isEnabled)
      Sets whether the check box is enabled.
      Parameters:
      isEnabled - true if enabled.
    • isEnabled

      public Boolean isEnabled()
      Indicates whether the check box is enabled.
      Returns:
      true if enabled.