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 TypeFieldDescriptionprivate static final String[]private static final Stringprivate static final Stringprivate static final Stringstatic 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.private static final Stringprivate static final StringFields inherited from class 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 TypeMethodDescriptionprivate static voidcheckIfFormFieldTypeIsAllowed(String formFieldType) voidupdateCheckedValue(IPropertyContainer element) Updates the checked value of the form field based on theFormProperty.FORM_FIELD_CHECKEDproperty.Methods inherited from class 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 AccessibilityProperties
setStructureElementIdString
-
Field Details
-
FORM_FIELD_RADIO
-
FORM_FIELD_CHECK
-
FORM_FIELD_PUSH_BUTTON
-
FORM_FIELD_LIST_BOX
-
FORM_FIELD_TEXT
Represents the role: Text. This can be passwords, text areas, etc.- See Also:
-
ROLE_NAME
- See Also:
-
OWNER_PRINT_FIELD_NAME
- See Also:
-
ATTRIBUTE_CHECKED
- See Also:
-
ATTRIBUTE_ON
- See Also:
-
ATTRIBUTE_OFF
- See Also:
-
ALLOWED_VALUES
-
-
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.
-
checkIfFormFieldTypeIsAllowed
-