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.StringgetKidRole(TaggingHintKey kidKey, LayoutTaggingHelper helper)private static TaggingDummyElementgetTbodyTag(TaggingHintKey tableHintKey)Creates a dummy element withStandardRoles.TBODYrole if needed.private static voidmoveCaption(LayoutTaggingHelper taggingHelper, TaggingHintKey caption, TaggingHintKey tableHintKey)booleanonTagFinish(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:ITaggingRuleAction which creates required children structure for the role.- Specified by:
onTagFinishin interfaceITaggingRule- Parameters:
taggingHelper- tagging helper.tableHintKey- element for which children structure will be created.- Returns:
trueif the structure was created successfully,falseotherwise.
-
getKidRole
private static java.lang.String getKidRole(TaggingHintKey kidKey, LayoutTaggingHelper helper)
-
getTbodyTag
private static TaggingDummyElement getTbodyTag(TaggingHintKey tableHintKey)
Creates a dummy element withStandardRoles.TBODYrole 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.TBODYrole if needed.
-
moveCaption
private static void moveCaption(LayoutTaggingHelper taggingHelper, TaggingHintKey caption, TaggingHintKey tableHintKey)
-
-