public class TimeField extends Field
drawingShape, formElement, mElement, mFormProperties| Modifier and Type | Method and Description |
|---|---|
void |
formatTime(String formatStr,
Locale locale)
Set the format of this time field.
|
static TimeField |
getInstanceOf(org.odftoolkit.odfdom.dom.element.form.FormFormattedTextElement element)
Get an instance of time field by an instance of FormFormattedTextElement,
while searching the document content to make a bind with the DrawControl
which already reference to this time field.
|
String |
getTimeFormat()
Get the format code which is used to format the display value
|
void |
setTimeFormat(String formatStr,
Locale locale)
Format the time value according to the appointed format and locale.
|
getCurrentValue, getFormatString, getId, getName, getSimpleIterator, getValue, setControlImplementation, setCurrentValue, setFormatString, setId, setName, setSpinButonVisible, setValuegetDrawControl, getOdfElement, getRectangle, remove, setAnchorType, setFormProperty, setRectanglegetComponentByElement, getOwnerDocument, registerComponent, unregisterComponentpublic static TimeField getInstanceOf(org.odftoolkit.odfdom.dom.element.form.FormFormattedTextElement element)
element - - an instance of FormFormattedTextElementpublic void setTimeFormat(String formatStr, Locale locale)
formatStr - - format codelocale - - locale informationpublic void formatTime(String formatStr, Locale locale)
SimpleDateFormat.formatStr - the format string of this date.SimpleDateFormatpublic String getTimeFormat()
Copyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2019 The Document Foundation. All rights reserved.