Class FloatStringConverter
A
StringConverter implementation for Float (and float) values. Formatting is done by Float.toString() for
non-null values, and parsing with Float.valueOf(String) for non-null non-empty strings.- Since:
- JavaFX 2.1
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FloatStringConverter
public FloatStringConverter()Creates a defaultFloatStringConverter.
-
-
Method Details
-
fromString
-
toString
Converts an object to a string form. The format of the returned string is defined by the specific converter.nullis converted to an empty string, otherwise the type'stoStringis used.- Parameters:
value- the object of typeTto convert- Returns:
- a string representation of the object passed in
-