org.jopendocument.dom.style.data
Class BooleanStyle

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

public class BooleanStyle
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
BooleanStyle(ODPackage pkg, org.jdom.Element elem)
           
 
Method Summary
protected  Boolean convertNonNull(Object o)
           
 String format(Object o, CellStyle defaultStyle, boolean lenient)
           
static Boolean toBoolean(Object o)
           
static String toString(boolean b, Locale locale, boolean lenient)
           
 
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

BooleanStyle

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

toBoolean

public static final Boolean toBoolean(Object o)

toString

public static final String toString(boolean b,
                                    Locale locale,
                                    boolean lenient)

convertNonNull

protected Boolean 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.