public abstract class PromptElement
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
aliasMap |
protected java.util.List<java.lang.String> |
list |
protected java.util.Map<java.lang.String,java.lang.String> |
properties |
Constructor and Description |
---|
PromptElement() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCustomField()
Returns the custom field of this Prompt Element.
|
java.lang.String |
getMessageInsert()
This method returns a message insert for the message number returned by
getMessageNumber . |
int |
getMessageNumber()
This method returns a message number in case a Prompt is executed but its value is not valid.
|
protected java.lang.String |
getMode() |
java.lang.String |
getProperty(java.lang.String name)
Returns the value of a property by its name.
|
protected abstract java.lang.String |
getTagName() |
java.lang.String |
getTooltip()
Returns the tooltip of this Prompt Element.
|
java.lang.String |
getValue()
Returns the default value of this prompt element.
|
java.lang.String[] |
getValues()
Returns the list of values if the "Array" property is set.
|
java.lang.String |
getVariable()
Returns the variable name that can be used in the Automation Engine Script.
|
boolean |
hasList()
Returns
true if the prompt element contains a list of values. |
boolean |
isAltView()
Is this prompt using a variable as default value.
|
protected boolean |
isLocked() |
protected java.lang.String |
listParam() |
void |
setAltView(boolean altview)
Is this prompt using a variable as default value
|
void |
setCustomField(java.lang.String customField)
Sets the custom field of this Prompt Element.
|
protected void |
setLocked(boolean locked) |
void |
setRawValue(java.lang.String value)
Sets the value of this prompt element (ignoring validation and encryption, setting the raw value)
|
void |
setTooltip(java.lang.String tooltip)
Sets the tooltip of this Prompt Element.
|
void |
setValue(java.lang.String value)
Sets the default value of this prompt element.
|
void |
setValues(java.lang.String[] values)
Sets the list of values if the "Array" property is set.
|
void |
setVariable(java.lang.String variable)
Sets the variable name that can be used in the Automation Engine Script.
|
protected void |
store(com.uc4.util.XMLDocument xmlDocument,
org.w3c.dom.Element readpanel)
Saves this PromptElement to the specified XML Document
|
protected void |
storeAdditionalPromptData(org.w3c.dom.Element promptElement)
Subclasses can implement this method to store additional data into the prompt-element.
|
protected void |
storeDefaultValues(com.uc4.util.XMLDocument xmlDocument,
org.w3c.dom.Element box) |
java.lang.String |
toString() |
void |
updateDefaultValue(org.w3c.dom.Element element)
Internal use.
|
protected void |
validateForExecute(java.lang.String v)
Sub classes implement this method
|
protected void |
validateId(java.lang.String idParameter) |
protected java.util.Map<java.lang.String,java.lang.String> properties
protected java.util.List<java.lang.String> list
protected java.util.Map<java.lang.String,java.lang.String> aliasMap
public java.lang.String getTooltip()
public void setTooltip(java.lang.String tooltip)
tooltip
- Tooltip textpublic java.lang.String getCustomField()
public void setCustomField(java.lang.String customField)
customField
- Custom fieldpublic java.lang.String getVariable()
public void setValue(java.lang.String value)
value
- Default valuepublic void setRawValue(java.lang.String value)
value
- new valueprotected void validateForExecute(java.lang.String v)
v
- Valuepublic void setValues(java.lang.String[] values)
values
- Array of Strings containing the valuespublic java.lang.String[] getValues()
public java.lang.String getValue()
public void setVariable(java.lang.String variable)
variable
- Name of the Script variableprotected void validateId(java.lang.String idParameter)
protected void store(com.uc4.util.XMLDocument xmlDocument, org.w3c.dom.Element readpanel)
xmlDocument
- XML Documentreadpanel
- Read Panelprotected void storeAdditionalPromptData(org.w3c.dom.Element promptElement)
promptElement
- xml-element from the prompt-elementprotected java.lang.String listParam()
protected void storeDefaultValues(com.uc4.util.XMLDocument xmlDocument, org.w3c.dom.Element box)
public boolean hasList()
true
if the prompt element contains a list of values.public java.lang.String getProperty(java.lang.String name)
name
- Name of the propertypublic void updateDefaultValue(org.w3c.dom.Element element)
element
- DOM elementprotected abstract java.lang.String getTagName()
protected java.lang.String getMode()
public java.lang.String toString()
toString
in class java.lang.Object
public int getMessageNumber()
public java.lang.String getMessageInsert()
getMessageNumber
.null
or an empty Stringprotected boolean isLocked()
protected void setLocked(boolean locked)
public void setAltView(boolean altview)
altview
- true to allow variables as inputpublic boolean isAltView()