Top Description Constructors Methods
impl.org.controlsfx.spreadsheet

public Class HorizontalHeaderColumn

extends NestedTableColumnHeader
Class Inheritance
Imports
javafx.beans.value.ChangeListener, .ObservableValue, org.controlsfx.control.spreadsheet.SpreadsheetView, javafx.event.EventHandler, javafx.scene.control.TableColumnBase, javafx.scene.input.MouseEvent, javafx.beans.Observable, javafx.scene.control.skin.NestedTableColumnHeader, .TableColumnHeader, .TableViewSkinBase

A cell column header.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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.

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

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

Constructor Detail

HorizontalHeaderColumnback to summary
public HorizontalHeaderColumn(TableColumnBase<?, ?> tc)

Method Detail

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