|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.io.output.AbstractSpreadSheetWriter
adams.data.io.output.AbstractMultiSheetSpreadSheetWriter
adams.data.io.output.AbstractMultiSheetSpreadSheetWriterWithMissingValueSupport
adams.data.io.output.AbstractMultiSheetFormattedSpreadSheetWriter
public abstract class AbstractMultiSheetFormattedSpreadSheetWriter
Ancestor for writers that format the numbers.
| Field Summary | |
|---|---|
protected NumberFormat |
m_Formatter
the formatter to use. |
protected Locale |
m_Locale
the locale to use. |
protected String |
m_NumberFormat
The format for the numbers. |
| Fields inherited from class adams.data.io.output.AbstractMultiSheetSpreadSheetWriterWithMissingValueSupport |
|---|
m_MissingValue |
| Fields inherited from class adams.data.io.output.AbstractMultiSheetSpreadSheetWriter |
|---|
m_SheetPrefix |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractMultiSheetFormattedSpreadSheetWriter()
|
|
| Method Summary | |
|---|---|
void |
defineOptions()
Adds options to the internal list of options. |
protected String |
format(double value)
Formats the number according to the format and returns the generated textual representation. |
protected String |
getDefaultNumberFormat()
Returns the default number format. |
Locale |
getLocale()
Returns the locale in use. |
String |
getNumberFormat()
Returns the number format. |
String |
localeTipText()
Returns the tip text for this property. |
String |
numberFormatTipText()
Returns the tip text for this property. |
void |
setLocale(Locale value)
Sets the locale to use. |
void |
setNumberFormat(String value)
Sets the number format. |
| Methods inherited from class adams.data.io.output.AbstractMultiSheetSpreadSheetWriterWithMissingValueSupport |
|---|
getDefaultMissingValue, getMissingValue, missingValueTipText, setMissingValue |
| Methods inherited from class adams.data.io.output.AbstractMultiSheetSpreadSheetWriter |
|---|
doWrite, doWrite, doWrite, doWrite, getDefaultSheetPrefix, getSheetPrefix, setSheetPrefix, sheetPrefixTipText, write, write, write, write |
| Methods inherited from class adams.data.io.output.AbstractSpreadSheetWriter |
|---|
getFormatDescription, getFormatExtensions, getUseOutputStream, getWriters, write, write, write, write |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface adams.data.io.output.SpreadSheetWriter |
|---|
getFormatDescription, getFormatExtensions, write, write, write, write |
| Methods inherited from interface adams.core.option.OptionHandler |
|---|
cleanUpOptions, getOptionManager |
| Methods inherited from interface adams.core.Destroyable |
|---|
destroy |
| Field Detail |
|---|
protected Locale m_Locale
protected String m_NumberFormat
protected transient NumberFormat m_Formatter
| Constructor Detail |
|---|
public AbstractMultiSheetFormattedSpreadSheetWriter()
| Method Detail |
|---|
public void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractMultiSheetSpreadSheetWriterWithMissingValueSupportpublic void setLocale(Locale value)
value - the localepublic Locale getLocale()
public String localeTipText()
protected String getDefaultNumberFormat()
public void setNumberFormat(String value)
value - the formatpublic String getNumberFormat()
public String numberFormatTipText()
protected String format(double value)
value - the double value to turn into a string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||