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
aliasMap, list, properties
Constructor and Description |
---|
CheckGroupElement(java.lang.String variableName,
UC4ObjectName reference)
Creates a new
CheckGroupElement . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCaption() |
UC4ObjectName |
getDataReference() |
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.String |
getMultiSelectSeparator()
Returns the mulit select separator character.
|
char |
getQuoteCharacter()
Returns the character for a quote.
|
protected java.lang.String |
getTagName() |
java.lang.String |
getXmlKey()
Returns the key for XML Variables in the data reference.
|
java.lang.String |
getXPath()
Returns the XPath expression if XML variables are used as data reference.
|
boolean |
hasFocus()
Returns
true if the focus is set. |
boolean |
hasMultiSelect() |
boolean |
isLocked()
Returns
true if this Prompt Element is locked. |
boolean |
isMultiSelectArray()
Returns
true if this prompt element has a multi select array. |
boolean |
isValueRequired()
Returns
true if the user has to use the default value or check at least one box. |
void |
setCaption(java.lang.String caption)
Sets the caption of this prompt element.
|
void |
setDataReference(UC4ObjectName vara)
Sets a VARA Object which contains a list of valid entries for this prompt element.
|
void |
setFocus(boolean value)
Sets the cursor focus: The cursor is placed at this control if the value is
true . |
void |
setLocked(boolean locked)
Lock or unlocks this element.
|
void |
setMultiSelect(boolean value)
Enables or disables multi select.
|
void |
setMultiSelectArray(boolean value)
Enables or disables the array property for multi select values.
|
void |
setMultiSelectSeparator(java.lang.String sep)
Sets the mulit select separator character.
|
void |
setQuoteCharacter(char c)
Sets the character for a quote, for example ' or ".
|
void |
setValueRequired(boolean value)
Sets or clears the property which determines if this field requires a value.
|
void |
setXmlKey(java.lang.String key)
Sets the key in case XML Variables are used as data reference.
|
void |
setXPath(java.lang.String xpath)
Sets the XPath expression if XML variables are used as data reference.
|
addOnChangeResetElement, getAllOnChangeResetElementIterator, onChangeResetElementIterator, removeAllOnChangeResetElements, removeOnChangeResetElement, resetAllSubValues, sizeOfOnChangeResetElements, storeAdditionalPromptData
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
public CheckGroupElement(java.lang.String variableName, UC4ObjectName reference)
CheckGroupElement
.variableName
- Name of the script variablereference
- Name of the referencepublic void setQuoteCharacter(char c)
setQuoteCharacter
in interface PromptInterfaces.QuoteCharacter
c
- Characterpublic char getQuoteCharacter()
getQuoteCharacter
in interface PromptInterfaces.QuoteCharacter
public boolean hasFocus()
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.hasFocus
in interface PromptInterfaces.Focus
public java.util.List<java.lang.String> getItemList()
getItemList
in interface PromptInterfaces.ItemList
public void setFocus(boolean value)
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.setFocus
in interface PromptInterfaces.Focus
value
- true if the cursor should be set in this Prompt Element, false otherwisepublic boolean isLocked()
true
if this Prompt Element is locked.
In this case a user cannot change the default value in the Prompt-Screen.isLocked
in interface PromptInterfaces.Locked
isLocked
in class PromptElement
public void setLocked(boolean locked)
setLocked
in interface PromptInterfaces.Locked
setLocked
in class PromptElement
locked
- true if locked, false if the user can change the value of the Prompt Elementpublic java.lang.String getCaption()
getCaption
in interface PromptInterfaces.Caption
public void setCaption(java.lang.String caption)
setCaption
in interface PromptInterfaces.Caption
caption
- Captionpublic void setDataReference(UC4ObjectName vara)
setDataReference
in interface PromptInterfaces.DataReference
vara
- Name of a Variable Objectpublic void setXmlKey(java.lang.String key)
setXmlKey
in interface PromptInterfaces.XmlKey
key
- Keypublic java.lang.String getXmlKey()
getXmlKey
in interface PromptInterfaces.XmlKey
public void setXPath(java.lang.String xpath)
setXPath
in interface PromptInterfaces.XPath
xpath
- XPath/Query expressionpublic java.lang.String getXPath()
getXPath
in interface PromptInterfaces.XPath
public UC4ObjectName getDataReference()
getDataReference
in interface PromptInterfaces.DataReference
public void setMultiSelect(boolean value)
setMultiSelect
in interface PromptInterfaces.MultiSelect
value
- true if mulit select should be enabledpublic boolean hasMultiSelect()
hasMultiSelect
in interface PromptInterfaces.MultiSelect
public void setMultiSelectSeparator(java.lang.String sep)
setMultiSelectSeparator
in interface PromptInterfaces.MultiSelect
sep
- separator characterpublic java.lang.String getMultiSelectSeparator()
getMultiSelectSeparator
in interface PromptInterfaces.MultiSelect
public boolean isMultiSelectArray()
true
if this prompt element has a multi select array.public void setMultiSelectArray(boolean value)
value
- true if the array property should be set, false otherwisepublic boolean isValueRequired()
true
if the user has to use the default value or check at least one box.isValueRequired
in interface PromptInterfaces.ValueRequired
public void setValueRequired(boolean value)
setValueRequired
in interface PromptInterfaces.ValueRequired
value
- true if a value is required, false otherwiseprotected java.lang.String getTagName()
getTagName
in class PromptElement