This class is used to construct the header of a TableView. We take the approach that every TableView header is nested - even if it isn't. This allows for us to use the same code for building a single row of TableColumns as we would with a heavily nested sequences of TableColumns. Because of this, the TableHeaderRow class consists of just one instance of a NestedTableColumnHeader.
TableColumnHeader, TableHeaderRow, TableColumnBase
| Modifier and Type | Field and Description |
|---|---|
| private ObservableList | |
| private ObservableList | columns
Represents the actual columns directly contained in this nested column. |
| private final ListChangeListener | |
| pack-priv static final String | |
| private static final int | |
| private double | |
| private Map | |
| private TableColumnHeader | |
| private double | |
| private static final EventHandler | |
| private static final EventHandler | |
| private static final EventHandler | |
| private static final EventHandler | |
| private static final String | |
| private static final String | |
| private ObservableList | |
| pack-priv boolean | |
| private final WeakListChangeListener |
| Access | Constructor and Description |
|---|---|
| public | NestedTableColumnHeader(final TableColumnBase<S, T>
The table column to be visually represented by this instance. tc)Creates a new NestedTableColumnHeader instance to visually represent the given
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private 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 double | computePrefWidth(double height)
Overrides javafx. Computes the preferred width of this region for the given height. |
| private TableColumnHeader | |
| protected TableColumnHeader | Returns: A new TableColumnHeader instance.the table column col)Creates a new TableColumnHeader instance for the given TableColumnBase instance. |
| pack-priv void | |
| public final ObservableList | Returns: the unmodifiable list of TableColumnHeader of this NestedTableColumnHeaderReturns an unmodifiable list of the |
| pack-priv ObservableList | |
| pack-priv double | |
| pack-priv void | |
| private boolean | |
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| private void | |
| pack-priv boolean | represents(TableColumnBase<?, ?> column)
Overrides javafx.
|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | setParentHeader(NestedTableColumnHeader parentHeader)
Overrides javafx.
|
| pack-priv void | |
| private void | |
| pack-priv void |
| columnHeaders | back to summary |
|---|---|
| private ObservableList<TableColumnHeader> columnHeaders | |
| columns | back to summary |
|---|---|
| private ObservableList<? extends TableColumnBase<S, T>> columns Represents the actual columns directly contained in this nested column. It does NOT include ANY of the children of these columns, if any exist. | |
| columnsListener | back to summary |
|---|---|
| private final ListChangeListener<TableColumnBase<S, T>> columnsListener | |
| DEFAULT_STYLE_CLASS | back to summary |
|---|---|
| pack-priv static final String DEFAULT_STYLE_CLASS Hides javafx. | |
| DRAG_RECT_WIDTH | back to summary |
|---|---|
| private static final int DRAG_RECT_WIDTH | |
| dragAnchorX | back to summary |
|---|---|
| private double dragAnchorX | |
| dragRects | back to summary |
|---|---|
| private Map<TableColumnBase<?, ?>, Rectangle> dragRects | |
| label | back to summary |
|---|---|
| private TableColumnHeader label | |
| lastX | back to summary |
|---|---|
| private double lastX | |
| rectCursorChangeListener | back to summary |
|---|---|
| private static final EventHandler<MouseEvent> rectCursorChangeListener | |
| rectMouseDragged | back to summary |
|---|---|
| private static final EventHandler<MouseEvent> rectMouseDragged | |
| rectMousePressed | back to summary |
|---|---|
| private static final EventHandler<MouseEvent> rectMousePressed | |
| rectMouseReleased | back to summary |
|---|---|
| private static final EventHandler<MouseEvent> rectMouseReleased | |
| TABLE_COLUMN_HEADER_KEY | back to summary |
|---|---|
| private static final String TABLE_COLUMN_HEADER_KEY | |
| TABLE_COLUMN_KEY | back to summary |
|---|---|
| private static final String TABLE_COLUMN_KEY | |
| unmodifiableColumnHeaders | back to summary |
|---|---|
| private ObservableList<TableColumnHeader> unmodifiableColumnHeaders | |
| updateColumns | back to summary |
|---|---|
| pack-priv boolean updateColumns | |
| weakColumnsListener | back to summary |
|---|---|
| private final WeakListChangeListener<E> weakColumnsListener | |
| NestedTableColumnHeader | back to summary |
|---|---|
| public NestedTableColumnHeader(final TableColumnBase<S, T> tc) Creates a new NestedTableColumnHeader instance to visually represent the given
| |
| checkState | back to summary |
|---|---|
| private void checkState() | |
| columnResizing | back to summary |
|---|---|
| private void columnResizing(TableColumnBase<S, T> col, MouseEvent me) | |
| columnResizingComplete | back to summary |
|---|---|
| private void columnResizingComplete(TableColumnBase<S, T> col, MouseEvent me) | |
| columnResizingStarted | back to summary |
|---|---|
| private void columnResizingStarted(double startX) | |
| 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.
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height) Overrides javafx. Doc from javafx. Computes the preferred width of this region for the given height. 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 VERTICAL content bias, then the height parameter can be ignored.
| |
| createColumnHeader | back to summary |
|---|---|
| private TableColumnHeader createColumnHeader(TableColumnBase<S, T> col) | |
| createTableColumnHeader | back to summary |
|---|---|
| protected TableColumnHeader createTableColumnHeader(TableColumnBase<S, T> col) Creates a new TableColumnHeader instance for the given TableColumnBase instance. The general pattern for implementing this method is as follows:
Note In most circumstances 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 |
|---|---|
| pack-priv void dispose() Overrides javafx.
| |
| getColumnHeaders | back to summary |
|---|---|
| public final ObservableList Returns an unmodifiable list of the
| |
| getColumns | back to summary |
|---|---|
| pack-priv ObservableList | |
| getDragRectHeight | back to summary |
|---|---|
| pack-priv double getDragRectHeight() Overrides javafx.
| |
| initStyleClasses | back to summary |
|---|---|
| pack-priv void initStyleClasses() Overrides javafx.
| |
| isColumnResizingEnabled | back to summary |
|---|---|
| private boolean isColumnResizingEnabled() | |
| 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.
| |
| rebuildDragRects | back to summary |
|---|---|
| private void rebuildDragRects() | |
| represents | back to summary |
|---|---|
| pack-priv boolean represents(TableColumnBase<?, ?> column) Overrides javafx.
| |
| setColumns | back to summary |
|---|---|
| pack-priv void setColumns(ObservableList<? extends TableColumnBase<S, T>> newColumns) | |
| setHeadersNeedUpdate | back to summary |
|---|---|
| pack-priv void setHeadersNeedUpdate() | |
| setParentHeader | back to summary |
|---|---|
| pack-priv void setParentHeader(NestedTableColumnHeader parentHeader) Overrides javafx.
| |
| setTableHeaderRow | back to summary |
|---|---|
| pack-priv void setTableHeaderRow(TableHeaderRow header) Overrides javafx.
| |
| updateContent | back to summary |
|---|---|
| private void updateContent() | |
| updateTableColumnHeaders | back to summary |
|---|---|
| pack-priv void updateTableColumnHeaders() | |