TableView2 items list.
| Modifier and Type | Field and Description |
|---|---|
| private final ObservableSet | currentlyFixedRow
The currently fixedRow. |
| private final SetChangeListener | currentlyFixedRowListener
We listen on the currentlyFixedRow in order to do the modification in the FixedRowHeight. |
| private static final double | DEFAULT_CELL_HEIGHT
Default height of a row. |
| pack-priv final Map | deportedCells
When we add some tableCell to some topRow in order for them to be on top in term of z-order. |
| private final ListChangeListener | fixedColumnsListener
We listen on the FixedColumns in order to do the modification in the VirtualFlow. |
| pack-priv double | fixedColumnWidth
This is the current width used by the currently fixed column on the left. |
| private double | fixedRowHeight
The total height of the currently fixedRows. |
| private final ListChangeListener | fixedRowsListener
We listen on the FixedRows in order to do the modification in the VirtualFlow |
| private final VirtualFlow | |
| pack-priv BitSet | hBarValue
These variable try to optimize the layout of the rows in order not to layout every time every row. |
| private boolean | |
| private final EventHandler | |
| pack-priv BooleanProperty | lastRowLayout
When we try to select cells after a setGrid, we end up with the cell selected but no visual confirmation. |
| private final EventHandler | |
| private final List | |
| private final List | |
| private final TableView2 | |
| protected RowHeader | |
| pack-priv ObservableMap | rowHeightMap
When resizing, we save the height here in order to override default row height. |
| pack-priv BitSet | |
| private final ObservableList | selectedColumns
A list of Integer with the current selected Columns. |
| private final ObservableList | selectedRows
A list of Integer with the current selected Rows. |
| private final IntegerProperty | size
Allows notifications in the TableView2 control |
| pack-priv TableHeaderRow | |
| protected TableView2 | |
| private final InvalidationListener | vbarValueListener
When the vertical moves, we update the rowHeader |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | computeFixedRowHeight()
We compute the total height of the fixedRows so that the selection can use it without performance regression. |
| public final boolean | Returns: whether or not the row at the specified index is currently being displayedthe index index)Indicates whether or not the row at the specified index is currently being displayed. |
| public TableRow | |
| protected TableHeaderRow | createTableHeaderRow()
Overrides javafx. Creates a new TableHeaderRow instance. |
| protected VirtualFlow | createVirtualFlow()
Overrides javafx. Create the virtualized container that handles the layout and scrolling of all the cells. |
| pack-priv void | |
| public int | |
| protected final ObservableSet | |
| public int | Returns: the index of the first rowthe index index)This return the first index displaying a cell in case of a rowSpan. |
| public double | |
| private int | |
| pack-priv final TableView2VirtualFlow | |
| public ScrollBar | |
| public final int | getItemCount()
Implements abstract javafx. Returns the total number of items in this container, including those that are currently hidden because they are out of view. |
| public TableRow | Returns: theTableView2the number of row index)This return the row at the specified index in the list. |
| private double | |
| public double | Returns: the row heightthe number of row row)Compute the height of a particular row. |
| public TableRow | Returns: theTableRow2the index index)This returns the TableRow2 which has the specified index if found. |
| public ObservableList | |
| public ObservableList | |
| protected SouthTableHeaderRow | |
| protected TableHeaderRow2 | |
| pack-priv BooleanProperty | |
| public ScrollBar | |
| protected int | |
| protected final void | |
| private BitSet | |
| protected boolean | |
| protected void | layoutChildren(double x, double y, double w, final double h)
Overrides javafx. Called during the layout pass of the scenegraph. |
| protected void | onFocusAboveCell()
Overrides javafx. 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()
Overrides javafx. 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 | onSelectAboveCell()
Overrides javafx. 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()
Overrides javafx. Called when the selection is set on the cell below the current focused cell in order to scroll to it to make it visible. |
| public void | scrollHorizontally()
Overrides javafx. Scrolls to the column containing the current focused cell. |
| protected void | scrollHorizontally(TableColumn<S, ?> col)
Overrides javafx. Programmatically scrolls to the given column. |
| private void | scrollToVisibleCell(Number newIndex, Number oldIndex)
We try to make visible the rows that may be hidden by Fixed rows. |
| public void | setHbarValue(double
the horizontal value value)If the scene is not yet instantiated, we need to wait otherwise the VirtualFlow will not shift the cells properly. |
| public void | |
| public final IntegerProperty | |
| private void | |
| private void |
| currentlyFixedRow | back to summary |
|---|---|
| private final ObservableSet<Integer> currentlyFixedRow The currently fixedRow. This handles an Integer's set of rows being fixed. NOT Fixable but truly fixed. | |
| currentlyFixedRowListener | back to summary |
|---|---|
| private final SetChangeListener<? super Integer> currentlyFixedRowListener We listen on the currentlyFixedRow in order to do the modification in the FixedRowHeight. | |
| DEFAULT_CELL_HEIGHT | back to summary |
|---|---|
| private static final double DEFAULT_CELL_HEIGHT Default height of a row. | |
| deportedCells | back to summary |
|---|---|
| pack-priv final Map<TableRow2<S>, Set<TableCell<S, ?>>> deportedCells When we add some tableCell to some topRow in order for them to be on top in term of z-order. We may end up with the situation where the row that put the cell is not in the ViewPort anymore. For example when a fixedRow has taken over the real row when scrolling down. Then, the tableCell added is still hanging out in the topRow. That tableCell has no clue that its "creator" has been destroyed or re-used since that tableCell was not technically belonging to its "creator". Therefore, we need to track those cells in order to remove them each time. | |
| fixedColumnsListener | back to summary |
|---|---|
| private final ListChangeListener<TableColumn<S, T>> fixedColumnsListener We listen on the FixedColumns in order to do the modification in the VirtualFlow. | |
| fixedColumnWidth | back to summary |
|---|---|
| pack-priv double fixedColumnWidth This is the current width used by the currently fixed column on the left. | |
| fixedRowHeight | back to summary |
|---|---|
| private double fixedRowHeight The total height of the currently fixedRows. | |
| fixedRowsListener | back to summary |
|---|---|
| private final ListChangeListener<Integer> fixedRowsListener We listen on the FixedRows in order to do the modification in the VirtualFlow | |
| flow | back to summary |
|---|---|
| private final VirtualFlow<TableRow<S>> flow | |
| hBarValue | back to summary |
|---|---|
| pack-priv BitSet hBarValue These variable try to optimize the layout of the rows in order not to layout every time every row. So rowToLayout contains the rows that really needs layout(contain span or fixed). And hBarValue is an indicator for the VirtualFlow. When the Hbar is touched, this BitSet is set to false. And when a row is drawing, it flips its value in this BitSet. So that we know when scrolling up or down whether a row has taken into account that the HBar was moved (otherwise, blank area may appear). | |
| key | back to summary |
|---|---|
| private boolean key | |
| keyPressedEventHandler | back to summary |
|---|---|
| private final EventHandler<KeyEvent> keyPressedEventHandler | |
| lastRowLayout | back to summary |
|---|---|
| pack-priv BooleanProperty lastRowLayout When we try to select cells after a setGrid, we end up with the cell selected but no visual confirmation. In order to prevent that, we need to warn the selectionModel when the layout is starting and then the selectionModel will do the appropriate actions in order to force the visual to come. | |
| mousePressedEventHandler | back to summary |
|---|---|
| private final EventHandler<MouseEvent> mousePressedEventHandler | |
| oldSelectedColumns | back to summary |
|---|---|
| private final List<Integer> oldSelectedColumns | |
| oldSelectedRows | back to summary |
|---|---|
| private final List<Integer> oldSelectedRows | |
| parentTableView | back to summary |
|---|---|
| private final TableView2<S> parentTableView | |
| rowHeader | back to summary |
|---|---|
| protected RowHeader<S> rowHeader | |
| rowHeightMap | back to summary |
|---|---|
| pack-priv ObservableMap<Integer, Double> rowHeightMap When resizing, we save the height here in order to override default row height. package protected. | |
| rowToLayout | back to summary |
|---|---|
| pack-priv BitSet rowToLayout | |
| selectedColumns | back to summary |
|---|---|
| private final ObservableList<Integer> selectedColumns A list of Integer with the current selected Columns. This is useful for TableHeaderRow2 and RowHeader because they need to highlight when a selection is made. | |
| selectedRows | back to summary |
|---|---|
| private final ObservableList<Integer> selectedRows A list of Integer with the current selected Rows. This is useful for TableHeaderRow2 and RowHeader because they need to highlight when a selection is made. | |
| size | back to summary |
|---|---|
| private final IntegerProperty size Allows notifications in the TableView2 control | |
| tableHeaderRow | back to summary |
|---|---|
| pack-priv TableHeaderRow tableHeaderRow Hides javafx. | |
| tableView | back to summary |
|---|---|
| protected TableView2<S> tableView | |
| vbarValueListener | back to summary |
|---|---|
| private final InvalidationListener vbarValueListener When the vertical moves, we update the rowHeader | |
| TableView2Skin | back to summary |
|---|---|
public TableView2Skin(TableView2<S> tableView)
| |
| computeFixedRowHeight | back to summary |
|---|---|
| public final void computeFixedRowHeight() We compute the total height of the fixedRows so that the selection can use it without performance regression. | |
| containsRow | back to summary |
|---|---|
| public final boolean containsRow(int index) Indicates whether or not the row at the specified index is currently being displayed.
| |
| createCell | back to summary |
|---|---|
| public TableRow | |
| createTableHeaderRow | back to summary |
|---|---|
| protected TableHeaderRow createTableHeaderRow() Overrides javafx. Doc from javafx. 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).
| |
| createVirtualFlow | back to summary |
|---|---|
| protected VirtualFlow Overrides javafx. Doc from javafx. Create the virtualized container that handles the layout and scrolling of
all the cells. This enables skin subclasses to provide
a custom
| |
| focusScroll | back to summary |
|---|---|
| pack-priv void focusScroll() | |
| getCellsSize | back to summary |
|---|---|
| public int getCellsSize() | |
| getCurrentlyFixedRow | back to summary |
|---|---|
| protected final ObservableSet | |
| getFirstRow | back to summary |
|---|---|
| public int getFirstRow(TablePositionBase<?> pos, int index) This return the first index displaying a cell in case of a rowSpan. If the returned index is the same as given, it means the current cell is the one showing. Otherwise, it means another cell above will be the one drawn.
| |
| getFixedRowHeight | back to summary |
|---|---|
| public double getFixedRowHeight() | |
| getFixedRowSize | back to summary |
|---|---|
| private int getFixedRowSize() | |
| getFlow | back to summary |
|---|---|
| pack-priv final TableView2VirtualFlow | |
| getHBar | back to summary |
|---|---|
| public ScrollBar getHBar() | |
| getItemCount | back to summary |
|---|---|
| public final int getItemCount() Implements abstract javafx. Doc from javafx. Returns the total number of items in this container, including those that are currently hidden because they are out of view.
| |
| getRow | back to summary |
|---|---|
| public TableRow This return the row at the specified index in the list. The index specified HAS NOTHING to do with the index of the row.
| |
| getRowHeaderOffset | back to summary |
|---|---|
| private double getRowHeaderOffset() | |
| getRowHeight | back to summary |
|---|---|
| public double getRowHeight(int row) Compute the height of a particular row.
If
| |
| getRowIndexed | back to summary |
|---|---|
| public TableRow This returns the TableRow2 which has the specified index if found. Otherwise null is returned. | |
| getSelectedColumns | back to summary |
|---|---|
| public ObservableList | |
| getSelectedRows | back to summary |
|---|---|
| public ObservableList Contains the index of the sortedList.
| |
| getSouthHeader | back to summary |
|---|---|
| protected SouthTableHeaderRow getSouthHeader() | |
| getTableHeaderRow2 | back to summary |
|---|---|
| protected TableHeaderRow2 getTableHeaderRow2() | |
| getTableMenuButtonVisibleProperty | back to summary |
|---|---|
| pack-priv BooleanProperty getTableMenuButtonVisibleProperty() | |
| getVBar | back to summary |
|---|---|
| public ScrollBar getVBar() | |
| getViewColumn | back to summary |
|---|---|
| protected int getViewColumn(int modelColumn) | |
| init | back to summary |
|---|---|
| protected final void init() PRIVATE/PROTECTED METHOD * * | |
| initRowToLayoutBitSet | back to summary |
|---|---|
| private BitSet initRowToLayoutBitSet() Return a BitSet of the rows that needs layout all the time. This includes any row containing a span, or a fixed row. | |
| isColumnHeaderVisible | back to summary |
|---|---|
| protected boolean isColumnHeaderVisible() | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren(double x, double y, 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() Overrides javafx. Doc from javafx. 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() Overrides javafx. Doc from javafx. Called when the focus is set on the cell below the current focused cell in order to scroll to it to make it visible.
| |
| onSelectAboveCell | back to summary |
|---|---|
| protected void onSelectAboveCell() Overrides javafx. Doc from javafx. 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() Overrides javafx. Doc from javafx. Called when the selection is set on the cell below the current focused cell in order to scroll to it to make it visible.
| |
| scrollHorizontally | back to summary |
|---|---|
| public void scrollHorizontally() Overrides javafx. Doc from javafx. 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(TableColumn<S, ?> col) Overrides javafx. Doc from javafx. Programmatically scrolls to the given column. This call will ensure that the column is aligned on the left edge
of the
| |
| scrollToVisibleCell | back to summary |
|---|---|
| private void scrollToVisibleCell(Number newIndex, Number oldIndex) We try to make visible the rows that may be hidden by Fixed rows. | |
| setHbarValue | back to summary |
|---|---|
| public void setHbarValue(double value) If the scene is not yet instantiated, we need to wait otherwise the VirtualFlow will not shift the cells properly.
| |
| setHbarValue | back to summary |
|---|---|
| public void setHbarValue(double value, int count) | |
| sizeProperty | back to summary |
|---|---|
| public final IntegerProperty sizeProperty() | |
| updateHeaders | back to summary |
|---|---|
| private void updateHeaders() | |
| verticalScroll | back to summary |
|---|---|
| private void verticalScroll() | |