Package com.oorian.css
Enum Class PageBreakAfter
- All Implemented Interfaces:
Serializable,Comparable<PageBreakAfter>,Constable
CSS page-break-after property values for print page breaking.
The page-break-after property specifies whether a page break should occur after an element when printing. This property is used to control pagination in printed documents.
Break Values:
- auto: Automatic page break if needed (default)
- always: Always insert a page break after
- avoid: Avoid page break after if possible
- left: Insert page breaks to start on left page
- right: Insert page breaks to start on right page
Usage:
element.setPageBreakAfter(PageBreakAfter.ALWAYS);
section.setPageBreakAfter(PageBreakAfter.AVOID);
- Since:
- 2007
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways insert a page break after.Automatic page break if needed (default).Avoid page break after if possible.Inherits from parent element.Sets to default value.Insert page breaks to start on left page.Insert page breaks to start on right page. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the CSS value string.toString()Returns the CSS value string.static PageBreakAfterReturns the enum constant of this class with the specified name.static PageBreakAfter[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
Automatic page break if needed (default). -
ALWAYS
Always insert a page break after. -
AVOID
Avoid page break after if possible. -
LEFT
Insert page breaks to start on left page. -
RIGHT
Insert page breaks to start on right page. -
INITIAL
Sets to default value. -
INHERIT
Inherits from parent element.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
Returns the CSS value string.- Returns:
- the CSS value
-
toString
Returns the CSS value string.- Overrides:
toStringin classEnum<PageBreakAfter>- Returns:
- the CSS value
-