public class FormFieldImpl extends Object implements IFormField
FormFieldImpl class.
| Constructor and Description |
|---|
FormFieldImpl()
Constructor for FormFieldImpl.
|
FormFieldImpl(String name,
String value)
Constructor for FormFieldImpl.
|
FormFieldImpl(String name,
String[] values)
Constructor for FormFieldImpl.
|
FormFieldImpl(String name,
String[] values,
boolean secured)
Constructor for FormFieldImpl.
|
FormFieldImpl(String name,
String value,
boolean secured)
Constructor for FormFieldImpl.
|
| Modifier and Type | Method and Description |
|---|---|
IFormField |
duplicate()
duplicate() copies the data from the current IFormField into the passed-in parameter
|
String |
getName()
getName() gets the name of the field (name used in form submission)
|
boolean |
getSecured()
getSecured() returns whether the field is encrypted and should be displayed obscured
to the user
|
String |
getValue()
getValue() returns the first value associated with the Field
|
String[] |
getValues()
getValues() gets the values of the field
|
void |
setName(String name)
setName() sets the name of the field (name used in form submission)
|
void |
setSecured(boolean isSecured)
setSecured(boolean) changes whether the field should be encrypted and obscured
|
void |
setValue(String value)
setValue() sets the first value of the field
|
void |
setValues(String[] values)
setValues() sets the values of the field
|
public FormFieldImpl()
Constructor for FormFieldImpl.
public FormFieldImpl(String name, String value, boolean secured)
Constructor for FormFieldImpl.
public void setName(String name)
setName in interface IFormFieldname - a String objectpublic String getName()
getName in interface IFormFieldString objectpublic void setValue(String value)
setValue in interface IFormFieldvalue - a String objectpublic void setValues(String[] values)
setValues in interface IFormFieldvalues - an array of String objectspublic String getValue()
getValue in interface IFormFieldString objectpublic String[] getValues()
getValues in interface IFormFieldString objectspublic boolean getSecured()
getSecured in interface IFormFieldpublic void setSecured(boolean isSecured)
setSecured in interface IFormFieldisSecured - a booleanpublic IFormField duplicate()
duplicate in interface IFormFieldIFormField objectCopyright © 2023 Apereo. All rights reserved.