Uses of Class
javafx.util.StringConverter
Packages that use StringConverter
Package
Description
Provides classes that create and operate on a
Binding
that calculates a value that depends on one or more sources.The package
javafx.beans.property
defines read-only
properties and writable properties, plus a number of implementations.The JavaFX User Interface provides a set of chart components that
are a very convenient way for data visualization.
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.
The
javafx.scene.control.cell
package is where all cell-related
classes are located, other than the core classes such as
Cell
, IndexedCell
,
ListCell
, TreeCell
,
and TableCell
.The javafx.scene.control.skin package is where the skin classes, typically
one for each UI control, are located
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 StringConverterModifier and TypeMethodDescriptionstatic <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 StringConverterModifier and TypeMethodDescription<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.chartModifier and TypeClassDescriptionstatic class
Default number formatter for NumberAxis, this stays in sync with auto-ranging and formats values appropriately.Methods in javafx.scene.chart that return StringConverterModifier and TypeMethodDescriptionfinal StringConverter<T>
ValueAxis.getTickLabelFormatter()
Gets the value of the property tickLabelFormatter.Methods in javafx.scene.chart that return types with arguments of type StringConverterModifier and TypeMethodDescriptionfinal ObjectProperty<StringConverter<T>>
ValueAxis.tickLabelFormatterProperty()
StringConverter used to format tick mark labels.Methods in javafx.scene.chart with parameters of type StringConverterModifier and TypeMethodDescriptionfinal 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 StringConverterModifier and TypeFieldDescriptionstatic final StringConverter<String>
TextFormatter.IDENTITY_STRING_CONVERTER
This string converter converts the text to the same String value.Methods in javafx.scene.control that return StringConverterModifier and TypeMethodDescriptionfinal StringConverter<T>
ChoiceBox.getConverter()
Gets the value of the property converter.final StringConverter<T>
ComboBox.getConverter()
Gets the value of the property converter.final StringConverter<LocalDate>
DatePicker.getConverter()
Gets the value of the property converter.final StringConverter<T>
SpinnerValueFactory.getConverter()
Gets the value of the property converter.final StringConverter<Double>
Slider.getLabelFormatter()
Gets the value of the property labelFormatter.final StringConverter<V>
TextFormatter.getValueConverter()
The converter between the values and text.Methods in javafx.scene.control that return types with arguments of type StringConverterModifier and TypeMethodDescriptionChoiceBox.converterProperty()
Allows a way to specify how to represent objects in the items list.ComboBox.converterProperty()
final ObjectProperty<StringConverter<LocalDate>>
DatePicker.converterProperty()
Converts the input text to an object of type LocalDate and vice versa.final ObjectProperty<StringConverter<T>>
SpinnerValueFactory.converterProperty()
final ObjectProperty<StringConverter<Double>>
Slider.labelFormatterProperty()
A function for formatting the label for a major tick.Methods in javafx.scene.control with parameters of type StringConverterModifier and TypeMethodDescriptionfinal void
ChoiceBox.setConverter
(StringConverter<T> value) Sets the value of the property converter.final void
ComboBox.setConverter
(StringConverter<T> value) Sets the value of the property converter.final void
DatePicker.setConverter
(StringConverter<LocalDate> value) Sets the value of the property converter.final void
SpinnerValueFactory.setConverter
(StringConverter<T> newValue) Sets the value of the property converter.final void
Slider.setLabelFormatter
(StringConverter<Double> value) Sets the value of the property labelFormatter.Constructors in javafx.scene.control with parameters of type StringConverterModifierConstructorDescriptionTextFormatter
(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 StringConverterModifier and TypeMethodDescriptionfinal StringConverter<T>
CheckBoxListCell.getConverter()
Returns theStringConverter
used in this cell.final StringConverter<T>
CheckBoxTableCell.getConverter()
Returns theStringConverter
used in this cell.final StringConverter<TreeItem<T>>
CheckBoxTreeCell.getConverter()
Returns theStringConverter
used in this cell.final StringConverter<T>
CheckBoxTreeTableCell.getConverter()
Returns theStringConverter
used in this cell.final StringConverter<T>
ChoiceBoxListCell.getConverter()
Returns theStringConverter
used in this cell.final StringConverter<T>
ChoiceBoxTableCell.getConverter()
Returns theStringConverter
used in this cell.final StringConverter<T>
ChoiceBoxTreeCell.getConverter()
Returns theStringConverter
used in this cell.final StringConverter<T>
ChoiceBoxTreeTableCell.getConverter()
Returns theStringConverter
used in this cell.final StringConverter<T>
ComboBoxListCell.getConverter()
Returns theStringConverter
used in this cell.final StringConverter<T>
ComboBoxTableCell.getConverter()
Returns theStringConverter
used in this cell.final StringConverter<T>
ComboBoxTreeCell.getConverter()
Returns theStringConverter
used in this cell.final StringConverter<T>
ComboBoxTreeTableCell.getConverter()
Returns theStringConverter
used in this cell.final StringConverter<T>
TextFieldListCell.getConverter()
Returns theStringConverter
used in this cell.final StringConverter<T>
TextFieldTableCell.getConverter()
Returns theStringConverter
used in this cell.final StringConverter<T>
TextFieldTreeCell.getConverter()
Returns theStringConverter
used in this cell.final StringConverter<T>
TextFieldTreeTableCell.getConverter()
Returns theStringConverter
used in this cell.Methods in javafx.scene.control.cell that return types with arguments of type StringConverterModifier and TypeMethodDescriptionfinal ObjectProperty<StringConverter<T>>
CheckBoxListCell.converterProperty()
TheStringConverter
property.final ObjectProperty<StringConverter<T>>
CheckBoxTableCell.converterProperty()
TheStringConverter
property.final ObjectProperty<StringConverter<TreeItem<T>>>
CheckBoxTreeCell.converterProperty()
TheStringConverter
property.final ObjectProperty<StringConverter<T>>
CheckBoxTreeTableCell.converterProperty()
TheStringConverter
property.final ObjectProperty<StringConverter<T>>
ChoiceBoxListCell.converterProperty()
TheStringConverter
property.final ObjectProperty<StringConverter<T>>
ChoiceBoxTableCell.converterProperty()
TheStringConverter
property.final ObjectProperty<StringConverter<T>>
ChoiceBoxTreeCell.converterProperty()
TheStringConverter
property.final ObjectProperty<StringConverter<T>>
ChoiceBoxTreeTableCell.converterProperty()
TheStringConverter
property.final ObjectProperty<StringConverter<T>>
ComboBoxListCell.converterProperty()
TheStringConverter
property.final ObjectProperty<StringConverter<T>>
ComboBoxTableCell.converterProperty()
TheStringConverter
property.final ObjectProperty<StringConverter<T>>
ComboBoxTreeCell.converterProperty()
TheStringConverter
property.final ObjectProperty<StringConverter<T>>
ComboBoxTreeTableCell.converterProperty()
TheStringConverter
property.final ObjectProperty<StringConverter<T>>
TextFieldListCell.converterProperty()
TheStringConverter
property.final ObjectProperty<StringConverter<T>>
TextFieldTableCell.converterProperty()
TheStringConverter
property.final ObjectProperty<StringConverter<T>>
TextFieldTreeCell.converterProperty()
TheStringConverter
property.final ObjectProperty<StringConverter<T>>
TextFieldTreeTableCell.converterProperty()
TheStringConverter
property.Methods in javafx.scene.control.cell with parameters of type StringConverterModifier and TypeMethodDescriptionCheckBoxListCell.forListView
(Callback<T, ObservableValue<Boolean>> getSelectedProperty, StringConverter<T> converter) Creates a cell factory for use in ListView controls.ChoiceBoxListCell.forListView
(StringConverter<T> converter, ObservableList<T> items) Creates a ChoiceBox cell factory for use inListView
controls.ChoiceBoxListCell.forListView
(StringConverter<T> converter, T... items) Creates a ChoiceBox cell factory for use inListView
controls.ComboBoxListCell.forListView
(StringConverter<T> converter, ObservableList<T> items) Creates a ComboBox cell factory for use inListView
controls.ComboBoxListCell.forListView
(StringConverter<T> converter, T... items) Creates a ComboBox cell factory for use inListView
controls.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.CheckBoxTreeCell.forTreeView
(Callback<TreeItem<T>, ObservableValue<Boolean>> getSelectedProperty, StringConverter<TreeItem<T>> converter) Creates a cell factory for use in a TreeView control.ChoiceBoxTreeCell.forTreeView
(StringConverter<T> converter, ObservableList<T> items) Creates a ChoiceBox cell factory for use inTreeView
controls.ChoiceBoxTreeCell.forTreeView
(StringConverter<T> converter, T... items) Creates a ChoiceBox cell factory for use inTreeView
controls.ComboBoxTreeCell.forTreeView
(StringConverter<T> converter, ObservableList<T> items) Creates a ComboBox cell factory for use inTreeView
controls.ComboBoxTreeCell.forTreeView
(StringConverter<T> converter, T... items) Creates a ComboBox cell factory for use inTreeView
controls.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.final void
CheckBoxListCell.setConverter
(StringConverter<T> value) Sets theStringConverter
to be used in this cell.final void
CheckBoxTableCell.setConverter
(StringConverter<T> value) Sets theStringConverter
to be used in this cell.final void
CheckBoxTreeCell.setConverter
(StringConverter<TreeItem<T>> value) Sets theStringConverter
to be used in this cell.final void
CheckBoxTreeTableCell.setConverter
(StringConverter<T> value) Sets theStringConverter
to be used in this cell.final void
ChoiceBoxListCell.setConverter
(StringConverter<T> value) Sets theStringConverter
to be used in this cell.final void
ChoiceBoxTableCell.setConverter
(StringConverter<T> value) Sets theStringConverter
to be used in this cell.final void
ChoiceBoxTreeCell.setConverter
(StringConverter<T> value) Sets theStringConverter
to be used in this cell.final void
ChoiceBoxTreeTableCell.setConverter
(StringConverter<T> value) Sets theStringConverter
to be used in this cell.final void
ComboBoxListCell.setConverter
(StringConverter<T> value) Sets theStringConverter
to be used in this cell.final void
ComboBoxTableCell.setConverter
(StringConverter<T> value) Sets theStringConverter
to be used in this cell.final void
ComboBoxTreeCell.setConverter
(StringConverter<T> value) Sets theStringConverter
to be used in this cell.final void
ComboBoxTreeTableCell.setConverter
(StringConverter<T> value) Sets theStringConverter
to be used in this cell.final void
TextFieldListCell.setConverter
(StringConverter<T> value) Sets theStringConverter
to be used in this cell.final void
TextFieldTableCell.setConverter
(StringConverter<T> value) Sets theStringConverter
to be used in this cell.final void
TextFieldTreeCell.setConverter
(StringConverter<T> value) Sets theStringConverter
to be used in this cell.final void
TextFieldTreeTableCell.setConverter
(StringConverter<T> value) Sets theStringConverter
to be used in this cell.Constructors in javafx.scene.control.cell with parameters of type StringConverterModifierConstructorDescriptionCheckBoxListCell
(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 StringConverterModifier and TypeMethodDescriptionprotected 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.converterModifier and TypeClassDescriptionclass
StringConverter
implementation forBigDecimal
values.class
StringConverter
implementation forBigInteger
values.class
StringConverter
implementation forBoolean
(and boolean primitive) values.class
StringConverter
implementation forByte
(and byte primitive) values.class
StringConverter
implementation forCharacter
(and char primitive) values.class
AStringConverter
implementation forNumber
values that represent currency.class
StringConverter
implementation forDate
values.class
StringConverter
implementation forDate
values that represent a date and time.class
StringConverter
implementation forString
values.class
StringConverter
implementation forDouble
(and double primitive) values.class
StringConverter
implementation forFloat
(and float primitive) values.class
StringConverter
implementation that can use aFormat
instance.class
StringConverter
implementation forInteger
(and int primitive) values.class
StringConverter
implementation forLocalDate
values.class
StringConverter
implementation forLocalDateTime
values.class
StringConverter
implementation forLocalTime
values.class
StringConverter
implementation forLong
(and long primitive) values.class
AStringConverter
implementation forNumber
values.class
AStringConverter
implementation forNumber
values that represent percentages.class
StringConverter
implementation forShort
values.class
StringConverter
implementation forDate
values that represent time.