T - the generic type of the form field (e.g. input field, button, text area)public abstract class FormField<T extends IFormField> extends AbstractElement<T> implements IFormField
AbstractElement class for form fields.childElements, nextRenderer, stylesproperties| Modifier and Type | Method and Description |
|---|---|
<T1> T1 |
getDefaultProperty(int property) |
String |
getId()
Gets the id.
|
IFormField |
setHeight(float height)
Set the form field's height.
|
IFormField |
setInteractive(boolean interactive)
Set the form field to be interactive and added into Acroform instead of drawing it on a page.
|
T |
setSize(float size)
Sets the form field's width and height.
|
IFormField |
setValue(String value)
Sets the
FormProperty.FORM_FIELD_VALUE property. |
IFormField |
setWidth(float width)
Set the form field's width.
|
addStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, makeNewRenderer, setAction, setNextRenderer, setPageNumberdeleteOwnProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundImage, setBaseDirection, setBold, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFontColor, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setItalic, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildrencreateRendererSubTree, getRenderer, setNextRendererdeleteOwnProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setPropertypublic T setSize(float size)
size - form field's width and height.FormField element.public IFormField setWidth(float width)
setWidth in interface IFormFieldwidth - form field's width.FormField element.public IFormField setHeight(float height)
setHeight in interface IFormFieldheight - form field's height.FormField element.public IFormField setValue(String value)
FormProperty.FORM_FIELD_VALUE property.setValue in interface IFormFieldvalue - string value of the property to be set.IFormField instance.public String getId()
getId in interface IFormFieldpublic <T1> T1 getDefaultProperty(int property)
getDefaultProperty in interface IPropertyContainergetDefaultProperty in class ElementPropertyContainer<T extends IFormField>property - public IFormField setInteractive(boolean interactive)
setInteractive in interface IFormFieldinteractive - true if the form field element shall be added into Acroform, false otherwise.
By default, the form field element is not interactive and drawn on a page.IFormField instance.Copyright © 1998–2023 Apryse Group NV. All rights reserved.