Package com.uc4.api.prompt
Class CheckGroupElement
- java.lang.Object
-
- com.uc4.api.objects.PromptElement
-
- com.uc4.api.prompt.OnChangeResetElement
-
- com.uc4.api.prompt.CheckGroupElement
-
- All Implemented Interfaces:
PromptInterfaces.Caption,PromptInterfaces.DataReference,PromptInterfaces.Focus,PromptInterfaces.ItemList,PromptInterfaces.Locked,PromptInterfaces.MultiSelect,PromptInterfaces.QuoteCharacter,PromptInterfaces.ValueRequired,PromptInterfaces.XmlKey,PromptInterfaces.XPath
- Direct Known Subclasses:
CheckListElement
public class CheckGroupElement extends OnChangeResetElement implements PromptInterfaces.Caption, PromptInterfaces.DataReference, PromptInterfaces.Focus, PromptInterfaces.MultiSelect, PromptInterfaces.XmlKey, PromptInterfaces.XPath, PromptInterfaces.ValueRequired, PromptInterfaces.QuoteCharacter, PromptInterfaces.ItemList, PromptInterfaces.Locked
This class represents a group of check boxes.
-
-
Field Summary
-
Fields inherited from class com.uc4.api.objects.PromptElement
aliasMap, list, properties
-
-
Constructor Summary
Constructors Constructor Description CheckGroupElement(java.lang.String variableName, UC4ObjectName reference)Creates a newCheckGroupElement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCaption()UC4ObjectNamegetDataReference()java.util.List<java.lang.String>getItemList()When a Prompt is executed (see request TaskPromptSetContent) this method returns a list of valid items.java.lang.StringgetMultiSelectSeparator()Returns the mulit select separator character.chargetQuoteCharacter()Returns the character for a quote.protected java.lang.StringgetTagName()java.lang.StringgetXmlKey()Returns the key for XML Variables in the data reference.java.lang.StringgetXPath()Returns the XPath expression if XML variables are used as data reference.booleanhasFocus()Returnstrueif the focus is set.booleanhasMultiSelect()booleanisLocked()Returnstrueif this Prompt Element is locked.booleanisMultiSelectArray()Returnstrueif this prompt element has a multi select array.booleanisValueRequired()Returnstrueif the user has to use the default value or check at least one box.voidsetCaption(java.lang.String caption)Sets the caption of this prompt element.voidsetDataReference(UC4ObjectName vara)Sets 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.voidsetMultiSelect(boolean value)Enables or disables multi select.voidsetMultiSelectArray(boolean value)Enables or disables the array property for multi select values.voidsetMultiSelectSeparator(java.lang.String sep)Sets the mulit select separator character.voidsetQuoteCharacter(char c)Sets the character for a quote, for example ' or ".voidsetValueRequired(boolean value)Sets or clears the property which determines if this field requires a value.voidsetXmlKey(java.lang.String key)Sets the key in case XML Variables are used as data reference.voidsetXPath(java.lang.String xpath)Sets the XPath expression if XML variables are used as data reference.-
Methods inherited from class com.uc4.api.prompt.OnChangeResetElement
addOnChangeResetElement, getAllOnChangeResetElementIterator, onChangeResetElementIterator, removeAllOnChangeResetElements, removeOnChangeResetElement, resetAllSubValues, sizeOfOnChangeResetElements, storeAdditionalPromptData
-
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, storeDefaultValues, toString, updateDefaultValue, validateForExecute, validateId
-
-
-
-
Constructor Detail
-
CheckGroupElement
public CheckGroupElement(java.lang.String variableName, UC4ObjectName reference)Creates a newCheckGroupElement.- Parameters:
variableName- Name of the script variablereference- Name of the reference
-
-
Method Detail
-
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
-
getItemList
public java.util.List<java.lang.String> 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
-
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
-
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
public java.lang.String getCaption()
- Specified by:
getCaptionin interfacePromptInterfaces.Caption- Returns:
- Caption of this prompt element
-
setCaption
public void setCaption(java.lang.String caption)
Sets the caption of this prompt element.- Specified by:
setCaptionin interfacePromptInterfaces.Caption- Parameters:
caption- Caption
-
setDataReference
public void setDataReference(UC4ObjectName vara)
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
-
setXmlKey
public void setXmlKey(java.lang.String key)
Sets the key in case XML Variables are used as data reference.- Specified by:
setXmlKeyin interfacePromptInterfaces.XmlKey- Parameters:
key- Key
-
getXmlKey
public java.lang.String 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
public void setXPath(java.lang.String xpath)
Sets the XPath expression if XML variables are used as data reference.- Specified by:
setXPathin interfacePromptInterfaces.XPath- Parameters:
xpath- XPath/Query expression
-
getXPath
public java.lang.String 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.
-
getDataReference
public UC4ObjectName getDataReference()
- Specified by:
getDataReferencein interfacePromptInterfaces.DataReference- Returns:
- Name of a Variable Object
-
setMultiSelect
public void setMultiSelect(boolean value)
Enables or disables multi select.- Specified by:
setMultiSelectin interfacePromptInterfaces.MultiSelect- Parameters:
value- true if mulit select should be enabled
-
hasMultiSelect
public boolean hasMultiSelect()
- Specified by:
hasMultiSelectin interfacePromptInterfaces.MultiSelect- Returns:
- true if multi select is enabled
-
setMultiSelectSeparator
public void setMultiSelectSeparator(java.lang.String sep)
Sets the mulit select separator character.- Specified by:
setMultiSelectSeparatorin interfacePromptInterfaces.MultiSelect- Parameters:
sep- separator character
-
getMultiSelectSeparator
public java.lang.String getMultiSelectSeparator()
Returns the mulit select separator character.- Specified by:
getMultiSelectSeparatorin interfacePromptInterfaces.MultiSelect- Returns:
- separator character
-
isMultiSelectArray
public boolean isMultiSelectArray()
Returnstrueif this prompt element has a multi select array.- Returns:
- true if an array is provided as value list
-
setMultiSelectArray
public void setMultiSelectArray(boolean value)
Enables or disables the array property for multi select values.- Parameters:
value- true if the array property should be set, false otherwise
-
isValueRequired
public boolean isValueRequired()
Returnstrueif the user has to use the default value or check at least one box.- Specified by:
isValueRequiredin interfacePromptInterfaces.ValueRequired- Returns:
- true if a value is required, false otherwise
-
setValueRequired
public void setValueRequired(boolean value)
Sets or clears the property which determines if this field requires a value.- Specified by:
setValueRequiredin interfacePromptInterfaces.ValueRequired- Parameters:
value- true if a value is required, false otherwise
-
getTagName
protected java.lang.String getTagName()
- Specified by:
getTagNamein classPromptElement
-
-