< prev index next >
modules/javafx.controls/src/main/java/javafx/scene/control/cell/TextFieldTreeCell.java
Print this page
@@ -81,10 +81,11 @@
* {@link StringConverter} must be provided that will convert the given String
* (from what the user typed in) into an instance of type T. This item will
* then be passed along to the {@link TreeView#onEditCommitProperty()}
* callback.
*
+ * @param <T> The type of the elements contained within the TreeView
* @param converter A {@link StringConverter} that can convert the given String
* (from what the user typed in) into an instance of type T.
* @return A {@link Callback} that can be inserted into the
* {@link TreeView#cellFactoryProperty() cell factory property} of a
* TreeView, that enables textual editing of the content.
@@ -154,24 +155,27 @@
private ObjectProperty<StringConverter<T>> converter =
new SimpleObjectProperty<StringConverter<T>>(this, "converter");
/**
* The {@link StringConverter} property.
+ * @return the {@link StringConverter} property
*/
public final ObjectProperty<StringConverter<T>> converterProperty() {
return converter;
}
/**
* Sets the {@link StringConverter} to be used in this cell.
+ * @param value the {@link StringConverter} to be used in this cell
*/
public final void setConverter(StringConverter<T> value) {
converterProperty().set(value);
}
/**
* Returns the {@link StringConverter} used in this cell.
+ * @return the {@link StringConverter} used in this cell
*/
public final StringConverter<T> getConverter() {
return converterProperty().get();
}
< prev index next >