Constructor and Description |
---|
FormItemText(org.w3c.dom.Element textElement)
Constructs a new
FormItemText using the specified XML element. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Returns the internal ID of this field.
|
java.lang.String |
getInputCheck()
Returns a
String containing the term that determines how the user input should be checked. |
java.lang.String |
getLabel()
Returns the label of the field.
|
int |
getMaxLength()
Returns the maximum number of allowed characters.
|
java.lang.String |
getValue()
Returns the current value.
|
boolean |
isDate()
Returns
true if this input field is a date field. |
boolean |
isLabel()
Returns
true if this form item is a label. |
boolean |
isList()
Returns
true if this form item is a list. |
boolean |
isNumber()
Returns
true if this form item is a number field. |
boolean |
isPassword()
Returns
true if this input field is a password field. |
boolean |
isRequired()
Returns
true if an input is required. |
boolean |
isText()
Returns
true if this form item is a text input field. |
boolean |
isUppercase()
Returns
true if the value is converted to upper case. |
boolean |
isValid()
Tests if the current value a valid input for this field.
|
boolean |
isValid(java.lang.String test)
Tests if the parameter
test is a valid input. |
void |
setValue(java.lang.String value)
Sets a new value for this field.
|
public FormItemText(org.w3c.dom.Element textElement)
FormItemText
using the specified XML element.textElement
- Elementpublic boolean isLabel()
IFormItem
true
if this form item is a label.public boolean isText()
IFormItem
true
if this form item is a text input field.
A cast to FormItemText
can be done if this method returns true
.public boolean isPassword()
true
if this input field is a password field.
The entered value is not visible in the report if this input field is a password fieldpublic boolean isNumber()
IFormItem
true
if this form item is a number field.
A cast to FormItemNumber
can be done if this method returns true
.public boolean isList()
IFormItem
true
if this form item is a list.
A cast to FormItemList
can be done if this method returns true
.public boolean isDate()
true
if this input field is a date field.public java.lang.String getLabel()
IFormItem
public boolean isUppercase()
true
if the value is converted to upper case.true
if the input should upper casepublic java.lang.String getInputCheck()
String
containing the term that determines how the user input should be checked.public int getMaxLength()
public boolean isValid(java.lang.String test)
test
is a valid input.test
- Value which should be testedpublic void setValue(java.lang.String value)
IFormItem
public java.lang.String getValue()
IFormItem
public boolean isRequired()
IFormItem
true
if an input is required. In this case the value cannot be an empty String
.isRequired
in interface IFormItem
public java.lang.String getId()
IFormItem