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.Focus
Implemented if the prompt element has a property to set the focus for user input.
-
Method Summary
-
Method Details
-
hasFocus
boolean hasFocus()Returnstrue
if 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
-