Spec-Zone.ru › OpenJavaFX 8
javafx.scene.control

Class TableFocusModel<T,TC extends TableColumnBase<T,?>>

java.lang.Object
  • javafx.scene.control.FocusModel<T>
    • javafx.scene.control.TableFocusModel<T,TC>

Type Parameters:

T - The type of the underlying data model for the UI control.

Direct Known Subclasses:

TableView.TableViewFocusModel, TreeTableView.TreeTableViewFocusModel



public abstract class TableFocusModel<T,TC extends TableColumnBase<T,?>>
extends FocusModel<T>
The abstract base class for FocusModel implementations that are used within table-like controls (most notably TableView and TreeTableView.

Since:

JavaFX 8.0

  • Property Summary

    • Properties inherited from class javafx.scene.control.FocusModel

      focusedIndex, focusedItem
  • Constructor Summary

    Constructors
    Constructor and Description
    TableFocusModel()
  • Method Summary

    All MethodsInstance MethodsAbstract Methods
    Modifier and Type Method and Description
    abstract void focus(int row, TC column)
    Causes the item at the given index to receive the focus.
    abstract void focusAboveCell()
    Attempts to move focus to the cell above the currently focused cell.
    abstract void focusBelowCell()
    Attempts to move focus to the cell below the currently focused cell.
    abstract void focusLeftCell()
    Attempts to move focus to the cell to the left of the currently focused cell.
    abstract void focusRightCell()
    Attempts to move focus to the cell to the right of the the currently focused cell.
    abstract boolean isFocused(int row, TC column)
    Tests whether the row / cell at the given location currently has the focus within the UI control.
    • Methods inherited from class javafx.scene.control.FocusModel

      focus, focusedIndexProperty, focusedItemProperty, focusNext, focusPrevious, getFocusedIndex, getFocusedItem, getItemCount, getModelItem, isFocused
    • Methods inherited from class java.lang.Object

      clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Detail

    • TableFocusModel

      public TableFocusModel()
  • Method Detail

    • focus

      public abstract void focus(int row,
                                 TC column)
      Causes the item at the given index to receive the focus.

      Parameters:

      row - The row index of the item to give focus to.

    • isFocused

      public abstract boolean isFocused(int row,
                                        TC column)
      Tests whether the row / cell at the given location currently has the focus within the UI control.
    • focusAboveCell

      public abstract void focusAboveCell()
      Attempts to move focus to the cell above the currently focused cell.
    • focusBelowCell

      public abstract void focusBelowCell()
      Attempts to move focus to the cell below the currently focused cell.
    • focusLeftCell

      public abstract void focusLeftCell()
      Attempts to move focus to the cell to the left of the currently focused cell.
    • focusRightCell

      public abstract void focusRightCell()
      Attempts to move focus to the cell to the right of the the currently focused cell.

© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API