Package com.itextpdf.forms
Class FormDefaultAccessibilityProperties
java.lang.Object
com.itextpdf.kernel.pdf.tagutils.AccessibilityProperties
com.itextpdf.kernel.pdf.tagutils.DefaultAccessibilityProperties
com.itextpdf.forms.FormDefaultAccessibilityProperties
The
FormDefaultAccessibilityProperties class is used to create a specific forms related instance of the DefaultAccessibilityProperties class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRepresents the role: Checkbox.static final StringRepresents the role: ListBox.static final StringRepresents the role: PushButton.static final StringRepresents the role: radio.static final StringRepresents the role: Text.Fields inherited from class com.itextpdf.kernel.pdf.tagutils.DefaultAccessibilityProperties
actualText, alternateDescription, attributesList, expansion, language, namespace, phoneme, phoneticAlphabet, refs, role -
Constructor Summary
ConstructorsConstructorDescriptionFormDefaultAccessibilityProperties(String formFieldType) Instantiates a newFormDefaultAccessibilityPropertiesinstance based on structure element role. -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateCheckedValue(IPropertyContainer element) Updates the checked value of the form field based on theFormProperty.FORM_FIELD_CHECKEDproperty.Methods inherited from class com.itextpdf.kernel.pdf.tagutils.DefaultAccessibilityProperties
addAttributes, addAttributes, addRef, clearAttributes, clearRefs, getActualText, getAlternateDescription, getAttributesList, getExpansion, getLanguage, getNamespace, getPhoneme, getPhoneticAlphabet, getRefsList, getRole, getStructureElementId, setActualText, setAlternateDescription, setExpansion, setLanguage, setNamespace, setPhoneme, setPhoneticAlphabet, setRole, setStructureElementIdMethods inherited from class com.itextpdf.kernel.pdf.tagutils.AccessibilityProperties
setStructureElementIdString
-
Field Details
-
FORM_FIELD_RADIO
Represents the role: radio.- See Also:
-
FORM_FIELD_CHECK
Represents the role: Checkbox.- See Also:
-
FORM_FIELD_PUSH_BUTTON
Represents the role: PushButton.- See Also:
-
FORM_FIELD_LIST_BOX
Represents the role: ListBox.- See Also:
-
FORM_FIELD_TEXT
Represents the role: Text. This can be passwords, text areas, etc.- See Also:
-
-
Constructor Details
-
FormDefaultAccessibilityProperties
Instantiates a newFormDefaultAccessibilityPropertiesinstance based on structure element role.- Parameters:
-
formFieldType- the type of the formField
-
-
Method Details
-
updateCheckedValue
Updates the checked value of the form field based on theFormProperty.FORM_FIELD_CHECKEDproperty. If no such property is found, the checked value is set to "off".- Parameters:
-
element- The element which contains aFormProperty.FORM_FIELD_CHECKEDproperty.
-