Package com.uc4.api.prompt
Class RadioGroupElement
java.lang.Object
com.uc4.api.objects.PromptElement
com.uc4.api.prompt.RadioGroupElement
- All Implemented Interfaces:
PromptInterfaces.Caption,PromptInterfaces.DataReference,PromptInterfaces.Focus,PromptInterfaces.ItemList,PromptInterfaces.Locked,PromptInterfaces.QuoteCharacter,PromptInterfaces.XmlKey,PromptInterfaces.XPath
public class RadioGroupElement
extends PromptElement
implements PromptInterfaces.Caption, PromptInterfaces.DataReference, PromptInterfaces.Focus, PromptInterfaces.QuoteCharacter, PromptInterfaces.ItemList, PromptInterfaces.Locked, PromptInterfaces.XPath, PromptInterfaces.XmlKey
This class represents a radio group element.
-
Field Summary
Fields inherited from class com.uc4.api.objects.PromptElement
aliasMap, list, properties -
Constructor Summary
ConstructorsConstructorDescriptionRadioGroupElement(String variableName, UC4ObjectName reference) Creates a newRadioGroupElement. -
Method Summary
Modifier and TypeMethodDescriptionWhen a Prompt is executed (see request TaskPromptSetContent) this method returns a list of valid items.charReturns the character for a quote.protected StringReturns the key for XML Variables in the data reference.getXPath()Returns the XPath expression if XML variables are used as data reference.booleanhasFocus()Returnstrueif the focus is set.booleanisLocked()Returnstrueif this Prompt Element is locked.voidsetCaption(String caption) Sets the caption of this prompt element.voidSets a VARA Object which contains a list of valid entries for this prompt element.voidsetFocus(boolean value) Sets the cursor focus: The cursor is placed at this control if the value istrue.voidsetLocked(boolean locked) Lock or unlocks this element.voidsetQuoteCharacter(char c) Sets the character for a quote, for example ' or ".voidSets the key in case XML Variables are used as data reference.voidSets the XPath expression if XML variables are used as data reference.Methods inherited from class com.uc4.api.objects.PromptElement
getCustomField, getMessageInsert, getMessageNumber, getMode, getProperty, getTooltip, getValue, getValues, getVariable, hasList, isAltView, listParam, setAltView, setCustomField, setRawValue, setTooltip, setValue, setValues, setVariable, store, storeAdditionalPromptData, storeDefaultValues, toString, updateDefaultValue, validateForExecute, validateId
-
Constructor Details
-
RadioGroupElement
Creates a newRadioGroupElement.- Parameters:
variableName- Name of the script variablereference- Reference
-
-
Method Details
-
setQuoteCharacter
public void setQuoteCharacter(char c) Sets the character for a quote, for example ' or ".- Specified by:
setQuoteCharacterin interfacePromptInterfaces.QuoteCharacter- Parameters:
c- Character
-
getQuoteCharacter
public char getQuoteCharacter()Returns the character for a quote.- Specified by:
getQuoteCharacterin interfacePromptInterfaces.QuoteCharacter- Returns:
- for example ' or "
-
hasFocus
public 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.- Specified by:
hasFocusin interfacePromptInterfaces.Focus- Returns:
- true if the cursor should be set in this Prompt Element, false otherwise
-
setFocus
public 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.- Specified by:
setFocusin interfacePromptInterfaces.Focus- Parameters:
value- true if the cursor should be set in this Prompt Element, false otherwise
-
getItemList
When a Prompt is executed (see request TaskPromptSetContent) this method returns a list of valid items.- Specified by:
getItemListin interfacePromptInterfaces.ItemList- Returns:
- List of items
-
isLocked
public boolean isLocked()Returnstrueif this Prompt Element is locked. In this case a user cannot change the default value in the Prompt-Screen.- Specified by:
isLockedin interfacePromptInterfaces.Locked- Overrides:
isLockedin classPromptElement- Returns:
- true if locked, false if the user can change the value of the Prompt Element
-
setLocked
public void setLocked(boolean locked) Lock or unlocks this element. A user cannot change the default value in the Prompt-Screen if a control is locked.- Specified by:
setLockedin interfacePromptInterfaces.Locked- Overrides:
setLockedin classPromptElement- Parameters:
locked- true if locked, false if the user can change the value of the Prompt Element
-
getCaption
- Specified by:
getCaptionin interfacePromptInterfaces.Caption- Returns:
- Caption of this prompt element
-
setCaption
Sets the caption of this prompt element.- Specified by:
setCaptionin interfacePromptInterfaces.Caption- Parameters:
caption- Caption
-
setDataReference
Sets a VARA Object which contains a list of valid entries for this prompt element.- Specified by:
setDataReferencein interfacePromptInterfaces.DataReference- Parameters:
vara- Name of a Variable Object
-
getDataReference
- Specified by:
getDataReferencein interfacePromptInterfaces.DataReference- Returns:
- Name of a Variable Object
-
getTagName
- Specified by:
getTagNamein classPromptElement
-
setXmlKey
Sets the key in case XML Variables are used as data reference.- Specified by:
setXmlKeyin interfacePromptInterfaces.XmlKey- Parameters:
key- Key
-
getXmlKey
Returns the key for XML Variables in the data reference.- Specified by:
getXmlKeyin interfacePromptInterfaces.XmlKey- Returns:
- Key or an empty String if not set.
-
setXPath
Sets the XPath expression if XML variables are used as data reference.- Specified by:
setXPathin interfacePromptInterfaces.XPath- Parameters:
xpath- XPath/Query expression
-
getXPath
Returns the XPath expression if XML variables are used as data reference.- Specified by:
getXPathin interfacePromptInterfaces.XPath- Returns:
- XPath/Query expression or an empty String if not set.
-