org.jopendocument.dom.style.data
Class DateStyle

java.lang.Object
  extended by org.jopendocument.dom.ODNode
      extended by org.jopendocument.dom.Style
          extended by org.jopendocument.dom.style.data.DataStyle
              extended by org.jopendocument.dom.style.data.DateStyle

public class DateStyle
extends DataStyle


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jopendocument.dom.style.data.DataStyle
DataStyle.DataStyleDesc<S extends DataStyle>
 
Field Summary
 
Fields inherited from class org.jopendocument.dom.style.data.DataStyle
DATA_STYLES, DEFAULT_DECIMAL_PLACES
 
Constructor Summary
DateStyle(ODPackage pkg, org.jdom.Element elem)
           
 
Method Summary
protected  Object convertNonNull(Object o)
           
 String format(Object o, CellStyle defaultStyle, boolean lenient)
           
static Locale getLocale(org.jdom.Element elem)
           
 
Methods inherited from class org.jopendocument.dom.style.data.DataStyle
addStringLiteral, canFormat, convert, formatNumberOrScientificNumber, formatNumberOrScientificNumber, getDataType, getDecimalPlaces, getDesc, getEpoch, getTextProperties, getTitle, registerDesc, reportError
 
Methods inherited from class org.jopendocument.dom.Style
checkElemName, dup, equals, getDesc, getFormattingProperties, getFormattingProperties, getFormattingProperties, getName, getNonNullStyleDesc, getNS, getPackage, getReferencedStyle, getReferencedStyleElement, getReferences, getSTYLE, getStyle, getStyleDesc, getStyleStyleDesc, hashCode, isReferencedAtMostOnce, isStandardStyleResolution, register, registerAllVersions, setStandardStyleResolution, warp
 
Methods inherited from class org.jopendocument.dom.ODNode
getElement, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateStyle

public DateStyle(ODPackage pkg,
                 org.jdom.Element elem)
Method Detail

getLocale

public static final Locale getLocale(org.jdom.Element elem)

convertNonNull

protected Object convertNonNull(Object o)
Specified by:
convertNonNull in class DataStyle

format

public String format(Object o,
                     CellStyle defaultStyle,
                     boolean lenient)
Specified by:
format in class DataStyle


Copyright © 2010 jOpenDocument All Rights Reserved.