Interface PromptInterfaces.Focus

All Known Implementing Classes:
CheckGroupElement, CheckListElement, ComboElement, DateElement, NumberElement, RadioGroupElement, TextElement, TimeElement, TimeStampElement
Enclosing interface:
PromptInterfaces

public static interface PromptInterfaces.Focus
Implemented if the prompt element has a property to set the focus for user input.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the focus is set.
    void
    setFocus(boolean value)
    Sets the cursor focus: The cursor is placed at this control if the value is true.
  • Method Details

    • hasFocus

      boolean hasFocus()
      Returns true if the focus is set. The cursor is placed at this control if the value is true. It may only be defined for one control in the PromptSet. If this flag is defined for several Controls of a PromptSet the last Control that got the flag wins.
      Returns:
      true if the cursor should be set in this Prompt Element, false otherwise
    • setFocus

      void setFocus(boolean value)
      Sets the cursor focus: The cursor is placed at this control if the value is true. It may only be defined for one control in the PromptSet. If this flag is defined for several Controls of a PromptSet the last Control that got the flag wins.
      Parameters:
      value - true if the cursor should be set in this Prompt Element, false otherwise