public class PageCountField extends Field
NOTE: Before the document is opened in any editor, the value of this field maybe invalid.
Field.FieldType| Modifier and Type | Method and Description |
|---|---|
Field.FieldType |
getFieldType()
Return the type of this field.
|
TextPageCountElement |
getOdfElement()
Return an instance of
TextPageCountElement which represents this feature. |
void |
setNumberFormat(NumberFormat format)
Specifies the number format of this field.
|
getComponentByElement, getOwnerDocument, registerComponent, unregisterComponentpublic void setNumberFormat(NumberFormat format)
format - the format which is predefined in NumberFormat.NumberFormatpublic TextPageCountElement getOdfElement()
TextPageCountElement which represents this feature.getOdfElement in class ComponentTextPageCountElementpublic Field.FieldType getFieldType()
FieldgetFieldType in class FieldCopyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.