Class ResizeFeaturesBase<S>
java.lang.Object
javafx.scene.control.ResizeFeaturesBase<S>
- Type Parameters:
- S- the type of the objects contained within the control's items list
- Direct Known Subclasses:
- TableView.ResizeFeatures,- TreeTableView.ResizeFeatures
A wrapper class for use by the column resize policies offered by
 controls such as 
TableView and TreeTableView.- Since:
- JavaFX 8.0
- 
Constructor SummaryConstructorsConstructorDescriptionResizeFeaturesBase(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.
- 
Method SummaryModifier and TypeMethodDescriptionTableColumnBase<S, ?> Returns the column upon which the resize is occurring, or null if this ResizeFeatures instance was created as a result of a resize operation.abstract doubleReturns the width of the area available for columns.getDelta()Returns the amount of horizontal space added or removed in the resize operation.abstract ControlReturns the associated TreeView or TreeTableView control.voidsetColumnWidth(TableColumnBase<S, ?> col, double width) Sets the column width during the resizing pass.
- 
Constructor Details- 
ResizeFeaturesBaseCreates an instance of this class, with the provided TableColumnBase and delta values being set and stored in this immutable instance.- Parameters:
- column- 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- The amount of horizontal space added or removed in the resize operation.
 
 
- 
- 
Method Details- 
getContentWidthpublic abstract double getContentWidth()Returns the width of the area available for columns.- Returns:
- the width available for columns
- Since:
- 20
 
- 
getTableControlReturns the associated TreeView or TreeTableView control.- Returns:
- the control in which the resize is occurring
- Since:
- 20
 
- 
getColumnReturns the column upon which the resize is occurring, or null if this ResizeFeatures instance was created as a result of a resize operation.- Returns:
- the column upon which the resize is occurring
 
- 
getDeltaReturns the amount of horizontal space added or removed in the resize operation.- Returns:
- the amount of horizontal space added or removed in the resize operation
 
- 
setColumnWidthSets the column width during the resizing pass.- Parameters:
- col- column being changed
- width- desired column width
- Since:
- 20
 
 
-