Top Description Fields Constructors Methods
org.controlsfx.control.spreadsheet

public abstract Class StringConverterWithFormat<T>

extends StringConverter<T>
Class Inheritance
Imports
javafx.util.StringConverter

This class is used by some of the SpreadsheetCellType in order to use a specific format.
Since the format is specified in the SpreadsheetCell, we need a converter which provide a runtime method toStringFormat(Object, String).
This class provide two constructors:
See Also
SpreadsheetCellType

Field Summary

Modifier and TypeField and Description
protected StringConverter<T>

Constructor Summary

AccessConstructor and Description
public
StringConverterWithFormat()

Default constructor.

public
StringConverterWithFormat(StringConverter<T> specificStringConverter)

This constructor allow to use another StringConverter.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

a string containing the converted value with the specified format.
toStringFormat
(T value, String format)

Converts the object provided into its string form with the specified format.

Inherited from javafx.util.StringConverter:
fromStringtoString

Field Detail

myConverterback to summary
protected StringConverter<T> myConverter

Constructor Detail

StringConverterWithFormatback to summary
public StringConverterWithFormat()

Default constructor.

StringConverterWithFormatback to summary
public StringConverterWithFormat(StringConverter<T> specificStringConverter)

This constructor allow to use another StringConverter.

Method Detail

toStringFormatback to summary
public String toStringFormat(T value, String format)

Converts the object provided into its string form with the specified format.

Returns:String

a string containing the converted value with the specified format.