org.jopendocument.dom.style.data
Class NumberStyle

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.NumberStyle

public class NumberStyle
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
NumberStyle(ODPackage pkg, org.jdom.Element elem)
           
 
Method Summary
protected  Number convertNonNull(Object value)
           
 String format(Object o, CellStyle defaultStyle, boolean lenient)
           
static Number toNumber(Object value, ODEpoch epoch)
           
 
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

NumberStyle

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

toNumber

public static final Number toNumber(Object value,
                                    ODEpoch epoch)

convertNonNull

protected Number convertNonNull(Object value)
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.