< prev index next >
modules/javafx.controls/src/main/java/javafx/scene/control/MultipleSelectionModel.java
Print this page
@@ -116,18 +116,20 @@
/**
* <p>Returns a <b>read-only</b> ObservableList of all selected indices. The
* ObservableList will be updated by the selection model to always reflect
* changes in selection. This can be observed by adding a
* {@link ListChangeListener} to the returned ObservableList.
+ * @return the list of selected indices
*/
public abstract ObservableList<Integer> getSelectedIndices();
/**
* <p>Returns a <b>read-only</b> ObservableList of all selected items. The
* ObservableList will be updated further by the selection model to always reflect
* changes in selection. This can be observed by adding a
* {@link ListChangeListener} to the returned ObservableList.
+ * @return the list of selected items
*/
public abstract ObservableList<T> getSelectedItems();
/**
* <p>This method allows for one or more selections to be set at the same time.
@@ -139,18 +141,20 @@
* this method will <b>not</b> clear these selections - to do so it is
* necessary to first call clearSelection.
*
* <p>The last valid value given will become the selected index / selected
* item.
+ * @param index the selected index
+ * @param indices the selected indices
*/
public abstract void selectIndices(int index, int... indices);
/**
* <p>Selects all indices from the given start index to the item before the
* given end index. This means that the selection is inclusive of the start
* index, and exclusive of the end index. This method will work regardless
- * of whether start < end or start > end: the only constant is that the
+ * of whether start < end or start > end: the only constant is that the
* index before the given end index will become the selected index.
*
* <p>If there is already one or more indices selected in this model, calling
* this method will <b>not</b> clear these selections - to do so it is
* necessary to first call clearSelection.
< prev index next >