TableView. To
represent this intersection, a TableCell contains an
index property, as well as a
tableColumn property. In addition, a TableCell
instance knows what TableRow it exists in.
A note about selection: A TableCell visually shows it is selected when two conditions are met:
TableSelectionModel#isSelected(int, TableColumnBase) method
returns true for the row / column that this cell represents, andcell selection mode
property is set to true (to represent that it is allowable to select
individual cells (and not just rows of cells)).TableView, TableColumn, Cell, IndexedCell, TableRow
| Modifier and Type | Field and Description |
|---|---|
| private final InvalidationListener | |
| private int | |
| private ListChangeListener | |
| private final InvalidationListener | |
| private ObservableValue | |
| private static final String | |
| private TablePosition | |
| private final InvalidationListener | |
| private final InvalidationListener | |
| private boolean | |
| private boolean | |
| private boolean | |
| private WeakReference | |
| private static final PseudoClass | |
| private ListChangeListener | |
| private ReadOnlyObjectWrapper | |
| private ReadOnlyObjectWrapper | tableRow
The TableRow that this TableCell currently finds itself placed within. |
| private final InvalidationListener | |
| private ReadOnlyObjectWrapper | |
| private boolean | |
| private ListChangeListener | |
| private final WeakInvalidationListener | |
| private final WeakListChangeListener | |
| private final WeakInvalidationListener | |
| private final WeakInvalidationListener | |
| private final WeakInvalidationListener | |
| private final WeakListChangeListener | |
| private final WeakInvalidationListener | |
| private final WeakListChangeListener |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancelEdit()
Overrides javafx. Cancels an edit to the value of the cell. |
| private void | |
| public void | commitEdit(T newValue)
Overrides javafx. Commits an edit to the value of the cell. |
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| private void | |
| public void | executeAccessibleAction(AccessibleAction action, Object... parameters)
Overrides javafx. This method is called by the assistive technology to request the action indicated by the argument should be executed. |
| pack-priv TablePosition | |
| public final TableColumn | |
| public final TableRow | |
| public final TableView | |
| pack-priv void | indexChanged(int oldIndex, int newIndex)
Overrides javafx. This method is called whenever the index is changed, regardless of whether the new index is the same as the old index. |
| private boolean | |
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| private boolean | |
| private void | |
| private void | |
| public Object | queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)
Overrides javafx. This method is called by the assistive technology to request the value for an attribute. |
| private void | |
| private void | |
| private void | |
| public void | |
| public final ReadOnlyObjectProperty | Returns: the TableColumn instance that backs this TableCellThe TableColumn instance that backs this TableCell. |
| public final ReadOnlyObjectProperty | |
| public final ReadOnlyObjectProperty | Returns: the TableView associated with this TableCellThe TableView associated with this TableCell. |
| private ReadOnlyObjectWrapper | |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | updateSelected(boolean selected)
Overrides javafx. Updates whether this cell is in a selected state or not. |
| private void | |
| public final void | updateTableColumn(TableColumn<S, T>
the TableColumn associated with this TableCell col)Updates the TableColumn associated with this TableCell. |
| public final void | updateTableRow(TableRow<T>
the TableRow associated with this TableCell tableRow)Updates the TableRow associated with this TableCell. |
| public final void | updateTableView(TableView<S>
the TableView associated with this TableCell tv)Updates the TableView associated with this TableCell. |
| columnIdListener | back to summary |
|---|---|
| private final InvalidationListener columnIdListener | |
| columnIndex | back to summary |
|---|---|
| private int columnIndex | |
| columnStyleClassListener | back to summary |
|---|---|
| private ListChangeListener<String> columnStyleClassListener | |
| columnStyleListener | back to summary |
|---|---|
| private final InvalidationListener columnStyleListener | |
| currentObservableValue | back to summary |
|---|---|
| private ObservableValue<T> currentObservableValue | |
| DEFAULT_STYLE_CLASS | back to summary |
|---|---|
| private static final String DEFAULT_STYLE_CLASS | |
| editingCellAtStartEdit | back to summary |
|---|---|
| private TablePosition<S, T> editingCellAtStartEdit | |
| editingListener | back to summary |
|---|---|
| private final InvalidationListener editingListener | |
| focusedListener | back to summary |
|---|---|
| private final InvalidationListener focusedListener | |
| isFirstRun | back to summary |
|---|---|
| private boolean isFirstRun | |
| isLastVisibleColumn | back to summary |
|---|---|
| private boolean isLastVisibleColumn | |
| itemDirty | back to summary |
|---|---|
| private boolean itemDirty | |
| oldRowItemRef | back to summary |
|---|---|
| private WeakReference<S> oldRowItemRef | |
| PSEUDO_CLASS_LAST_VISIBLE | back to summary |
|---|---|
| private static final PseudoClass PSEUDO_CLASS_LAST_VISIBLE | |
| selectedListener | back to summary |
|---|---|
| private ListChangeListener<TablePosition<S, T>> selectedListener | |
| tableColumn | back to summary |
|---|---|
| private ReadOnlyObjectWrapper<TableColumn<S, T>> tableColumn | |
| tableRow | back to summary |
|---|---|
| private ReadOnlyObjectWrapper<TableRow<S>> tableRow The TableRow that this TableCell currently finds itself placed within. The TableRow may be null early in the TableCell lifecycle, in the period between the TableCell being instantiated and being set into an owner TableRow. | |
| tableRowUpdateObserver | back to summary |
|---|---|
| private final InvalidationListener tableRowUpdateObserver | |
| tableView | back to summary |
|---|---|
| private ReadOnlyObjectWrapper<TableView<S>> tableView | |
| updateEditingIndex | back to summary |
|---|---|
| private boolean updateEditingIndex | |
| visibleLeafColumnsListener | back to summary |
|---|---|
| private ListChangeListener<TableColumn<S, ?>> visibleLeafColumnsListener | |
| weakColumnIdListener | back to summary |
|---|---|
| private final WeakInvalidationListener weakColumnIdListener | |
| weakColumnStyleClassListener | back to summary |
|---|---|
| private final WeakListChangeListener<String> weakColumnStyleClassListener | |
| weakColumnStyleListener | back to summary |
|---|---|
| private final WeakInvalidationListener weakColumnStyleListener | |
| weakEditingListener | back to summary |
|---|---|
| private final WeakInvalidationListener weakEditingListener | |
| weakFocusedListener | back to summary |
|---|---|
| private final WeakInvalidationListener weakFocusedListener | |
| weakSelectedListener | back to summary |
|---|---|
| private final WeakListChangeListener<TablePosition<S, T>> weakSelectedListener | |
| weaktableRowUpdateObserver | back to summary |
|---|---|
| private final WeakInvalidationListener weaktableRowUpdateObserver | |
| weakVisibleLeafColumnsListener | back to summary |
|---|---|
| private final WeakListChangeListener<TableColumn<S, ?>> weakVisibleLeafColumnsListener | |
| TableCell | back to summary |
|---|---|
| public TableCell() Constructs a default TableCell instance with a style class of 'table-cell' | |
| cancelEdit | back to summary |
|---|---|
| public void cancelEdit() Overrides javafx. Doc from javafx. Cancels an edit to the value of the cell. Call this function to transition from an editing state into a non-editing state, without saving any user input.
| |
| cleanUpTableViewListeners | back to summary |
|---|---|
| private void cleanUpTableViewListeners(TableView<S> tableView) | |
| commitEdit | back to summary |
|---|---|
| public void commitEdit(T newValue) Overrides javafx. Doc from javafx. Commits an edit to the value of the cell. Call this function when appropriate (based on the user interaction requirements of your cell editing user interface) to do two things:
In general there is no need to override this method in custom cell
implementations - it should be sufficient to simply call this method
when appropriate (e.g., when the user pressed the Enter key, you may do something
like
| |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. Create a new instance of the default skin for this control. This is called to create a skin for the control if
no skin is provided via CSS
| |
| doCancelEdit | back to summary |
|---|---|
| private void doCancelEdit() Switches an editing cell into not editing without changing control's editing state. | |
| executeAccessibleAction | back to summary |
|---|---|
| public void executeAccessibleAction(AccessibleAction action, Object... parameters) Overrides javafx. Doc from javafx. This method is called by the assistive technology to request the action indicated by the argument should be executed.
This method is commonly overridden by subclasses to implement
action that are required for a specific role.
| |
| getEditingCellAtStartEdit | back to summary |
|---|---|
| pack-priv TablePosition | |
| getTableColumn | back to summary |
|---|---|
| public final TableColumn | |
| getTableRow | back to summary |
|---|---|
| public final TableRow | |
| getTableView | back to summary |
|---|---|
| public final TableView | |
| indexChanged | back to summary |
|---|---|
| pack-priv void indexChanged(int oldIndex, int newIndex) Overrides javafx. Doc from javafx. This method is called whenever the index is changed, regardless of whether the new index is the same as the old index.
| |
| isInCellSelectionMode | back to summary |
|---|---|
| private boolean isInCellSelectionMode() | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren() Overrides javafx. Doc from javafx. Invoked during the layout pass to layout the children in this
Subclasses should override this function to layout content as needed.
| |
| match | back to summary |
|---|---|
| private boolean match(TablePosition<S, ?> pos) | |
| possiblySetId | back to summary |
|---|---|
| private void possiblySetId(String idCandidate) | |
| possiblySetStyle | back to summary |
|---|---|
| private void possiblySetStyle(String styleCandidate) | |
| queryAccessibleAttribute | back to summary |
|---|---|
| public Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters) Overrides javafx. Doc from javafx. This method is called by the assistive technology to request the value for an attribute.
This method is commonly overridden by subclasses to implement
attributes that are required for a specific role.
| |
| setTableColumn | back to summary |
|---|---|
| private void setTableColumn(TableColumn<S, T> value) | |
| setTableRow | back to summary |
|---|---|
| private void setTableRow(TableRow<S> value) | |
| setTableView | back to summary |
|---|---|
| private void setTableView(TableView<S> value) | |
| startEdit | back to summary |
|---|---|
| public void startEdit() Overrides javafx. Doc from javafx. Starts an edit to the value of the cell. Call this function to transition from a non-editing state into an editing state, if the cell is editable. If this cell is already in an editing state, it will stay in it.
| |
| tableColumnProperty | back to summary |
|---|---|
| public final ReadOnlyObjectProperty The TableColumn instance that backs this TableCell.
| |
| tableRowProperty | back to summary |
|---|---|
| public final ReadOnlyObjectProperty | |
| tableViewProperty | back to summary |
|---|---|
| public final ReadOnlyObjectProperty The TableView associated with this TableCell.
| |
| tableViewPropertyImpl | back to summary |
|---|---|
| private ReadOnlyObjectWrapper | |
| updateColumnIndex | back to summary |
|---|---|
| private void updateColumnIndex() | |
| updateEditing | back to summary |
|---|---|
| private void updateEditing() | |
| updateFocus | back to summary |
|---|---|
| private void updateFocus() | |
| updateItem | back to summary |
|---|---|
| private void updateItem(int oldIndex) | |
| updateSelected | back to summary |
|---|---|
| public void updateSelected(boolean selected) Overrides javafx. Doc from javafx. Updates whether this cell is in a selected state or not.
| |
| updateSelection | back to summary |
|---|---|
| private void updateSelection() | |
| updateTableColumn | back to summary |
|---|---|
| public final void updateTableColumn(TableColumn<S, T> col) Updates the TableColumn associated with this TableCell. Note This function is intended to be used by experts, primarily by those implementing new Skins. It is not common for developers or designers to access this function directly.
| |
| updateTableRow | back to summary |
|---|---|
| public final void updateTableRow(TableRow<T> tableRow) Updates the TableRow associated with this TableCell. Note This function is intended to be used by experts, primarily by those implementing new Skins. It is not common for developers or designers to access this function directly.
| |
| updateTableView | back to summary |
|---|---|
| public final void updateTableView(TableView<S> tv) Updates the TableView associated with this TableCell. This is typically only done once when the TableCell is first added to the TableView. Note This function is intended to be used by experts, primarily by those implementing new Skins. It is not common for developers or designers to access this function directly.
| |