public class InputField extends FormField<InputField> implements IPlaceholderable
FormField
class representing a button so that a InputFieldRenderer
is used.
Constructor and Description |
---|
InputField(String id)
Creates a new input field.
|
Modifier and Type | Method and Description |
---|---|
|
getDefaultProperty(int property) |
com.itextpdf.layout.element.Paragraph |
getPlaceholder()
Gets the placeholder paragraph.
|
protected com.itextpdf.layout.renderer.IRenderer |
makeNewRenderer() |
void |
setPlaceholder(com.itextpdf.layout.element.Paragraph placeholder)
Sets the placeholder paragraph.
|
addStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumber
deleteOwnProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBaseDirection, setBold, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFont, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setItalic, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public InputField(String id)
id
- the id
public com.itextpdf.layout.element.Paragraph getPlaceholder()
getPlaceholder
in interface IPlaceholderable
public void setPlaceholder(com.itextpdf.layout.element.Paragraph placeholder)
setPlaceholder
in interface IPlaceholderable
placeholder
- the paragraph to be used as placeholder
publicT1 getDefaultProperty(int property)
getDefaultProperty
in interface com.itextpdf.layout.IPropertyContainer
getDefaultProperty
in class FormField<InputField>
protected com.itextpdf.layout.renderer.IRenderer makeNewRenderer()
makeNewRenderer
in class com.itextpdf.layout.element.AbstractElement<InputField>
Copyright © 1998–2019 iText Group NV. All rights reserved.