--- old/modules/javafx.controls/src/main/java/javafx/scene/control/SelectionModel.java 2017-03-09 14:44:28.202173742 -0800 +++ new/modules/javafx.controls/src/main/java/javafx/scene/control/SelectionModel.java 2017-03-09 14:44:28.098173741 -0800 @@ -62,6 +62,7 @@ * a {@link ListChangeListener} to the collection returned by * {@link MultipleSelectionModel#getSelectedIndices()} to be informed whenever * the selection changes, and this will also work in the case of single selection. + * @return the selected index property */ public final ReadOnlyIntegerProperty selectedIndexProperty() { return selectedIndex.getReadOnlyProperty(); } private ReadOnlyIntegerWrapper selectedIndex = new ReadOnlyIntegerWrapper(this, "selectedIndex", -1); @@ -81,6 +82,7 @@ * InvalidationListener listener = ...; * sm.selectedIndexProperty().addListener(listener); * + * @return the selected index */ public final int getSelectedIndex() { return selectedIndexProperty().get(); } @@ -96,6 +98,7 @@ * model is set to be single selection, but is equally applicable when in * multiple selection mode. When in this mode, the selected item will always * represent the last selection made. + * @return the selected item property */ public final ReadOnlyObjectProperty selectedItemProperty() { return selectedItem.getReadOnlyProperty(); } private ReadOnlyObjectWrapper selectedItem = new ReadOnlyObjectWrapper(this, "selectedItem"); @@ -116,6 +119,7 @@ * InvalidationListener listener = ...; * sm.selectedItemProperty().addListener(listener); * + * @return the selected item */ public final T getSelectedItem() { return selectedItemProperty().get(); }