Package com.itextpdf.layout.tagging
Class TableTaggingRule
- java.lang.Object
-
- com.itextpdf.layout.tagging.TableTaggingRule
-
- All Implemented Interfaces:
ITaggingRule
class TableTaggingRule extends java.lang.Object implements ITaggingRule
-
-
Constructor Summary
Constructors Constructor Description TableTaggingRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.String
getKidRole(TaggingHintKey kidKey, LayoutTaggingHelper helper)
private static TaggingDummyElement
getTbodyTag(TaggingHintKey tableHintKey)
Creates a dummy element withStandardRoles.TBODY
role if needed.private static void
moveCaption(LayoutTaggingHelper taggingHelper, TaggingHintKey caption, TaggingHintKey tableHintKey)
boolean
onTagFinish(LayoutTaggingHelper taggingHelper, TaggingHintKey tableHintKey)
Action which creates required children structure for the role.
-
-
-
Method Detail
-
onTagFinish
public boolean onTagFinish(LayoutTaggingHelper taggingHelper, TaggingHintKey tableHintKey)
Description copied from interface:ITaggingRule
Action which creates required children structure for the role.- Specified by:
onTagFinish
in interfaceITaggingRule
- Parameters:
taggingHelper
- tagging helper.tableHintKey
- element for which children structure will be created.- Returns:
true
if the structure was created successfully,false
otherwise.
-
getKidRole
private static java.lang.String getKidRole(TaggingHintKey kidKey, LayoutTaggingHelper helper)
-
getTbodyTag
private static TaggingDummyElement getTbodyTag(TaggingHintKey tableHintKey)
Creates a dummy element withStandardRoles.TBODY
role if needed. Otherwise, returns a dummy element with a null role.- Parameters:
tableHintKey
- the hint key of the table.- Returns:
- a dummy element with
StandardRoles.TBODY
role if needed.
-
moveCaption
private static void moveCaption(LayoutTaggingHelper taggingHelper, TaggingHintKey caption, TaggingHintKey tableHintKey)
-
-