public class TextElement extends OnChangeResetElement
Constructor and Description |
---|
TextElement(java.lang.String variableName,
UC4ObjectName reference) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCaption() |
UC4ObjectName |
getDataReference() |
int |
getMaxLength() |
java.lang.String |
getMultiSelectSeparator()
Returns the mulit select separator character.
|
char |
getQuoteCharacter()
Returns the character for a quote.
|
java.lang.String |
getRegExp()
Returns the Regular expression or an empty String if not set.
|
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 |
hasInputAssistance() |
boolean |
hasMultiSelect() |
boolean |
isLocked()
Returns
true if this Prompt Element is locked. |
boolean |
isMultiline()
Returns the value of the multi-line property.
|
boolean |
isShowAsPassword()
If set, this control shows asterisks instead of the text which was entered.
|
boolean |
isUpper()
Returns
true if the values should be converted to upper case. |
boolean |
isValueRequired()
Returns
true if the user has to use the default value or enter a value in this field. |
void |
setCaption(java.lang.String caption)
Sets the caption of this prompt element.
|
void |
setDataReference(UC4ObjectName vara)
Sets a UC4 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 |
setInputAssistance(boolean value)
Enables or disables the input assistance for this field.
|
void |
setLocked(boolean locked)
Lock or unlocks this element.
|
void |
setMaxLength(int length)
Sets the maximal length for inputs in this text field.
|
void |
setMultiline(boolean value)
Enables or disables the multiline property.
|
void |
setMultiSelect(boolean value)
Enables or disables multi select.
|
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 |
setRegExp(java.lang.String regex)
Sets the Regular expression.
|
void |
setShowAsPassword(boolean value)
If set, this control shows asterisks instead of the text which was entered.
|
void |
setUpper(boolean value)
Sets the upper cause property.
|
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
getCustomField, getMessageInsert, getMessageNumber, getProperty, getTooltip, getValue, getValues, getVariable, hasList, setCustomField, setTooltip, setValue, setValues, setVariable, toString, updateDefaultValue
public TextElement(java.lang.String variableName, UC4ObjectName reference)
variableName
- Name of the script variablereference
- Referencepublic void setXmlKey(java.lang.String key)
key
- Keypublic java.lang.String getXmlKey()
public void setXPath(java.lang.String xpath)
xpath
- XPath/Query expressionpublic java.lang.String getXPath()
public boolean isLocked()
true
if this Prompt Element is locked.
In this case a user cannot change the default value in the Prompt-Screen.public void setQuoteCharacter(char c)
c
- Characterpublic char getQuoteCharacter()
public void setLocked(boolean locked)
locked
- true if locked, false if the user can change the value of the Prompt Elementpublic void setRegExp(java.lang.String regex)
regex
- Regular expressionpublic java.lang.String getRegExp()
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.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.value
- true if the cursor should be set in this Prompt Element, false otherwisepublic boolean isUpper()
true
if the values should be converted to upper case.public void setUpper(boolean value)
value
- true to enable the conversion to upper case, false to disable itpublic boolean isShowAsPassword()
public void setShowAsPassword(boolean value)
value
- true to enable the password field, false to disable itpublic boolean isValueRequired()
true
if the user has to use the default value or enter a value in this field.public void setValueRequired(boolean value)
value
- true if a value is required, false otherwisepublic boolean hasInputAssistance()
true
if input assistance is enabled, false otherwisepublic void setInputAssistance(boolean value)
value
- true
if input assistance should be enabled, false otherwisepublic java.lang.String getCaption()
public void setCaption(java.lang.String caption)
caption
- Captionpublic void setDataReference(UC4ObjectName vara)
vara
- Name of a Variable Objectpublic UC4ObjectName getDataReference()
public void setMultiSelect(boolean value)
value
- true if mulit select should be enabledpublic boolean hasMultiSelect()
public void setMultiline(boolean value)
value
- true if this text field should contain more than one line, false if not.public boolean isMultiline()
public void setMultiSelectSeparator(java.lang.String sep)
sep
- separator characterpublic java.lang.String getMultiSelectSeparator()
public void setMaxLength(int length)
length
- Max lengthpublic int getMaxLength()