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 String
Represents the role: Checkbox.static final String
Represents the role: ListBox.static final String
Represents the role: PushButton.static final String
Represents the role: radio.static final String
Represents 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 newFormDefaultAccessibilityProperties
instance based on structure element role. -
Method Summary
Modifier and TypeMethodDescriptionvoid
updateCheckedValue
(IPropertyContainer element) Updates the checked value of the form field based on theFormProperty.FORM_FIELD_CHECKED
property.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, setStructureElementId
Methods 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 newFormDefaultAccessibilityProperties
instance 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_CHECKED
property. If no such property is found, the checked value is set to "off".- Parameters:
-
element
- The element which contains aFormProperty.FORM_FIELD_CHECKED
property.
-