Package com.itextpdf.forms.form.element
Interface IFormField
-
- All Superinterfaces:
IAbstractElement,IBlockElement,IElement,IPropertyContainer
- All Known Implementing Classes:
AbstractSelectField,Button,CheckBox,ComboBoxField,FormField,InputField,ListBoxField,Radio,SignatureFieldAppearance,TextArea
public interface IFormField extends IBlockElement
Common interface for HTML form elements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetId()Gets the id.IFormFieldsetHeight(float height)Set the form field's height.IFormFieldsetInteractive(boolean interactive)Set the form field to be interactive and added into Acroform instead of drawing it on a page.IFormFieldsetValue(java.lang.String value)Sets theFormProperty.FORM_FIELD_VALUEproperty.IFormFieldsetWidth(float width)Set the form field's width.-
Methods inherited from interface com.itextpdf.layout.element.IAbstractElement
getChildren
-
Methods inherited from interface com.itextpdf.layout.element.IElement
createRendererSubTree, getRenderer, setNextRenderer
-
Methods inherited from interface com.itextpdf.layout.IPropertyContainer
deleteOwnProperty, getDefaultProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setProperty
-
-
-
-
Method Detail
-
setValue
IFormField setValue(java.lang.String value)
Sets theFormProperty.FORM_FIELD_VALUEproperty.- Parameters:
value- string value of the property to be set- Returns:
- this same
IFormFieldinstance
-
setInteractive
IFormField setInteractive(boolean interactive)
Set the form field to be interactive and added into Acroform instead of drawing it on a page.- Parameters:
interactive-trueif the form field element shall be added into Acroform,falseotherwise. By default, the form field element is not interactive and drawn on a page- Returns:
- this same
IFormFieldinstance
-
getId
java.lang.String getId()
Gets the id.- Returns:
- the id
-
setWidth
IFormField setWidth(float width)
Set the form field's width.- Parameters:
width- form field's width- Returns:
- this
FormFieldelement
-
setHeight
IFormField setHeight(float height)
Set the form field's height.- Parameters:
height- form field's height- Returns:
- this
FormFieldelement
-
-