Class AbstractFormattedSpreadSheetWriter

    • Field Detail

      • m_Locale

        protected Locale m_Locale
        the locale to use.
      • m_NumberFormat

        protected String m_NumberFormat
        The format for the numbers.
      • m_Formatter

        protected transient NumberFormat m_Formatter
        the formatter to use.
    • Constructor Detail

      • AbstractFormattedSpreadSheetWriter

        public AbstractFormattedSpreadSheetWriter()
    • Method Detail

      • setLocale

        public void setLocale​(Locale value)
        Sets the locale to use.
        Specified by:
        setLocale in interface LocaleSupporter
        Parameters:
        value - the locale
      • localeTipText

        public String localeTipText()
        Returns the tip text for this property.
        Specified by:
        localeTipText in interface OptionHandlingLocaleSupporter
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getDefaultNumberFormat

        protected String getDefaultNumberFormat()
        Returns the default number format.
        Returns:
        the default format
      • setNumberFormat

        public void setNumberFormat​(String value)
        Sets the number format.
        Parameters:
        value - the format
      • getNumberFormat

        public String getNumberFormat()
        Returns the number format.
        Returns:
        the format
      • numberFormatTipText

        public String numberFormatTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the explorer/experimenter gui
      • getDefaultUseSimpleNumberFormat

        protected boolean getDefaultUseSimpleNumberFormat()
        Returns the default for the simple number format.
        Returns:
        the default
      • format

        protected String format​(double value)
        Formats the number according to the format and returns the generated textual representation.
        Parameters:
        value - the double value to turn into a string
        Returns:
        the generated string