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, IAccessibleElement
AbstractElement class for form fields.| Modifier and Type | Field and Description |
|---|---|
protected DefaultAccessibilityProperties |
tagProperties
The tag properties.
|
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, 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, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacing, simulateBold, simulateItalicclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildrencreateRendererSubTree, getRenderer, setNextRendererdeleteOwnProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setPropertygetAccessibilityPropertiesprotected DefaultAccessibilityProperties tagProperties
public 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 widthFormField elementpublic IFormField setHeight(float height)
setHeight in interface IFormFieldheight - form field's heightFormField elementpublic IFormField setValue(String value)
FormProperty.FORM_FIELD_VALUE property.setValue in interface IFormFieldvalue - string value of the property to be setIFormField instancepublic 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 pageIFormField instanceCopyright © 1998–2024 Apryse Group NV. All rights reserved.