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