public class FormItemText extends AbstractFormItem
| Constructor and Description |
|---|
FormItemText(Element textElement)
Constructs a new
FormItemText using the specified XML element. |
| Modifier and Type | Method and Description |
|---|---|
String |
getInputCheck()
Returns a
String containing the term that determines how the user input should be checked. |
int |
getMaxLength()
Returns the maximum number of allowed characters.
|
String |
getValue()
Returns the current value.
|
boolean |
isDate()
Returns
true if this input field is a date field. |
boolean |
isPassword()
Returns
true if this input field is a password field. |
boolean |
isText()
Returns
true if this form item is a text input field. |
boolean |
isValid()
Tests if the current value a valid input for this field.
|
boolean |
isValid(String test)
Tests if the parameter
test is a valid input. |
void |
setValue(String value)
Sets a new value for this field.
|
getId, getLabel, isFixed, isLabel, isList, isNewLine, isNumber, isRequired, isUppercasepublic FormItemText(Element textElement)
FormItemText using the specified XML element.textElement - XML elementpublic boolean isText()
IFormItemtrue if this form item is a text input field.
A cast to FormItemText can be done if this method returns true.isText in interface IFormItemisText in class AbstractFormItempublic 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 isDate()
true if this input field is a date field.public String getInputCheck()
String containing the term that determines how the user input should be checked.public int getMaxLength()
public boolean isValid(String test)
test is a valid input.test - Value which should be testedpublic void setValue(String value)
IFormItemvalue - New valuepublic String getValue()
IFormItempublic boolean isValid()
IFormItemisValid in interface IFormItemisValid in class AbstractFormItemIFormItem is valid.Copyright © 2021. All rights reserved.