Package com.itextpdf.layout.tagging
Class THTaggingRule
java.lang.Object
com.itextpdf.layout.tagging.THTaggingRule
- All Implemented Interfaces:
ITaggingRule
Used to automatically add scope attribute to TH cells.
This behavior is enabled by default. In the future, we maybe want to expand this with a heuristic which determines the scope based on the position of all the TH cells in the table.
If the scope attribute is already present, it will not be modified. If the scope attribute is not present, it will be added with the value "Column". If the scope attribute is present with the value "None", it will be removed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
onTagFinish
(LayoutTaggingHelper taggingHelper, TaggingHintKey taggingHintKey) Action which creates required children structure for the role.
-
Constructor Details
-
THTaggingRule
THTaggingRule()Creates a newTHTaggingRule
instance.
-
-
Method Details
-
onTagFinish
Action which creates required children structure for the role.- Specified by:
onTagFinish
in interfaceITaggingRule
- Parameters:
taggingHelper
- tagging helper.taggingHintKey
- element for which children structure will be created.- Returns:
true
if the structure was created successfully,false
otherwise.
-