Package com.uc4.api.prompt
Interface PromptInterfaces.Focus
-
- All Known Implementing Classes:
CheckGroupElement,CheckListElement,ComboElement,DateElement,NumberElement,RadioGroupElement,TextElement,TimeElement,TimeStampElement
- Enclosing interface:
- PromptInterfaces
public static interface PromptInterfaces.FocusImplemented if the prompt element has a property to set the focus for user input.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasFocus()Returnstrueif the focus is set.voidsetFocus(boolean value)Sets the cursor focus: The cursor is placed at this control if the value istrue.
-
-
-
Method Detail
-
hasFocus
boolean hasFocus()
Returnstrueif the focus is set. The cursor is placed at this control if the value istrue. 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 istrue. 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
-
-