Ontimize 5.2072EN

com.ontimize.gui.field.spinner
Class CustomSpinnerDateModel.SpinnerDateDocument

java.lang.Object
  extended byjavax.swing.text.AbstractDocument
      extended byjavax.swing.text.PlainDocument
          extended bycom.ontimize.gui.field.spinner.CustomSpinnerDateModel.SpinnerDateDocument
All Implemented Interfaces:
javax.swing.text.Document, Internationalization, java.io.Serializable
Enclosing class:
CustomSpinnerDateModel

public static class CustomSpinnerDateModel.SpinnerDateDocument
extends javax.swing.text.PlainDocument
implements Internationalization

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.text.AbstractDocument
javax.swing.text.AbstractDocument.AbstractElement, javax.swing.text.AbstractDocument.AttributeContext, javax.swing.text.AbstractDocument.BranchElement, javax.swing.text.AbstractDocument.Content, javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AbstractDocument.ElementEdit, javax.swing.text.AbstractDocument.LeafElement
 
Field Summary
protected  java.util.Date currentDate
           
protected  java.sql.Timestamp currentTimestamp
           
protected  java.text.SimpleDateFormat dateFormat
           
protected  java.lang.String datePattern
           
protected static java.util.Locale defaultLocale
           
protected  java.util.Locale locale
           
 
Fields inherited from class javax.swing.text.PlainDocument
lineLimitAttribute, tabSizeAttribute
 
Fields inherited from class javax.swing.text.AbstractDocument
BAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementName
 
Fields inherited from interface com.ontimize.gui.i18n.Internationalization
DEBUG_LANGUAGE
 
Fields inherited from interface javax.swing.text.Document
StreamDescriptionProperty, TitleProperty
 
Constructor Summary
CustomSpinnerDateModel.SpinnerDateDocument()
           
CustomSpinnerDateModel.SpinnerDateDocument(java.lang.String datePattern)
           
 
Method Summary
 java.util.Vector getTextsToTranslate()
          Returns all the texts in the element suitable for being translated.
 void setComponentLocale(java.util.Locale l)
           
 void setResourceBundle(java.util.ResourceBundle resourceBundle)
          Sets the language resource bundle.
 void setValue(java.util.Date value)
           
 
Methods inherited from class javax.swing.text.PlainDocument
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertString, insertUpdate, removeUpdate
 
Methods inherited from class javax.swing.text.AbstractDocument
addDocumentListener, 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, writeUnlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultLocale

protected static java.util.Locale defaultLocale

dateFormat

protected java.text.SimpleDateFormat dateFormat

datePattern

protected java.lang.String datePattern

currentDate

protected java.util.Date currentDate

currentTimestamp

protected java.sql.Timestamp currentTimestamp

locale

protected java.util.Locale locale
Constructor Detail

CustomSpinnerDateModel.SpinnerDateDocument

public CustomSpinnerDateModel.SpinnerDateDocument()

CustomSpinnerDateModel.SpinnerDateDocument

public CustomSpinnerDateModel.SpinnerDateDocument(java.lang.String datePattern)
Method Detail

setValue

public void setValue(java.util.Date value)

setComponentLocale

public void setComponentLocale(java.util.Locale l)
Specified by:
setComponentLocale in interface Internationalization

getTextsToTranslate

public java.util.Vector getTextsToTranslate()
Description copied from interface: Internationalization
Returns all the texts in the element suitable for being translated.

Specified by:
getTextsToTranslate in interface Internationalization
Returns:
all the texts in the element suitable for being translated.

setResourceBundle

public void setResourceBundle(java.util.ResourceBundle resourceBundle)
Description copied from interface: Internationalization
Sets the language resource bundle. When the application changes the configured language, for all the objects that implement this interface this method must be called with the new file.
The method must translate all the elements that have texts in the GUI

Specified by:
setResourceBundle in interface Internationalization
Parameters:
resourceBundle - the new language bundle.

Ontimize