public abstract class PromptElement extends Object
Constructor and Description |
---|
PromptElement() |
Modifier and Type | Method and Description |
---|---|
String |
getCustomField()
Returns the custom field of this Prompt Element.
|
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.
|
String |
getProperty(String name)
Returns the value of a property by its name.
|
String |
getTooltip()
Returns the tooltip of this Prompt Element.
|
String |
getValue()
Returns the default value of this prompt element.
|
String[] |
getValues()
Returns the list of values if the "Array" property is set.
|
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.
|
void |
setAltView(boolean altview)
Is this prompt using a variable as default value
|
void |
setCustomField(String customField)
Sets the custom field of this Prompt Element.
|
void |
setTooltip(String tooltip)
Sets the tooltip of this Prompt Element.
|
void |
setValue(String value)
Sets the default value of this prompt element.
|
void |
setValues(String[] values)
Sets the list of values if the "Array" property is set.
|
void |
setVariable(String variable)
Sets the variable name that can be used in the Automation Engine Script.
|
String |
toString() |
void |
updateDefaultValue(Element element)
Internal use.
|
public String getTooltip()
public void setTooltip(String tooltip)
tooltip
- Tooltip textpublic String getCustomField()
public void setCustomField(String customField)
customField
- Custom fieldpublic String getVariable()
public void setValue(String value)
value
- Default valuepublic void setValues(String[] values)
values
- Array of Strings containing the valuespublic String[] getValues()
public String getValue()
public void setVariable(String variable)
variable
- Name of the Script variablepublic boolean hasList()
true
if the prompt element contains a list of values.public String getProperty(String name)
name
- Name of the propertypublic void updateDefaultValue(Element element)
element
- DOM elementpublic int getMessageNumber()
public String getMessageInsert()
getMessageNumber
.null
or an empty Stringpublic void setAltView(boolean altview)
altview
- true to allow variables as inputpublic boolean isAltView()
Copyright © 2021. All rights reserved.