public class DateField extends Field
drawingShape, formElement, mElement, mFormProperties| Modifier and Type | Method and Description |
|---|---|
void |
formatDate(String formatStr,
Locale locale)
Format the date value according to the appointed format and locale.
|
String |
getDateFormat()
Get the format code which is used to format the display value
|
static DateField |
getInstanceOf(FormFormattedTextElement element)
Get an instance of date field by an instance of FormFormattedTextElement, while searching the
document content to make a bind with the DrawControl which already reference to this date
field.
|
void |
setDropDownVisible(boolean isVisible)
Set the visibility of the drop-down button.
|
getCurrentValue, getFormatString, getId, getName, getSimpleIterator, getValue, setControlImplementation, setCurrentValue, setFormatString, setId, setName, setSpinButonVisible, setValuegetDrawControl, getOdfElement, getRectangle, remove, setAnchorType, setFormProperty, setRectanglegetComponentByElement, getOwnerDocument, registerComponent, unregisterComponentpublic static DateField getInstanceOf(FormFormattedTextElement element)
element - - an instance of FormFormattedTextElementpublic void setDropDownVisible(boolean isVisible)
isVisible - - the visibility of drop-down button.public void formatDate(String formatStr, Locale locale)
formatStr - - format codelocale - - locale informationpublic String getDateFormat()
Copyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.