public class ChapterField extends Field
NOTE: Before the document is opened in any editor, the value of this field maybe invalid.
| Modifier and Type | Class and Description |
|---|---|
static class |
ChapterField.DisplayType
A DisplayType specifies the information that a chapter field should display.
|
Field.FieldType| Modifier and Type | Method and Description |
|---|---|
Field.FieldType |
getFieldType()
Return the type of this field.
|
TextChapterElement |
getOdfElement()
Return an instance of
TextChapterElement which represents this feature. |
void |
setDisplayPage(ChapterField.DisplayType type)
Specifies the information that a chapter field should display.
|
void |
setOutlineLevel(int level)
Specifies the outline level to be displayed.
|
getComponentByElement, getOwnerDocument, registerComponent, unregisterComponentpublic void setDisplayPage(ChapterField.DisplayType type)
type - the display type which is predefined in DisplayType.public void setOutlineLevel(int level)
level - the outline level to be displayed.public TextChapterElement getOdfElement()
TextChapterElement which represents this feature.getOdfElement in class ComponentTextChapterElementpublic Field.FieldType getFieldType()
FieldgetFieldType in class FieldCopyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.