Uses of Class
javafx.util.StringConverter
-
Packages that use StringConverter Package Description javafx.beans.binding Provides classes that create and operate on aBinding
that calculates a value that depends on one or more sources.javafx.beans.property The packagejavafx.beans.property
defines read-only properties and writable properties, plus a number of implementations.javafx.scene.chart The JavaFX User Interface provides a set of chart components that are a very convenient way for data visualization.javafx.scene.control The JavaFX User Interface Controls (UI Controls or just Controls) are specialized Nodes in the JavaFX Scenegraph especially suited for reuse in many different application contexts.javafx.scene.control.cell Thejavafx.scene.control.cell
package is where all cell-related classes are located, other than the core classes such asCell
,IndexedCell
,ListCell
,TreeCell
, andTableCell
.javafx.scene.control.skin The javafx.scene.control.skin package is where the skin classes, typically one for each UI control, are locatedjavafx.util.converter This package is for standard string converters for JavaFX. -
-
Uses of StringConverter in javafx.beans.binding
Methods in javafx.beans.binding with parameters of type StringConverter Modifier and Type Method Description static <T> void
Bindings. bindBidirectional(Property<String> stringProperty, Property<T> otherProperty, StringConverter<T> converter)
Generates a bidirectional binding (or "bind with inverse") between aString
-Property
and anotherProperty
using the specifiedStringConverter
for conversion. -
Uses of StringConverter in javafx.beans.property
Methods in javafx.beans.property with parameters of type StringConverter Modifier and Type Method Description <T> void
StringProperty. bindBidirectional(Property<T> other, StringConverter<T> converter)
Create a bidirectional binding between thisStringProperty
and another arbitrary property. -
Uses of StringConverter in javafx.scene.chart
Subclasses of StringConverter in javafx.scene.chart Modifier and Type Class Description static class
NumberAxis.DefaultFormatter
Default number formatter for NumberAxis, this stays in sync with auto-ranging and formats values appropriately.Methods in javafx.scene.chart that return StringConverter Modifier and Type Method Description StringConverter<T>
ValueAxis. getTickLabelFormatter()
Gets the value of the property tickLabelFormatter.Methods in javafx.scene.chart that return types with arguments of type StringConverter Modifier and Type Method Description ObjectProperty<StringConverter<T>>
ValueAxis. tickLabelFormatterProperty()
StringConverter used to format tick mark labels.Methods in javafx.scene.chart with parameters of type StringConverter Modifier and Type Method Description void
ValueAxis. setTickLabelFormatter(StringConverter<T> value)
Sets the value of the property tickLabelFormatter. -
Uses of StringConverter in javafx.scene.control
Fields in javafx.scene.control declared as StringConverter Modifier and Type Field Description static StringConverter<String>
TextFormatter. IDENTITY_STRING_CONVERTER
This string converter converts the text to the same String value.Methods in javafx.scene.control that return StringConverter Modifier and Type Method Description StringConverter<T>
ChoiceBox. getConverter()
Gets the value of the property converter.StringConverter<T>
ComboBox. getConverter()
Gets the value of the property converter.StringConverter<LocalDate>
DatePicker. getConverter()
Gets the value of the property converter.StringConverter<T>
SpinnerValueFactory. getConverter()
Gets the value of the property converter.StringConverter<Double>
Slider. getLabelFormatter()
Gets the value of the property labelFormatter.StringConverter<V>
TextFormatter. getValueConverter()
The converter between the values and text.Methods in javafx.scene.control that return types with arguments of type StringConverter Modifier and Type Method Description ObjectProperty<StringConverter<T>>
ChoiceBox. converterProperty()
Allows a way to specify how to represent objects in the items list.ObjectProperty<StringConverter<T>>
ComboBox. converterProperty()
ObjectProperty<StringConverter<LocalDate>>
DatePicker. converterProperty()
Converts the input text to an object of type LocalDate and vice versa.ObjectProperty<StringConverter<T>>
SpinnerValueFactory. converterProperty()
ObjectProperty<StringConverter<Double>>
Slider. labelFormatterProperty()
A function for formatting the label for a major tick.Methods in javafx.scene.control with parameters of type StringConverter Modifier and Type Method Description void
ChoiceBox. setConverter(StringConverter<T> value)
Sets the value of the property converter.void
ComboBox. setConverter(StringConverter<T> value)
Sets the value of the property converter.void
DatePicker. setConverter(StringConverter<LocalDate> value)
Sets the value of the property converter.void
SpinnerValueFactory. setConverter(StringConverter<T> newValue)
Sets the value of the property converter.void
Slider. setLabelFormatter(StringConverter<Double> value)
Sets the value of the property labelFormatter.Constructors in javafx.scene.control with parameters of type StringConverter Constructor Description TextFormatter(StringConverter<V> valueConverter)
Creates a new Formatter with the provided value converter.TextFormatter(StringConverter<V> valueConverter, V defaultValue)
Creates a new Formatter with the provided value converter and default value.TextFormatter(StringConverter<V> valueConverter, V defaultValue, UnaryOperator<TextFormatter.Change> filter)
Creates a new Formatter with the provided filter, value converter and default value. -
Uses of StringConverter in javafx.scene.control.cell
Methods in javafx.scene.control.cell that return StringConverter Modifier and Type Method Description StringConverter<T>
CheckBoxListCell. getConverter()
Returns theStringConverter
used in this cell.StringConverter<T>
CheckBoxTableCell. getConverter()
Returns theStringConverter
used in this cell.StringConverter<TreeItem<T>>
CheckBoxTreeCell. getConverter()
Returns theStringConverter
used in this cell.StringConverter<T>
CheckBoxTreeTableCell. getConverter()
Returns theStringConverter
used in this cell.StringConverter<T>
ChoiceBoxListCell. getConverter()
Returns theStringConverter
used in this cell.StringConverter<T>
ChoiceBoxTableCell. getConverter()
Returns theStringConverter
used in this cell.StringConverter<T>
ChoiceBoxTreeCell. getConverter()
Returns theStringConverter
used in this cell.StringConverter<T>
ChoiceBoxTreeTableCell. getConverter()
Returns theStringConverter
used in this cell.StringConverter<T>
ComboBoxListCell. getConverter()
Returns theStringConverter
used in this cell.StringConverter<T>
ComboBoxTableCell. getConverter()
Returns theStringConverter
used in this cell.StringConverter<T>
ComboBoxTreeCell. getConverter()
Returns theStringConverter
used in this cell.StringConverter<T>
ComboBoxTreeTableCell. getConverter()
Returns theStringConverter
used in this cell.StringConverter<T>
TextFieldListCell. getConverter()
Returns theStringConverter
used in this cell.StringConverter<T>
TextFieldTableCell. getConverter()
Returns theStringConverter
used in this cell.StringConverter<T>
TextFieldTreeCell. getConverter()
Returns theStringConverter
used in this cell.StringConverter<T>
TextFieldTreeTableCell. getConverter()
Returns theStringConverter
used in this cell.Methods in javafx.scene.control.cell with parameters of type StringConverter Modifier and Type Method Description static <T> Callback<ListView<T>,ListCell<T>>
CheckBoxListCell. forListView(Callback<T,ObservableValue<Boolean>> getSelectedProperty, StringConverter<T> converter)
Creates a cell factory for use in ListView controls.static <T> Callback<ListView<T>,ListCell<T>>
ChoiceBoxListCell. forListView(StringConverter<T> converter, ObservableList<T> items)
Creates a ChoiceBox cell factory for use inListView
controls.static <T> Callback<ListView<T>,ListCell<T>>
ChoiceBoxListCell. forListView(StringConverter<T> converter, T... items)
Creates a ChoiceBox cell factory for use inListView
controls.static <T> Callback<ListView<T>,ListCell<T>>
ComboBoxListCell. forListView(StringConverter<T> converter, ObservableList<T> items)
Creates a ComboBox cell factory for use inListView
controls.static <T> Callback<ListView<T>,ListCell<T>>
ComboBoxListCell. forListView(StringConverter<T> converter, T... items)
Creates a ComboBox cell factory for use inListView
controls.static <T> Callback<ListView<T>,ListCell<T>>
TextFieldListCell. forListView(StringConverter<T> converter)
Provides aTextField
that allows editing of the cell content when the cell is double-clicked, or whenListView.edit(int)
is called.static <S,T>
Callback<TableColumn<S,T>,TableCell<S,T>>CheckBoxTableCell. forTableColumn(Callback<Integer,ObservableValue<Boolean>> getSelectedProperty, StringConverter<T> converter)
Creates a cell factory for use in aTableColumn
cell factory.static <S,T>
Callback<TableColumn<S,T>,TableCell<S,T>>ChoiceBoxTableCell. forTableColumn(StringConverter<T> converter, ObservableList<T> items)
Creates a ChoiceBox cell factory for use inTableColumn
controls.static <S,T>
Callback<TableColumn<S,T>,TableCell<S,T>>ChoiceBoxTableCell. forTableColumn(StringConverter<T> converter, T... items)
Creates a ChoiceBox cell factory for use inTableColumn
controls.static <S,T>
Callback<TableColumn<S,T>,TableCell<S,T>>ComboBoxTableCell. forTableColumn(StringConverter<T> converter, ObservableList<T> items)
Creates a ComboBox cell factory for use inTableColumn
controls.static <S,T>
Callback<TableColumn<S,T>,TableCell<S,T>>ComboBoxTableCell. forTableColumn(StringConverter<T> converter, T... items)
Creates a ComboBox cell factory for use inTableColumn
controls.static <S,T>
Callback<TableColumn<S,T>,TableCell<S,T>>TextFieldTableCell. forTableColumn(StringConverter<T> converter)
Provides aTextField
that allows editing of the cell content when the cell is double-clicked, or whenTableView.edit(int, javafx.scene.control.TableColumn)
is called.static <S,T>
Callback<TreeTableColumn<S,T>,TreeTableCell<S,T>>CheckBoxTreeTableCell. forTreeTableColumn(Callback<Integer,ObservableValue<Boolean>> getSelectedProperty, StringConverter<T> converter)
Creates a cell factory for use in aTreeTableColumn
cell factory.static <S,T>
Callback<TreeTableColumn<S,T>,TreeTableCell<S,T>>ChoiceBoxTreeTableCell. forTreeTableColumn(StringConverter<T> converter, ObservableList<T> items)
Creates a ChoiceBox cell factory for use inTreeTableColumn
controls.static <S,T>
Callback<TreeTableColumn<S,T>,TreeTableCell<S,T>>ChoiceBoxTreeTableCell. forTreeTableColumn(StringConverter<T> converter, T... items)
Creates a ChoiceBox cell factory for use inTreeTableColumn
controls.static <S,T>
Callback<TreeTableColumn<S,T>,TreeTableCell<S,T>>ComboBoxTreeTableCell. forTreeTableColumn(StringConverter<T> converter, ObservableList<T> items)
Creates a ComboBox cell factory for use inTreeTableColumn
controls.static <S,T>
Callback<TreeTableColumn<S,T>,TreeTableCell<S,T>>ComboBoxTreeTableCell. forTreeTableColumn(StringConverter<T> converter, T... items)
Creates a ComboBox cell factory for use inTreeTableColumn
controls.static <S,T>
Callback<TreeTableColumn<S,T>,TreeTableCell<S,T>>TextFieldTreeTableCell. forTreeTableColumn(StringConverter<T> converter)
Provides aTextField
that allows editing of the cell content when the cell is double-clicked, or whenTreeTableView.edit(int, javafx.scene.control.TreeTableColumn)
is called.static <T> Callback<TreeView<T>,TreeCell<T>>
CheckBoxTreeCell. forTreeView(Callback<TreeItem<T>,ObservableValue<Boolean>> getSelectedProperty, StringConverter<TreeItem<T>> converter)
Creates a cell factory for use in a TreeView control.static <T> Callback<TreeView<T>,TreeCell<T>>
ChoiceBoxTreeCell. forTreeView(StringConverter<T> converter, ObservableList<T> items)
Creates a ChoiceBox cell factory for use inTreeView
controls.static <T> Callback<TreeView<T>,TreeCell<T>>
ChoiceBoxTreeCell. forTreeView(StringConverter<T> converter, T... items)
Creates a ChoiceBox cell factory for use inTreeView
controls.static <T> Callback<TreeView<T>,TreeCell<T>>
ComboBoxTreeCell. forTreeView(StringConverter<T> converter, ObservableList<T> items)
Creates a ComboBox cell factory for use inTreeView
controls.static <T> Callback<TreeView<T>,TreeCell<T>>
ComboBoxTreeCell. forTreeView(StringConverter<T> converter, T... items)
Creates a ComboBox cell factory for use inTreeView
controls.static <T> Callback<TreeView<T>,TreeCell<T>>
TextFieldTreeCell. forTreeView(StringConverter<T> converter)
Provides aTextField
that allows editing of the cell content when the cell is double-clicked, or whenTreeView.edit(javafx.scene.control.TreeItem)
is called.void
CheckBoxListCell. setConverter(StringConverter<T> value)
Sets theStringConverter
to be used in this cell.void
CheckBoxTableCell. setConverter(StringConverter<T> value)
Sets theStringConverter
to be used in this cell.void
CheckBoxTreeCell. setConverter(StringConverter<TreeItem<T>> value)
Sets theStringConverter
to be used in this cell.void
CheckBoxTreeTableCell. setConverter(StringConverter<T> value)
Sets theStringConverter
to be used in this cell.void
ChoiceBoxListCell. setConverter(StringConverter<T> value)
Sets theStringConverter
to be used in this cell.void
ChoiceBoxTableCell. setConverter(StringConverter<T> value)
Sets theStringConverter
to be used in this cell.void
ChoiceBoxTreeCell. setConverter(StringConverter<T> value)
Sets theStringConverter
to be used in this cell.void
ChoiceBoxTreeTableCell. setConverter(StringConverter<T> value)
Sets theStringConverter
to be used in this cell.void
ComboBoxListCell. setConverter(StringConverter<T> value)
Sets theStringConverter
to be used in this cell.void
ComboBoxTableCell. setConverter(StringConverter<T> value)
Sets theStringConverter
to be used in this cell.void
ComboBoxTreeCell. setConverter(StringConverter<T> value)
Sets theStringConverter
to be used in this cell.void
ComboBoxTreeTableCell. setConverter(StringConverter<T> value)
Sets theStringConverter
to be used in this cell.void
TextFieldListCell. setConverter(StringConverter<T> value)
Sets theStringConverter
to be used in this cell.void
TextFieldTableCell. setConverter(StringConverter<T> value)
Sets theStringConverter
to be used in this cell.void
TextFieldTreeCell. setConverter(StringConverter<T> value)
Sets theStringConverter
to be used in this cell.void
TextFieldTreeTableCell. setConverter(StringConverter<T> value)
Sets theStringConverter
to be used in this cell.Constructors in javafx.scene.control.cell with parameters of type StringConverter Constructor Description CheckBoxListCell(Callback<T,ObservableValue<Boolean>> getSelectedProperty, StringConverter<T> converter)
Creates a CheckBoxListCell with a custom string converter.CheckBoxTableCell(Callback<Integer,ObservableValue<Boolean>> getSelectedProperty, StringConverter<T> converter)
Creates a CheckBoxTableCell with a custom string converter.CheckBoxTreeCell(Callback<TreeItem<T>,ObservableValue<Boolean>> getSelectedProperty, StringConverter<TreeItem<T>> converter)
Creates aCheckBoxTreeCell
for use in a TreeView control via a cell factory.CheckBoxTreeTableCell(Callback<Integer,ObservableValue<Boolean>> getSelectedProperty, StringConverter<T> converter)
Creates a CheckBoxTreeTableCell with a custom string converter.ChoiceBoxListCell(StringConverter<T> converter, ObservableList<T> items)
Creates aChoiceBoxListCell
instance with the given items being used to populate theChoiceBox
when it is shown, and theStringConverter
being used to convert the item in to a user-readable form.ChoiceBoxListCell(StringConverter<T> converter, T... items)
Creates aChoiceBoxListCell
instance with the given items being used to populate theChoiceBox
when it is shown, and theStringConverter
being used to convert the item in to a user-readable form.ChoiceBoxTableCell(StringConverter<T> converter, ObservableList<T> items)
Creates aChoiceBoxTableCell
instance with the given items being used to populate theChoiceBox
when it is shown, and theStringConverter
being used to convert the item in to a user-readable form.ChoiceBoxTableCell(StringConverter<T> converter, T... items)
Creates aChoiceBoxTableCell
instance with the given items being used to populate theChoiceBox
when it is shown, and theStringConverter
being used to convert the item in to a user-readable form.ChoiceBoxTreeCell(StringConverter<T> converter, ObservableList<T> items)
Creates aChoiceBoxTreeCell
instance with the given items being used to populate theChoiceBox
when it is shown, and theStringConverter
being used to convert the item in to a user-readable form.ChoiceBoxTreeCell(StringConverter<T> converter, T... items)
Creates aChoiceBoxTreeCell
instance with the given items being used to populate theChoiceBox
when it is shown, and theStringConverter
being used to convert the item in to a user-readable form.ChoiceBoxTreeTableCell(StringConverter<T> converter, ObservableList<T> items)
Creates aChoiceBoxTreeTableCell
instance with the given items being used to populate theChoiceBox
when it is shown, and theStringConverter
being used to convert the item in to a user-readable form.ChoiceBoxTreeTableCell(StringConverter<T> converter, T... items)
Creates aChoiceBoxTreeTableCell
instance with the given items being used to populate theChoiceBox
when it is shown, and theStringConverter
being used to convert the item in to a user-readable form.ComboBoxListCell(StringConverter<T> converter, ObservableList<T> items)
Creates aComboBoxListCell
instance with the given items being used to populate theComboBox
when it is shown, and theStringConverter
being used to convert the item in to a user-readable form.ComboBoxListCell(StringConverter<T> converter, T... items)
Creates aComboBoxListCell
instance with the given items being used to populate theComboBox
when it is shown, and theStringConverter
being used to convert the item in to a user-readable form.ComboBoxTableCell(StringConverter<T> converter, ObservableList<T> items)
Creates aComboBoxTableCell
instance with the given items being used to populate theComboBox
when it is shown, and theStringConverter
being used to convert the item in to a user-readable form.ComboBoxTableCell(StringConverter<T> converter, T... items)
Creates aComboBoxTableCell
instance with the given items being used to populate theComboBox
when it is shown, and theStringConverter
being used to convert the item in to a user-readable form.ComboBoxTreeCell(StringConverter<T> converter, ObservableList<T> items)
Creates aComboBoxTreeCell
instance with the given items being used to populate theComboBox
when it is shown, and theStringConverter
being used to convert the item in to a user-readable form.ComboBoxTreeCell(StringConverter<T> converter, T... items)
Creates aComboBoxTreeCell
instance with the given items being used to populate theComboBox
when it is shown, and theStringConverter
being used to convert the item in to a user-readable form.ComboBoxTreeTableCell(StringConverter<T> converter, ObservableList<T> items)
Creates aComboBoxTreeTableCell
instance with the given items being used to populate theComboBox
when it is shown, and theStringConverter
being used to convert the item in to a user-readable form.ComboBoxTreeTableCell(StringConverter<T> converter, T... items)
Creates aComboBoxTreeTableCell
instance with the given items being used to populate theComboBox
when it is shown, and theStringConverter
being used to convert the item in to a user-readable form.TextFieldListCell(StringConverter<T> converter)
Creates a TextFieldListCell that provides aTextField
when put into editing mode that allows editing of the cell content.TextFieldTableCell(StringConverter<T> converter)
Creates a TextFieldTableCell that provides aTextField
when put into editing mode that allows editing of the cell content.TextFieldTreeCell(StringConverter<T> converter)
Creates a TextFieldTreeCell that provides aTextField
when put into editing mode that allows editing of the cell content.TextFieldTreeTableCell(StringConverter<T> converter)
Creates a TextFieldTreeTableCell that provides aTextField
when put into editing mode that allows editing of the cell content. -
Uses of StringConverter in javafx.scene.control.skin
Methods in javafx.scene.control.skin that return StringConverter Modifier and Type Method Description protected StringConverter<Color>
ColorPickerSkin. getConverter()
Subclasses are responsible for getting the converter.protected StringConverter<T>
ComboBoxListViewSkin. getConverter()
Subclasses are responsible for getting the converter.protected abstract StringConverter<T>
ComboBoxPopupControl. getConverter()
Subclasses are responsible for getting the converter.protected StringConverter<LocalDate>
DatePickerSkin. getConverter()
Subclasses are responsible for getting the converter. -
Uses of StringConverter in javafx.util.converter
Subclasses of StringConverter in javafx.util.converter Modifier and Type Class Description class
BigDecimalStringConverter
StringConverter
implementation forBigDecimal
values.class
BigIntegerStringConverter
StringConverter
implementation forBigInteger
values.class
BooleanStringConverter
StringConverter
implementation forBoolean
(and boolean primitive) values.class
ByteStringConverter
StringConverter
implementation forByte
(and byte primitive) values.class
CharacterStringConverter
StringConverter
implementation forCharacter
(and char primitive) values.class
CurrencyStringConverter
StringConverter
implementation forNumber
values that represent currency.class
DateStringConverter
StringConverter
implementation forDate
values.class
DateTimeStringConverter
StringConverter
implementation forDate
values that represent a date and time.class
DefaultStringConverter
StringConverter
implementation forString
values.class
DoubleStringConverter
StringConverter
implementation forDouble
(and double primitive) values.class
FloatStringConverter
StringConverter
implementation forFloat
(and float primitive) values.class
FormatStringConverter<T>
StringConverter
implementation that can use aFormat
instance.class
IntegerStringConverter
StringConverter
implementation forInteger
(and int primitive) values.class
LocalDateStringConverter
StringConverter
implementation forLocalDate
values.class
LocalDateTimeStringConverter
StringConverter
implementation forLocalDateTime
values.class
LocalTimeStringConverter
StringConverter
implementation forLocalTime
values.class
LongStringConverter
StringConverter
implementation forLong
(and long primitive) values.class
NumberStringConverter
StringConverter
implementation forNumber
values.class
PercentageStringConverter
StringConverter
implementation forNumber
values that represent percentages.class
ShortStringConverter
StringConverter
implementation forShort
values.class
TimeStringConverter
StringConverter
implementation forDate
values that represent time.
-