| Modifier and Type | Field and Description |
|---|---|
| private final ListChangeListener | fixedColumnsListener
When we freeze/unfreeze some columns, we change the style of the Label header text |
| pack-priv final GridViewSkin | |
| private final ChangeListener | horizontalHeaderVisibilityListener
Whether the Horizontal Header is showing, we need to toggle its visibility. |
| private int | |
| protected BitSet | selectedColumns
When the columns header are clicked, we consider the column as selected. |
| private final InvalidationListener | selectionListener
When we select some cells, we want the header to be highlighted |
| private final InvalidationListener | verticalHeaderListener
Whether the Vertical Header is showing, we need to update the width because some space on the left will be available/used. |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| pack-priv void | |
| protected double | computePrefHeight(double width)
Overrides javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. |
| protected NestedTableColumnHeader | createRootHeader()
Overrides javafx. Creates a new NestedTableColumnHeader instance. |
| private void | |
| private void | headerClicked(TableColumn<S, T> column, MouseEvent event)
If a header is clicked, we must select the whole column. |
| public void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| protected void | updateScrollX()
Overrides javafx. Called whenever the value of the horizontal scrollbar changes in order to request layout changes, shifting the
|
| protected void | updateTableWidth()
Overrides javafx. Protected methods |
| fixedColumnsListener | back to summary |
|---|---|
| private final ListChangeListener<SpreadsheetColumn> fixedColumnsListener When we freeze/unfreeze some columns, we change the style of the Label header text | |
| gridViewSkin | back to summary |
|---|---|
| pack-priv final GridViewSkin gridViewSkin | |
| horizontalHeaderVisibilityListener | back to summary |
|---|---|
| private final ChangeListener<Boolean> horizontalHeaderVisibilityListener Whether the Horizontal Header is showing, we need to toggle its visibility. | |
| lastColumnResized | back to summary |
|---|---|
| private int lastColumnResized | |
| selectedColumns | back to summary |
|---|---|
| protected BitSet selectedColumns When the columns header are clicked, we consider the column as selected. This BitSet is reset when a modification on cells is done. | |
| selectionListener | back to summary |
|---|---|
| private final InvalidationListener selectionListener When we select some cells, we want the header to be highlighted | |
| verticalHeaderListener | back to summary |
|---|---|
| private final InvalidationListener verticalHeaderListener Whether the Vertical Header is showing, we need to update the width because some space on the left will be available/used. | |
| working | back to summary |
|---|---|
| private boolean working | |
| HorizontalHeader | back to summary |
|---|---|
| public HorizontalHeader(final GridViewSkin skin) Constructor | |
| addStyleHeader | back to summary |
|---|---|
| private void addStyleHeader(Integer i) Remove the freeze style of the header Label of the specified column | |
| clearSelectedColumns | back to summary |
|---|---|
| pack-priv void clearSelectedColumns() | |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width) Overrides javafx. Doc from javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| createRootHeader | back to summary |
|---|---|
| protected NestedTableColumnHeader createRootHeader() Overrides javafx. Doc from javafx. Creates a new NestedTableColumnHeader 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).
| |
| fixColumn | back to summary |
|---|---|
| private void fixColumn(SpreadsheetColumn column) Fix this column regarding the style | |
| headerClicked | back to summary |
|---|---|
| private void headerClicked(TableColumn<S, T> column, MouseEvent event) If a header is clicked, we must select the whole column. If Control key of
Shift key is pressed, we must not deselect the previous selection but
just act like the | |
| init | back to summary |
|---|---|
| public void init() Public API | |
| installHeaderMouseEvent | back to summary |
|---|---|
| private void installHeaderMouseEvent() When we click on header, we want to select the whole column. | |
| removeStyleHeader | back to summary |
|---|---|
| private void removeStyleHeader(Integer i) Add the freeze style of the header Label of the specified column | |
| unfixColumn | back to summary |
|---|---|
| private void unfixColumn(SpreadsheetColumn column) Unfix this column regarding the style | |
| updateHighlightSelection | back to summary |
|---|---|
| private void updateHighlightSelection() Highlight the header Label when selection change. | |
| updateHorizontalHeaderVisibility | back to summary |
|---|---|
| private void updateHorizontalHeaderVisibility(boolean visible) | |
| updateScrollX | back to summary |
|---|---|
| protected void updateScrollX() Overrides javafx. Doc from javafx. Called whenever the value of the horizontal scrollbar changes in order to request layout changes, shifting the
For example, if custom components are added around a
| |
| updateTableWidth | back to summary |
|---|---|
| protected void updateTableWidth() Overrides javafx. Protected methods
| |