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
Common interface for HTML form elements.
-
Method Summary
Modifier and TypeMethodDescriptiongetId()Gets the id.setHeight(float height) Set the form field's height.setInteractive(boolean interactive) Set the form field to be interactive and added into Acroform instead of drawing it on a page.Sets theFormProperty.FORM_FIELD_VALUEproperty.setWidth(float width) Set the form field's width.Methods inherited from interface com.itextpdf.layout.element.IAbstractElement
getChildrenMethods inherited from interface com.itextpdf.layout.element.IElement
createRendererSubTree, getRenderer, setNextRendererMethods inherited from interface com.itextpdf.layout.IPropertyContainer
deleteOwnProperty, getDefaultProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setProperty
-
Method Details
-
setValue
Sets theFormProperty.FORM_FIELD_VALUEproperty.- Parameters:
value- string value of the property to be set- Returns:
- this same
IFormFieldinstance
-
setInteractive
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
String getId()Gets the id.- Returns:
- the id
-
setWidth
Set the form field's width.- Parameters:
width- form field's width- Returns:
- this
FormFieldelement
-
setHeight
Set the form field's height.- Parameters:
height- form field's height- Returns:
- this
FormFieldelement
-