public class DateField extends Field
Field.FieldType| Modifier and Type | Method and Description |
|---|---|
void |
formatDate(String formatString)
Set the format of this date field.
|
Field.FieldType |
getFieldType()
Return the type of this field.
|
TextDateElement |
getOdfElement()
Return an instance of
TextDateElement which represents this feature. |
void |
setFixed(boolean isFixed)
Set whether the date value of this field is fixed.
|
getComponentByElement, getOwnerDocument, registerComponent, unregisterComponentpublic void formatDate(String formatString)
SimpleDateFormat.formatString - the format string of this date.SimpleDateFormatpublic void setFixed(boolean isFixed)
isFixed - if true, the date value shall be preserved, otherwise it may be
replaced with a new value in future edits.public TextDateElement getOdfElement()
TextDateElement which represents this feature.getOdfElement in class ComponentTextDateElementpublic Field.FieldType getFieldType()
FieldgetFieldType in class FieldCopyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.