< prev index next >

modules/controls/src/main/java/javafx/scene/control/FocusModel.java

Print this page

        

*** 132,142 **** /** * Causes the item at the given index to receive the focus. This does not * cause the current selection to change. Updates the focusedItem and * focusedIndex properties such that <code>focusedIndex = -1</code> unless ! * <code>0 <= index < model size</code>. * * @param index The index of the item to get focus. */ public void focus(int index) { if (index < 0 || index >= getItemCount()) { --- 132,142 ---- /** * Causes the item at the given index to receive the focus. This does not * cause the current selection to change. Updates the focusedItem and * focusedIndex properties such that <code>focusedIndex = -1</code> unless ! * <code>0 &lt;= index &lt; model size</code>. * * @param index The index of the item to get focus. */ public void focus(int index) { if (index < 0 || index >= getItemCount()) {
< prev index next >