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> voidBindings.bindBidirectional(Property<String> stringProperty, Property<T> otherProperty, StringConverter<T> converter) Generates a bidirectional binding (or "bind with inverse") between aString-Propertyand anotherPropertyusing the specifiedStringConverterfor conversion. -
Uses of StringConverter in javafx.beans.property
Methods in javafx.beans.property with parameters of type StringConverterModifier and TypeMethodDescription<T> voidStringProperty.bindBidirectional(Property<T> other, StringConverter<T> converter) Create a bidirectional binding between thisStringPropertyand another arbitrary property. -
Uses of StringConverter in javafx.scene.chart
Subclasses of StringConverter in javafx.scene.chartModifier and TypeClassDescriptionstatic classDefault 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 thetickLabelFormatterproperty.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 voidValueAxis.setTickLabelFormatter(StringConverter<T> value) Sets the value of thetickLabelFormatterproperty. -
Uses of StringConverter in javafx.scene.control
Fields in javafx.scene.control declared as StringConverterModifier and TypeFieldDescriptionstatic final StringConverter<String> TextFormatter.IDENTITY_STRING_CONVERTERThis 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 theconverterproperty.final StringConverter<T> ComboBox.getConverter()Gets the value of theconverterproperty.final StringConverter<LocalDate> DatePicker.getConverter()Gets the value of theconverterproperty.final StringConverter<T> SpinnerValueFactory.getConverter()Gets the value of theconverterproperty.final StringConverter<Double> Slider.getLabelFormatter()Gets the value of thelabelFormatterproperty.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 TypeMethodDescriptionfinal ObjectProperty<StringConverter<T>> ChoiceBox.converterProperty()Allows a way to specify how to represent objects in the items list.final ObjectProperty<StringConverter<T>> 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 voidChoiceBox.setConverter(StringConverter<T> value) Sets the value of theconverterproperty.final voidComboBox.setConverter(StringConverter<T> value) Sets the value of theconverterproperty.final voidDatePicker.setConverter(StringConverter<LocalDate> value) Sets the value of theconverterproperty.final voidSpinnerValueFactory.setConverter(StringConverter<T> newValue) Sets the value of theconverterproperty.final voidSlider.setLabelFormatter(StringConverter<Double> value) Sets the value of thelabelFormatterproperty.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 theStringConverterused in this cell.final StringConverter<T> CheckBoxTableCell.getConverter()Returns theStringConverterused in this cell.final StringConverter<TreeItem<T>> CheckBoxTreeCell.getConverter()Returns theStringConverterused in this cell.final StringConverter<T> CheckBoxTreeTableCell.getConverter()Returns theStringConverterused in this cell.final StringConverter<T> ChoiceBoxListCell.getConverter()Returns theStringConverterused in this cell.final StringConverter<T> ChoiceBoxTableCell.getConverter()Returns theStringConverterused in this cell.final StringConverter<T> ChoiceBoxTreeCell.getConverter()Returns theStringConverterused in this cell.final StringConverter<T> ChoiceBoxTreeTableCell.getConverter()Returns theStringConverterused in this cell.final StringConverter<T> ComboBoxListCell.getConverter()Returns theStringConverterused in this cell.final StringConverter<T> ComboBoxTableCell.getConverter()Returns theStringConverterused in this cell.final StringConverter<T> ComboBoxTreeCell.getConverter()Returns theStringConverterused in this cell.final StringConverter<T> ComboBoxTreeTableCell.getConverter()Returns theStringConverterused in this cell.final StringConverter<T> TextFieldListCell.getConverter()Returns theStringConverterused in this cell.final StringConverter<T> TextFieldTableCell.getConverter()Returns theStringConverterused in this cell.final StringConverter<T> TextFieldTreeCell.getConverter()Returns theStringConverterused in this cell.final StringConverter<T> TextFieldTreeTableCell.getConverter()Returns theStringConverterused in this cell.Methods in javafx.scene.control.cell that return types with arguments of type StringConverterModifier and TypeMethodDescriptionfinal ObjectProperty<StringConverter<T>> CheckBoxListCell.converterProperty()TheStringConverterproperty.final ObjectProperty<StringConverter<T>> CheckBoxTableCell.converterProperty()TheStringConverterproperty.final ObjectProperty<StringConverter<TreeItem<T>>> CheckBoxTreeCell.converterProperty()TheStringConverterproperty.final ObjectProperty<StringConverter<T>> CheckBoxTreeTableCell.converterProperty()TheStringConverterproperty.final ObjectProperty<StringConverter<T>> ChoiceBoxListCell.converterProperty()TheStringConverterproperty.final ObjectProperty<StringConverter<T>> ChoiceBoxTableCell.converterProperty()TheStringConverterproperty.final ObjectProperty<StringConverter<T>> ChoiceBoxTreeCell.converterProperty()TheStringConverterproperty.final ObjectProperty<StringConverter<T>> ChoiceBoxTreeTableCell.converterProperty()TheStringConverterproperty.final ObjectProperty<StringConverter<T>> ComboBoxListCell.converterProperty()TheStringConverterproperty.final ObjectProperty<StringConverter<T>> ComboBoxTableCell.converterProperty()TheStringConverterproperty.final ObjectProperty<StringConverter<T>> ComboBoxTreeCell.converterProperty()TheStringConverterproperty.final ObjectProperty<StringConverter<T>> ComboBoxTreeTableCell.converterProperty()TheStringConverterproperty.final ObjectProperty<StringConverter<T>> TextFieldListCell.converterProperty()TheStringConverterproperty.final ObjectProperty<StringConverter<T>> TextFieldTableCell.converterProperty()TheStringConverterproperty.final ObjectProperty<StringConverter<T>> TextFieldTreeCell.converterProperty()TheStringConverterproperty.final ObjectProperty<StringConverter<T>> TextFieldTreeTableCell.converterProperty()TheStringConverterproperty.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 inListViewcontrols.ChoiceBoxListCell.forListView(StringConverter<T> converter, T... items) Creates a ChoiceBox cell factory for use inListViewcontrols.ComboBoxListCell.forListView(StringConverter<T> converter, ObservableList<T> items) Creates a ComboBox cell factory for use inListViewcontrols.ComboBoxListCell.forListView(StringConverter<T> converter, T... items) Creates a ComboBox cell factory for use inListViewcontrols.TextFieldListCell.forListView(StringConverter<T> converter) Provides aTextFieldthat 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 aTableColumncell 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 inTableColumncontrols.static <S,T> Callback <TableColumn<S, T>, TableCell<S, T>> ChoiceBoxTableCell.forTableColumn(StringConverter<T> converter, T... items) Creates a ChoiceBox cell factory for use inTableColumncontrols.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 inTableColumncontrols.static <S,T> Callback <TableColumn<S, T>, TableCell<S, T>> ComboBoxTableCell.forTableColumn(StringConverter<T> converter, T... items) Creates a ComboBox cell factory for use inTableColumncontrols.static <S,T> Callback <TableColumn<S, T>, TableCell<S, T>> TextFieldTableCell.forTableColumn(StringConverter<T> converter) Provides aTextFieldthat 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 aTreeTableColumncell 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 inTreeTableColumncontrols.static <S,T> Callback <TreeTableColumn<S, T>, TreeTableCell<S, T>> ChoiceBoxTreeTableCell.forTreeTableColumn(StringConverter<T> converter, T... items) Creates a ChoiceBox cell factory for use inTreeTableColumncontrols.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 inTreeTableColumncontrols.static <S,T> Callback <TreeTableColumn<S, T>, TreeTableCell<S, T>> ComboBoxTreeTableCell.forTreeTableColumn(StringConverter<T> converter, T... items) Creates a ComboBox cell factory for use inTreeTableColumncontrols.static <S,T> Callback <TreeTableColumn<S, T>, TreeTableCell<S, T>> TextFieldTreeTableCell.forTreeTableColumn(StringConverter<T> converter) Provides aTextFieldthat 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 inTreeViewcontrols.ChoiceBoxTreeCell.forTreeView(StringConverter<T> converter, T... items) Creates a ChoiceBox cell factory for use inTreeViewcontrols.ComboBoxTreeCell.forTreeView(StringConverter<T> converter, ObservableList<T> items) Creates a ComboBox cell factory for use inTreeViewcontrols.ComboBoxTreeCell.forTreeView(StringConverter<T> converter, T... items) Creates a ComboBox cell factory for use inTreeViewcontrols.TextFieldTreeCell.forTreeView(StringConverter<T> converter) Provides aTextFieldthat allows editing of the cell content when the cell is double-clicked, or whenTreeView.edit(javafx.scene.control.TreeItem)is called.final voidCheckBoxListCell.setConverter(StringConverter<T> value) Sets theStringConverterto be used in this cell.final voidCheckBoxTableCell.setConverter(StringConverter<T> value) Sets theStringConverterto be used in this cell.final voidCheckBoxTreeCell.setConverter(StringConverter<TreeItem<T>> value) Sets theStringConverterto be used in this cell.final voidCheckBoxTreeTableCell.setConverter(StringConverter<T> value) Sets theStringConverterto be used in this cell.final voidChoiceBoxListCell.setConverter(StringConverter<T> value) Sets theStringConverterto be used in this cell.final voidChoiceBoxTableCell.setConverter(StringConverter<T> value) Sets theStringConverterto be used in this cell.final voidChoiceBoxTreeCell.setConverter(StringConverter<T> value) Sets theStringConverterto be used in this cell.final voidChoiceBoxTreeTableCell.setConverter(StringConverter<T> value) Sets theStringConverterto be used in this cell.final voidComboBoxListCell.setConverter(StringConverter<T> value) Sets theStringConverterto be used in this cell.final voidComboBoxTableCell.setConverter(StringConverter<T> value) Sets theStringConverterto be used in this cell.final voidComboBoxTreeCell.setConverter(StringConverter<T> value) Sets theStringConverterto be used in this cell.final voidComboBoxTreeTableCell.setConverter(StringConverter<T> value) Sets theStringConverterto be used in this cell.final voidTextFieldListCell.setConverter(StringConverter<T> value) Sets theStringConverterto be used in this cell.final voidTextFieldTableCell.setConverter(StringConverter<T> value) Sets theStringConverterto be used in this cell.final voidTextFieldTreeCell.setConverter(StringConverter<T> value) Sets theStringConverterto be used in this cell.final voidTextFieldTreeTableCell.setConverter(StringConverter<T> value) Sets theStringConverterto 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 aCheckBoxTreeCellfor 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 aChoiceBoxListCellinstance with the given items being used to populate theChoiceBoxwhen it is shown, and theStringConverterbeing used to convert the item in to a user-readable form.ChoiceBoxListCell(StringConverter<T> converter, T... items) Creates aChoiceBoxListCellinstance with the given items being used to populate theChoiceBoxwhen it is shown, and theStringConverterbeing used to convert the item in to a user-readable form.ChoiceBoxTableCell(StringConverter<T> converter, ObservableList<T> items) Creates aChoiceBoxTableCellinstance with the given items being used to populate theChoiceBoxwhen it is shown, and theStringConverterbeing used to convert the item in to a user-readable form.ChoiceBoxTableCell(StringConverter<T> converter, T... items) Creates aChoiceBoxTableCellinstance with the given items being used to populate theChoiceBoxwhen it is shown, and theStringConverterbeing used to convert the item in to a user-readable form.ChoiceBoxTreeCell(StringConverter<T> converter, ObservableList<T> items) Creates aChoiceBoxTreeCellinstance with the given items being used to populate theChoiceBoxwhen it is shown, and theStringConverterbeing used to convert the item in to a user-readable form.ChoiceBoxTreeCell(StringConverter<T> converter, T... items) Creates aChoiceBoxTreeCellinstance with the given items being used to populate theChoiceBoxwhen it is shown, and theStringConverterbeing used to convert the item in to a user-readable form.ChoiceBoxTreeTableCell(StringConverter<T> converter, ObservableList<T> items) Creates aChoiceBoxTreeTableCellinstance with the given items being used to populate theChoiceBoxwhen it is shown, and theStringConverterbeing used to convert the item in to a user-readable form.ChoiceBoxTreeTableCell(StringConverter<T> converter, T... items) Creates aChoiceBoxTreeTableCellinstance with the given items being used to populate theChoiceBoxwhen it is shown, and theStringConverterbeing used to convert the item in to a user-readable form.ComboBoxListCell(StringConverter<T> converter, ObservableList<T> items) Creates aComboBoxListCellinstance with the given items being used to populate theComboBoxwhen it is shown, and theStringConverterbeing used to convert the item in to a user-readable form.ComboBoxListCell(StringConverter<T> converter, T... items) Creates aComboBoxListCellinstance with the given items being used to populate theComboBoxwhen it is shown, and theStringConverterbeing used to convert the item in to a user-readable form.ComboBoxTableCell(StringConverter<T> converter, ObservableList<T> items) Creates aComboBoxTableCellinstance with the given items being used to populate theComboBoxwhen it is shown, and theStringConverterbeing used to convert the item in to a user-readable form.ComboBoxTableCell(StringConverter<T> converter, T... items) Creates aComboBoxTableCellinstance with the given items being used to populate theComboBoxwhen it is shown, and theStringConverterbeing used to convert the item in to a user-readable form.ComboBoxTreeCell(StringConverter<T> converter, ObservableList<T> items) Creates aComboBoxTreeCellinstance with the given items being used to populate theComboBoxwhen it is shown, and theStringConverterbeing used to convert the item in to a user-readable form.ComboBoxTreeCell(StringConverter<T> converter, T... items) Creates aComboBoxTreeCellinstance with the given items being used to populate theComboBoxwhen it is shown, and theStringConverterbeing used to convert the item in to a user-readable form.ComboBoxTreeTableCell(StringConverter<T> converter, ObservableList<T> items) Creates aComboBoxTreeTableCellinstance with the given items being used to populate theComboBoxwhen it is shown, and theStringConverterbeing used to convert the item in to a user-readable form.ComboBoxTreeTableCell(StringConverter<T> converter, T... items) Creates aComboBoxTreeTableCellinstance with the given items being used to populate theComboBoxwhen it is shown, and theStringConverterbeing used to convert the item in to a user-readable form.TextFieldListCell(StringConverter<T> converter) Creates a TextFieldListCell that provides aTextFieldwhen put into editing mode that allows editing of the cell content.TextFieldTableCell(StringConverter<T> converter) Creates a TextFieldTableCell that provides aTextFieldwhen put into editing mode that allows editing of the cell content.TextFieldTreeCell(StringConverter<T> converter) Creates a TextFieldTreeCell that provides aTextFieldwhen put into editing mode that allows editing of the cell content.TextFieldTreeTableCell(StringConverter<T> converter) Creates a TextFieldTreeTableCell that provides aTextFieldwhen 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 TypeClassDescriptionclassStringConverterimplementation forBigDecimalvalues.classStringConverterimplementation forBigIntegervalues.classStringConverterimplementation forBoolean(and boolean primitive) values.classStringConverterimplementation forByte(and byte primitive) values.classStringConverterimplementation forCharacter(and char primitive) values.classAStringConverterimplementation forNumbervalues that represent currency.classStringConverterimplementation forDatevalues.classStringConverterimplementation forDatevalues that represent a date and time.classStringConverterimplementation forStringvalues.classStringConverterimplementation forDouble(and double primitive) values.classStringConverterimplementation forFloat(and float primitive) values.classStringConverterimplementation that can use aFormatinstance.classStringConverterimplementation forInteger(and int primitive) values.classStringConverterimplementation forLocalDatevalues.classStringConverterimplementation forLocalDateTimevalues.classStringConverterimplementation forLocalTimevalues.classStringConverterimplementation forLong(and long primitive) values.classAStringConverterimplementation forNumbervalues.classAStringConverterimplementation forNumbervalues that represent percentages.classStringConverterimplementation forShortvalues.classStringConverterimplementation forDatevalues that represent time.