Top Description Fields Constructors Methods
javafx.scene.control

public abstract Class ResizeFeaturesBase<S>

extends Object
Class Inheritance
Known Direct Subclasses
javafx.scene.control.TableView.ResizeFeatures, javafx.scene.control.TreeTableView.ResizeFeatures
Type Parameters
<S>
the type of the objects contained within the control's items list
Imports
javafx.beans.NamedArg

A wrapper class for use by the column resize policies offered by controls such as TableView and TreeTableView.
Since
JavaFX 8.0

Field Summary

Modifier and TypeField and Description
private final TableColumnBase<S, ?>
private final Double

Constructor Summary

AccessConstructor and Description
public
ResizeFeaturesBase(TableColumnBase<S, ?>
The column upon which the resize is occurring, or null if this ResizeFeatures instance is being created as a result of a resize operation.
column
,
Double
The amount of horizontal space added or removed in the resize operation.
delta
)

Creates an instance of this class, with the provided TableColumnBase and delta values being set and stored in this immutable instance.

Method Summary

Modifier and TypeMethod and Description
public TableColumnBase<S, ?>

Returns:

the column upon which the resize is occurring
getColumn
()

Returns the column upon which the resize is occurring, or null if this ResizeFeatures instance was created as a result of a resize operation.

public abstract double

Returns:

the width available for columns
getContentWidth
()

Returns the width of the area available for columns.

public Double

Returns:

the amount of horizontal space added or removed in the resize operation
getDelta
()

Returns the amount of horizontal space added or removed in the resize operation.

public abstract Control

Returns:

the control in which the resize is occurring
getTableControl
()

Returns the associated TreeView or TreeTableView control.

public void
setColumnWidth(TableColumnBase<S, ?>
column being changed
col
,
double
desired column width
width
)

Sets the column width during the resizing pass.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnback to summary
private final TableColumnBase<S, ?> column
deltaback to summary
private final Double delta

Constructor Detail

ResizeFeaturesBaseback to summary
public ResizeFeaturesBase(TableColumnBase<S, ?> column, Double delta)

Creates an instance of this class, with the provided TableColumnBase and delta values being set and stored in this immutable instance.

Parameters
column:TableColumnBase<S, ?>

The column upon which the resize is occurring, or null if this ResizeFeatures instance is being created as a result of a resize operation.

delta:Double

The amount of horizontal space added or removed in the resize operation.

Method Detail

getColumnback to summary
public TableColumnBase<S, ?> getColumn()

Returns the column upon which the resize is occurring, or null if this ResizeFeatures instance was created as a result of a resize operation.

Returns:TableColumnBase<S, ?>

the column upon which the resize is occurring

getContentWidthback to summary
public abstract double getContentWidth()

Returns the width of the area available for columns.

Returns:double

the width available for columns

Since
20
getDeltaback to summary
public Double getDelta()

Returns the amount of horizontal space added or removed in the resize operation.

Returns:Double

the amount of horizontal space added or removed in the resize operation

getTableControlback to summary
public abstract Control getTableControl()

Returns the associated TreeView or TreeTableView control.

Returns:Control

the control in which the resize is occurring

Since
20
setColumnWidthback to summary
public void setColumnWidth(TableColumnBase<S, ?> col, double width)

Sets the column width during the resizing pass.

Parameters
col:TableColumnBase<S, ?>

column being changed

width:double

desired column width

Since
20