javafx.scene.control.TableView and javafx.scene.control.TreeTableView
(the concrete classes are TableViewSkin and TreeTableViewSkin,
respectively).
TableView, TreeTableView, TableViewSkin, TreeTableViewSkin
| Modifier and Type | Field and Description |
|---|---|
| private Region | columnReorderLine
This region is used to overlay atop the table when the user is performing a column resize operation or a column reordering operation. |
| private Region | columnReorderOverlay
A region which is resized and positioned such that it perfectly matches the dimensions of any TableColumn that is being reordered by the user. |
| private boolean | |
| private final String | |
| pack-priv VirtualFlow | |
| private static final double | |
| private static final boolean | |
| private int | |
| pack-priv boolean | |
| private final String | |
| private Label | |
| private StackPane | placeholderRegion
Region placed over the top of the flow (and possibly the header row) if there is no data and/or there are no columns specified. |
| private ListChangeListener | |
| private Callback | |
| private TableHeaderRow | tableHeaderRow
The entire header region for all columns. |
| private int | |
| private WeakListChangeListener | |
| private WeakInvalidationListener | |
| private InvalidationListener |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected double | computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Calculates the preferred height of this |
| protected double | computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Calculates the preferred width of this |
| protected TableHeaderRow | |
| public void | dispose()
Overrides javafx. Implements javafx. Called when a previously installed skin is about to be removed from its associated control. |
| pack-priv Region | |
| private TablePositionBase | |
| private TableFocusModel | |
| private TableSelectionModel | |
| protected TableHeaderRow | Returns: theTableHeaderRow for this TableViewSkinBaseReturns the |
| private ObservableList | |
| pack-priv void | |
| private boolean | |
| private boolean | |
| private boolean | |
| protected void | layoutChildren(final double x, double y, final double w, final double h)
Overrides javafx. Called during the layout pass of the scenegraph. |
| protected void | onFocusAboveCell()
Called when the focus is set on the cell above the current focused cell in order to scroll to it to make it visible. |
| protected void | onFocusBelowCell()
Called when the focus is set on the cell below the current focused cell in order to scroll to it to make it visible. |
| protected void | onFocusLeftCell()
Called when the focus is set on the left cell of the current selected one in order to horizontally scroll to it to make it visible. |
| protected void | onFocusRightCell()
Called when the focus is set on the right cell of the current selected one in order to horizontally scroll to it to make it visible. |
| protected void | onMoveToFirstCell()
Called when the selection is set on the first cell of the table (first row and first column) in order to scroll to it to make it visible. |
| protected void | onMoveToLastCell()
Called when the selection is set on the last cell of the table (last row and last column) in order to scroll to it to make it visible. |
| protected int | Returns: the new index to select, or to focus ifisFocusDriven is truetrue if focused cell should be considered over selectionReturns the index of the selected (or focused, if |
| protected int | Returns: the new index to select, or to focus ifisFocusDriven is truetrue if focused cell should be considered over selectionReturns the index of the selected (or focused, if |
| protected void | onSelectAboveCell()
Called when the selection is set on the the cell above the current focused cell in order to scroll to it to make it visible. |
| protected void | onSelectBelowCell()
Called when the selection is set on the cell below the current focused cell in order to scroll to it to make it visible. |
| protected void | onSelectLeftCell()
Called when the selection is set on the left cell of the current selected one in order to horizontally scroll to it to make it visible. |
| protected void | onSelectRightCell()
Called when the selection is set on the right cell of the current selected one in order to horizontally scroll to it to make it visible. |
| protected 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 | |
| public void | |
| protected void | |
| private void | |
| protected void | updateItemCount()
Implements abstract javafx. This method is called when it is possible that the item count has changed (i.e. scrolling has occurred, the control has resized, etc). |
| pack-priv final void | |
| pack-priv void | |
| private void | |
| private void | |
| private void |
| columnReorderLine | back to summary |
|---|---|
| private Region columnReorderLine This region is used to overlay atop the table when the user is performing a column resize operation or a column reordering operation. It is a line that runs the height of the table to indicate either the final width of of the selected column, or the position the column will be 'dropped' into when the reordering operation completes. | |
| columnReorderOverlay | back to summary |
|---|---|
| private Region columnReorderOverlay A region which is resized and positioned such that it perfectly matches the dimensions of any TableColumn that is being reordered by the user. This is useful, for example, as a semi-transparent overlay to give feedback to the user as to which column is currently being moved. | |
| contentWidthDirty | back to summary |
|---|---|
| private boolean contentWidthDirty | |
| EMPTY_TABLE_TEXT | back to summary |
|---|---|
| private final String EMPTY_TABLE_TEXT | |
| flow | back to summary |
|---|---|
| pack-priv VirtualFlow<I> flow | |
| GOLDEN_RATIO_MULTIPLIER | back to summary |
|---|---|
| private static final double GOLDEN_RATIO_MULTIPLIER | |
| IS_PANNABLE | back to summary |
|---|---|
| private static final boolean IS_PANNABLE | |
| itemCount | back to summary |
|---|---|
| private int itemCount | |
| needCellsReconfigured | back to summary |
|---|---|
| pack-priv boolean needCellsReconfigured | |
| NO_COLUMNS_TEXT | back to summary |
|---|---|
| private final String NO_COLUMNS_TEXT | |
| placeholderLabel | back to summary |
|---|---|
| private Label placeholderLabel | |
| placeholderRegion | back to summary |
|---|---|
| private StackPane placeholderRegion Region placed over the top of the flow (and possibly the header row) if there is no data and/or there are no columns specified. | |
| rowCountListener | back to summary |
|---|---|
| private ListChangeListener<S> rowCountListener | |
| rowFactory | back to summary |
|---|---|
| private Callback<C, I> rowFactory | |
| tableHeaderRow | back to summary |
|---|---|
| private TableHeaderRow tableHeaderRow The entire header region for all columns. This header region handles column reordering and resizing. It also handles the positioning and resizing of thte columnReorderLine and columnReorderOverlay. | |
| visibleColCount | back to summary |
|---|---|
| private int visibleColCount | |
| weakRowCountListener | back to summary |
|---|---|
| private WeakListChangeListener<S> weakRowCountListener | |
| weakWidthListener | back to summary |
|---|---|
| private WeakInvalidationListener weakWidthListener | |
| widthListener | back to summary |
|---|---|
| private InvalidationListener widthListener | |
| TableViewSkinBase | back to summary |
|---|---|
| public TableViewSkinBase(final C control) Constructs a
| |
| checkContentWidthState | back to summary |
|---|---|
| private void checkContentWidthState() | |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred height of this
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred width of this
| |
| createTableHeaderRow | back to summary |
|---|---|
| protected TableHeaderRow createTableHeaderRow() Creates a new TableHeaderRow instance. By default this method should not be overridden, but in some circumstances it makes sense (e.g. testing, or when extreme customization is desired).
| |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides javafx. Implements javafx. Doc from javafx. Called when a previously installed skin is about to be removed from its associated control.
This allows the skin to do clean up, like removing listeners and bindings, and undo any changes
to the control's properties.
After this method completes,
Calling Overridden to remove EventHandler.
| |
| getColumnReorderLine | back to summary |
|---|---|
| pack-priv Region getColumnReorderLine() | |
| getFocusedCell | back to summary |
|---|---|
| private TablePositionBase | |
| getFocusModel | back to summary |
|---|---|
| private TableFocusModel | |
| getSelectionModel | back to summary |
|---|---|
| private TableSelectionModel | |
| getTableHeaderRow | back to summary |
|---|---|
| protected TableHeaderRow getTableHeaderRow() Returns the
| |
| getVisibleLeafColumns | back to summary |
|---|---|
| private ObservableList | |
| horizontalScroll | back to summary |
|---|---|
| pack-priv void horizontalScroll() | |
| isCellFocused | back to summary |
|---|---|
| private boolean isCellFocused(int row) | |
| isCellSelected | back to summary |
|---|---|
| private boolean isCellSelected(int row) | |
| isLeadIndex | back to summary |
|---|---|
| private boolean isLeadIndex(boolean isFocusDriven, int index) | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren(final double x, double y, final double w, final double h) Overrides javafx. Doc from javafx. Called during the layout pass of the scenegraph.
| |
| onFocusAboveCell | back to summary |
|---|---|
| protected void onFocusAboveCell() Called when the focus is set on the cell above the current focused cell in order to scroll to it to make it visible.
| |
| onFocusBelowCell | back to summary |
|---|---|
| protected void onFocusBelowCell() Called when the focus is set on the cell below the current focused cell in order to scroll to it to make it visible.
| |
| onFocusLeftCell | back to summary |
|---|---|
| protected void onFocusLeftCell() Called when the focus is set on the left cell of the current selected one in order to horizontally scroll to it to make it visible.
| |
| onFocusRightCell | back to summary |
|---|---|
| protected void onFocusRightCell() Called when the focus is set on the right cell of the current selected one in order to horizontally scroll to it to make it visible.
| |
| onMoveToFirstCell | back to summary |
|---|---|
| protected void onMoveToFirstCell() Called when the selection is set on the first cell of the table (first row and first column) in order to scroll to it to make it visible.
| |
| onMoveToLastCell | back to summary |
|---|---|
| protected void onMoveToLastCell() Called when the selection is set on the last cell of the table (last row and last column) in order to scroll to it to make it visible.
| |
| onScrollPageDown | back to summary |
|---|---|
| protected int onScrollPageDown(boolean isFocusDriven) Returns the index of the selected (or focused, if
| |
| onScrollPageUp | back to summary |
|---|---|
| protected int onScrollPageUp(boolean isFocusDriven) Returns the index of the selected (or focused, if
| |
| onSelectAboveCell | back to summary |
|---|---|
| protected void onSelectAboveCell() Called when the selection is set on the the cell above the current focused cell in order to scroll to it to make it visible.
| |
| onSelectBelowCell | back to summary |
|---|---|
| protected void onSelectBelowCell() Called when the selection is set on the cell below the current focused cell in order to scroll to it to make it visible.
| |
| onSelectLeftCell | back to summary |
|---|---|
| protected void onSelectLeftCell() Called when the selection is set on the left cell of the current selected one in order to horizontally scroll to it to make it visible.
| |
| onSelectRightCell | back to summary |
|---|---|
| protected void onSelectRightCell() Called when the selection is set on the right cell of the current selected one in order to horizontally scroll to it to make it visible.
| |
| queryAccessibleAttribute | back to summary |
|---|---|
| protected 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.
| |
| refreshView | back to summary |
|---|---|
| private void refreshView() | |
| scrollHorizontally | back to summary |
|---|---|
| public void scrollHorizontally() Scrolls to the column containing the current focused cell. Handles the horizontal scrolling when the selection mode is cell-based and the newly selected cell belongs to a column which is not completely visible.
| |
| scrollHorizontally | back to summary |
|---|---|
| protected void scrollHorizontally(TC col) Programmatically scrolls to the given column. This call will ensure that the column is aligned on the left edge
of the
| |
| updateContentWidth | back to summary |
|---|---|
| private void updateContentWidth() | |
| updateItemCount | back to summary |
|---|---|
| protected void updateItemCount() Implements abstract javafx. Doc from javafx. This method is called when it is possible that the item count has changed (i.e. scrolling has occurred,
the control has resized, etc). This method should recalculate the item count and store that for future
use by the
| |
| updatePlaceholderRegionVisibility | back to summary |
|---|---|
| pack-priv final void updatePlaceholderRegionVisibility() | |
| updateSuppressBreadthBar | back to summary |
|---|---|
| pack-priv void updateSuppressBreadthBar() | |
| updateTableItems | back to summary |
|---|---|
| private void updateTableItems(ObservableList<S> oldList, ObservableList<S> newList) | |
| updateVisibleColumnCount | back to summary |
|---|---|
| private void updateVisibleColumnCount() Keeps track of how many leaf columns are currently visible in this table. | |
| updateVisibleLeafColumnWidthListeners | back to summary |
|---|---|
| private void updateVisibleLeafColumnWidthListeners(List<? extends TC> added, List<? extends TC> removed) | |