org.odftoolkit.simple.common.field
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, unregisterComponent
public 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 Component
TextChapterElement
public Field.FieldType getFieldType()
Field
getFieldType
in class Field
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.