Top Description Fields Constructors Methods
impl.org.controlsfx.tableview2

public Class NestedTableColumnHeader2

extends NestedTableColumnHeader
Class Inheritance
Imports
javafx.beans.InvalidationListener, .Observable, javafx.collections.ObservableList, javafx.scene.Node, javafx.scene.control.ContextMenu, .TableColumn, .TableColumnBase, javafx.scene.control.skin.NestedTableColumnHeader, .TableColumnHeader, javafx.scene.input.MouseButton, .MouseEvent, javafx.scene.shape.Rectangle, org.controlsfx.control.tableview2.TableView2

A cell column header.

Field Summary

Modifier and TypeField and Description
pack-priv int
private TableView2Skin<?>
private TableView2<?>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
private void
addMouseReleasedListener(TableColumnHeader tableColumnHeader)

If a dragging event to reorder the column is cancelled, when the mouse is released, the column is marked as reorderable so it can be reordered again.

protected TableColumnHeader
createTableColumnHeader(final TableColumnBase<S, T> col)

Overrides javafx.scene.control.skin.NestedTableColumnHeader.createTableColumnHeader.

Creates a new TableColumnHeader instance for the given TableColumnBase instance.

private void
init()

protected void
layoutChildren()

Overrides javafx.scene.control.skin.NestedTableColumnHeader.layoutChildren.

Invoked during the layout pass to layout the children in this Parent.

public void
layoutFixedColumns()

We want ColumnHeader to be fixed when we freeze some columns

private void
Inherited from javafx.scene.control.skin.NestedTableColumnHeader:
computePrefHeightcomputePrefWidthgetColumnHeaders

Field Detail

lastColumnResizedback to summary
pack-priv int lastColumnResized
skinback to summary
private TableView2Skin<?> skin
tableViewback to summary
private TableView2<?> tableView

Constructor Detail

NestedTableColumnHeader2back to summary
public NestedTableColumnHeader2(TableColumnBase<?, ?> tc)

Method Detail

addMousePressedListenerback to summary
private void addMousePressedListener(TableColumnHeader tableColumnHeader)
addMouseReleasedListenerback to summary
private void addMouseReleasedListener(TableColumnHeader tableColumnHeader)

If a dragging event to reorder the column is cancelled, when the mouse is released, the column is marked as reorderable so it can be reordered again.

createTableColumnHeaderback to summary
protected TableColumnHeader createTableColumnHeader(final TableColumnBase<S, T> col)

Overrides javafx.scene.control.skin.NestedTableColumnHeader.createTableColumnHeader.

Doc from javafx.scene.control.skin.NestedTableColumnHeader.createTableColumnHeader.

Creates a new TableColumnHeader instance for the given TableColumnBase instance. The general pattern for implementing this method is as follows:

  • If the given TableColumnBase instance is null, has no child columns, or if the given TableColumnBase instance equals the TableColumnBase instance returned by calling getTableColumn(), then it is suggested to return a TableColumnHeader instance comprised of the given column.
  • Otherwise, we can presume that the given TableColumnBase instance has child columns, and in this case it is suggested to return a NestedTableColumnHeader instance instead.

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).

Annotations
@Override
initback to summary
private void init()
layoutChildrenback to summary
protected void layoutChildren()

Overrides javafx.scene.control.skin.NestedTableColumnHeader.layoutChildren.

Doc from javafx.scene.control.skin.NestedTableColumnHeader.layoutChildren.

Invoked during the layout pass to layout the children in this Parent. By default it will only set the size of managed, resizable content to their preferred sizes and does not do any node positioning.

Subclasses should override this function to layout content as needed.

Annotations
@Override
layoutFixedColumnsback to summary
public void layoutFixedColumns()

We want ColumnHeader to be fixed when we freeze some columns

updateDragRectanglesback to summary
private void updateDragRectangles()