Class CheckBox
- All Implemented Interfaces:
IFormField, IAbstractElement, IBlockElement, IElement, IPropertyContainer, IAccessibleElement
Extension of the
FormField class representing a checkbox so that
a CheckBoxRenderer is used instead of the default renderer for fields.-
Field Summary
FieldsFields inherited from class FormField
tagPropertiesFields inherited from class AbstractElement
childElements, nextRenderer, stylesFields inherited from class ElementPropertyContainer
properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theaccessibility properties.protected IRendererCreates a new renderer instance.setCheckBoxType(CheckBoxType checkBoxType) Sets the icon of the checkbox.setChecked(boolean checked) Sets the checked state of the checkbox.setPdfConformance(PdfConformance conformance) Sets the conformance for the checkbox.setSize(float size) Sets the size of the checkbox.Methods inherited from class FormField
getDefaultProperty, getId, setAlternativeDescription, setHeight, setInteractive, setValue, setWidthMethods inherited from class AbstractElement
addStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumberMethods inherited from class ElementPropertyContainer
deleteOwnProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, getTransparentStrokeColor, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundImage, setBaseDirection, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDashPattern, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFontColor, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeColor, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacing, simulateBold, simulateItalicMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IAbstractElement
getChildrenMethods inherited from interface IElement
createRendererSubTree, getRenderer, setNextRendererMethods inherited from interface IPropertyContainer
deleteOwnProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setProperty
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
CheckBox
-
-
Method Details
-
setChecked
Sets the checked state of the checkbox.- Parameters:
checked- the checked state to set- Returns:
- this checkbox instance
-
setPdfConformance
Sets the conformance for the checkbox.- Parameters:
conformance- The PDF conformance 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
-
getAccessibilityProperties
Gets theaccessibility properties. See alsoIAccessibleElement.- Returns:
- an interface that allows to specify properties of a tagged element in Tagged PDF.
-
makeNewRenderer
Description copied from class:AbstractElementCreates a new renderer instance.- Specified by:
makeNewRendererin classAbstractElement<CheckBox>- Returns:
- new
IRenderer
-