Package com.oorian.css
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:
-
Method Summary
Modifier and TypeMethodDescriptionsetOrphans(String attrValue) Sets the orphans property specifying minimum lines at the bottom of a page.setPageBreakAfter(PageBreakAfter attrValue) Sets the page-break-after property using an enum value.setPageBreakAfter(String attrValue) Sets the page-break-after property using a string value.setPageBreakBefore(PageBreakBefore attrValue) Sets the page-break-before property using an enum value.setPageBreakBefore(String attrValue) Sets the page-break-before property using a string value.setPageBreakInside(PageBreakInside attrValue) Sets the page-break-inside property using an enum value.setPageBreakInside(String attrValue) Sets the page-break-inside property using a string value.
-
Method Details
-
setOrphans
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
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
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
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
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
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
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
-