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, unregisterComponent
public void setNumberFormat(NumberFormat format)
format
- the format which is predefined in
NumberFormat
.NumberFormat
public TextPageCountElement getOdfElement()
TextPageCountElement
which represents
this feature.getOdfElement
in class Component
TextPageCountElement
public Field.FieldType getFieldType()
Field
getFieldType
in class Field
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.