public class FloatStyle extends Object implements DataStyle
| Constructor and Description |
|---|
FloatStyle(com.github.jferard.fastods.datastyle.NumberStyleHelper numberStyle,
int decimalPlaces)
Create a float style
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToElements(OdsElements odsElements)
Add this to OdsElements
|
void |
appendNumberTag(XMLUtil util,
Appendable appendable)
Append the number:number tag
|
void |
appendXMLContent(XMLUtil util,
Appendable appendable)
Write the XML format for this object.
|
String |
getName()
Get the name of this object.
|
boolean |
isHidden() |
public FloatStyle(com.github.jferard.fastods.datastyle.NumberStyleHelper numberStyle,
int decimalPlaces)
numberStyle - the embedded core data styledecimalPlaces - the number of digits after the separatorpublic void appendXMLContent(XMLUtil util, Appendable appendable) throws IOException
XMLConvertibleappendXMLContent in interface XMLConvertibleutil - a helper objectappendable - the appendable to append data toIOException - if the style can't be addedpublic void appendNumberTag(XMLUtil util, Appendable appendable) throws IOException
util - an utilappendable - the destinationIOException - if an I/O error occurspublic String getName()
NamedObjectgetName in interface NamedObjectpublic boolean isHidden()
public void addToElements(OdsElements odsElements)
AddableToOdsElementsaddToElements in interface AddableToOdsElementsodsElements - the OdsElements instance where to add this.Copyright © 2016–2021. All rights reserved.