public static class CustomSpinnerDateModel.SpinnerDateDocument extends PlainDocument implements Internationalization
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement| Modifier and Type | Field and Description |
|---|---|
protected Date |
currentDate |
protected Timestamp |
currentTimestamp |
protected SimpleDateFormat |
dateFormat |
protected String |
datePattern |
protected static Locale |
defaultLocale |
protected Locale |
locale |
lineLimitAttribute, tabSizeAttributeBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameDEBUG_LANGUAGEStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
CustomSpinnerDateModel.SpinnerDateDocument() |
CustomSpinnerDateModel.SpinnerDateDocument(String datePattern) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated.
|
void |
setComponentLocale(Locale l) |
void |
setResourceBundle(ResourceBundle resourceBundle)
Sets the language resource bundle.
|
void |
setValue(Date value) |
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertString, insertUpdate, removeUpdateaddDocumentListener, addUndoableEditListener, createBranchElement, createLeafElement, createPosition, dump, fireChangedUpdate, fireInsertUpdate, fireRemoveUpdate, fireUndoableEditUpdate, getAsynchronousLoadPriority, getAttributeContext, getBidiRootElement, getContent, getCurrentWriter, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, postRemoveUpdate, putProperty, readLock, readUnlock, remove, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlockprotected static Locale defaultLocale
protected SimpleDateFormat dateFormat
protected String datePattern
protected Date currentDate
protected Timestamp currentTimestamp
protected Locale locale
public CustomSpinnerDateModel.SpinnerDateDocument()
public CustomSpinnerDateModel.SpinnerDateDocument(String datePattern)
public void setValue(Date value)
public void setComponentLocale(Locale l)
setComponentLocale in interface Internationalizationpublic Vector getTextsToTranslate()
InternationalizationgetTextsToTranslate in interface Internationalizationpublic void setResourceBundle(ResourceBundle resourceBundle)
InternationalizationsetResourceBundle in interface InternationalizationresourceBundle - the new language bundle.Copyright © 2016 Imatia Innovation S.L.. All rights reserved.