public enum BreakType extends java.lang.Enum<BreakType>
Enum Constant and Description |
---|
COLUMN
Specifies that the current break shall restart itself on the next column available on the current page when the document is displayed in page view.
|
PAGE
Specifies that the current break shall restart itself on the next page of the document when the document is displayed in page view.
|
TEXT_WRAPPING
Specifies that the current break shall restart itself on the next line in the document when the document is displayed in page view.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static BreakType |
valueOf(int type) |
static BreakType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
(返回具有指定名称的此类型的枚举常量。)
|
static BreakType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
(按照声明的顺序返回包含此枚举类型常量的数组。)
|
public static final BreakType PAGE
public static final BreakType COLUMN
If the current section is not divided into columns, or the column break occurs in the last column on the current page when displayed, then the restart location for text shall be the next page in the document.
(指定当文档在页面视图中显示时,当前中断应在当前页面上可用的下一列上重新开始。如果当前节没有分栏,或者显示时分栏出现在当前页的最后一栏,则文本的重新启动位置为文档的下一页。)public static final BreakType TEXT_WRAPPING
public static BreakType[] values()
for (BreakType c : BreakType.values()) System.out.println(c);(按照声明的顺序返回包含此枚举类型的常量的数组。此方法可用于迭代常量,如下所示: for (BreakType c : BreakType.values()) System.out.println(c);)
public static BreakType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
(name - 要返回的枚举常量的名称。)
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
(java.lang.IllegalArgumentException - 如果此枚举类型没有具有指定名称的常量)
java.lang.NullPointerException
- if the argument is null
(java.lang.NullPointerException - 如果参数为空)
public static BreakType valueOf(int type)
public int getValue()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.