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(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, setValue
getDrawControl, getOdfElement, getRectangle, remove, setAnchorType, setFormProperty, setRectangle
getComponentByElement, getOwnerDocument, registerComponent, unregisterComponent
public static TimeField getInstanceOf(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.SimpleDateFormat
public String getTimeFormat()
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.