Interface PagedMediaIntf<T extends PagedMediaIntf<T>>

All Known Implementing Classes:
ClassRule, CssRule, CssStyle, ElementRule, IdRule, KeyFrameRule, TagRule

public interface PagedMediaIntf<T extends PagedMediaIntf<T>>
CSS property setters for paged media properties.

This interface provides methods for setting CSS properties designed for paged media like print and PDF output. Controls page breaks, orphans, widows, and page-specific layout behaviors.

Usage:


 element.setPageBreakBefore(PageBreak.ALWAYS);
 element.setPageBreakAfter(PageBreak.AUTO);
 element.setPageBreakInside(PageBreak.AVOID);
 element.setOrphans(3);
 element.setWidows(3);
 
Since:
2016
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • CssIntf
  • Method Details

    • setOrphans

      T setOrphans(String attrValue)
      Sets the orphans property specifying minimum lines at the bottom of a page.
      Parameters:
      attrValue - the CSS value (e.g., "2", "3") for minimum orphan lines
      Returns:
      this for method chaining
    • setPageBreakAfter

      T setPageBreakAfter(String attrValue)
      Sets the page-break-after property using a string value.
      Parameters:
      attrValue - the CSS value (e.g., "auto", "always", "avoid", "left", "right")
      Returns:
      this for method chaining
    • setPageBreakAfter

      T setPageBreakAfter(PageBreakAfter attrValue)
      Sets the page-break-after property using an enum value.
      Parameters:
      attrValue - the PageBreakAfter enum value specifying break behavior after element
      Returns:
      this for method chaining
    • setPageBreakBefore

      T setPageBreakBefore(String attrValue)
      Sets the page-break-before property using a string value.
      Parameters:
      attrValue - the CSS value (e.g., "auto", "always", "avoid", "left", "right")
      Returns:
      this for method chaining
    • setPageBreakBefore

      T setPageBreakBefore(PageBreakBefore attrValue)
      Sets the page-break-before property using an enum value.
      Parameters:
      attrValue - the PageBreakBefore enum value specifying break behavior before element
      Returns:
      this for method chaining
    • setPageBreakInside

      T setPageBreakInside(String attrValue)
      Sets the page-break-inside property using a string value.
      Parameters:
      attrValue - the CSS value (e.g., "auto", "avoid")
      Returns:
      this for method chaining
    • setPageBreakInside

      T setPageBreakInside(PageBreakInside attrValue)
      Sets the page-break-inside property using an enum value.
      Parameters:
      attrValue - the PageBreakInside enum value specifying break behavior inside element
      Returns:
      this for method chaining