Package com.itextpdf.forms.form.element
Class CheckBox
- All Implemented Interfaces:
-
IFormField,IAbstractElement,IBlockElement,IElement,IPropertyContainer
Extension of the
FormField class representing a checkbox so that a CheckBoxRenderer is used instead of the default renderer for fields.
-
Field Summary
Fields inherited from class com.itextpdf.layout.element.AbstractElement
childElements, nextRenderer, stylesFields inherited from class com.itextpdf.layout.ElementPropertyContainer
properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IRendererCreates new renderer instance.setCheckBoxType(CheckBoxType checkBoxType) Sets the icon of the checkbox.setChecked(boolean checked) Sets the checked state of the checkbox.setPdfAConformanceLevel(PdfAConformanceLevel conformanceLevel) Sets the PDF/A conformance level for the checkbox.setSize(float size) Sets the size of the checkbox.Methods inherited from class com.itextpdf.forms.form.element.FormField
getDefaultProperty, getId, setHeight, setInteractive, setValue, setWidthMethods inherited from class com.itextpdf.layout.element.AbstractElement
addStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumberMethods inherited from class com.itextpdf.layout.ElementPropertyContainer
deleteOwnProperty, 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, setWordSpacingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setProperty
-
Constructor Details
-
CheckBox
Creates a newCheckBoxinstance.- Parameters:
-
id- the id
-
-
Method Details
-
setChecked
Sets the checked state of the checkbox.- Parameters:
-
checked- the checked state to set - Returns:
- this checkbox instance
-
setPdfAConformanceLevel
Sets the PDF/A conformance level for the checkbox.- Parameters:
-
conformanceLevel- the PDF/A conformance level to set - Returns:
- this checkbox instance
-
setCheckBoxType
Sets the icon of the checkbox.- Parameters:
-
checkBoxType- the type of the checkbox to set - Returns:
- this checkbox instance
-
setSize
Sets the size of the checkbox. -
makeNewRenderer
Description copied from class:AbstractElementCreates new renderer instance.- Specified by:
-
makeNewRendererin classAbstractElement<CheckBox> - Returns:
-
new
IRenderer
-