java.lang.Object
javafx.scene.control.ResizeFeaturesBase<TreeItem<S>>
javafx.scene.control.TreeTableView.ResizeFeatures<S>
- Enclosing class:
TreeTableView<S>
An immutable wrapper class for use in the TableView
column resize
functionality.- Since:
- JavaFX 8.0
-
Constructor Summary
ConstructorDescriptionResizeFeatures
(TreeTableView<S> treeTable, TreeTableColumn<S, ?> column, Double delta) Creates an instance of this class, with the provided TreeTableView, TreeTableColumn and delta values being set and stored in this immutable instance. -
Method Summary
Modifier and TypeMethodDescriptionTreeTableColumn<S,
?> Returns the column upon which the resize is occurring, or null if this ResizeFeatures instance was created as a result of a TreeTableView resize operation.double
Returns the width of the area available for columns.getTable()
Returns the TreeTableView upon which the resize operation is occurring.Returns the associated TreeView or TreeTableView control.Methods declared in class javafx.scene.control.ResizeFeaturesBase
getDelta, setColumnWidth
-
Constructor Details
-
ResizeFeatures
Creates an instance of this class, with the provided TreeTableView, TreeTableColumn and delta values being set and stored in this immutable instance.- Parameters:
treeTable
- The TreeTableView upon which the resize operation is occurring.column
- The column upon which the resize is occurring, or null if this ResizeFeatures instance is being created as a result of a TreeTableView resize operation.delta
- The amount of horizontal space added or removed in the resize operation.
-
-
Method Details
-
getColumn
Returns the column upon which the resize is occurring, or null if this ResizeFeatures instance was created as a result of a TreeTableView resize operation.- Overrides:
getColumn
in classResizeFeaturesBase<TreeItem<S>>
- Returns:
- the column upon which the resize is occurring
-
getTable
Returns the TreeTableView upon which the resize operation is occurring.- Returns:
- the TreeTableView upon which the resize operation is occurring
-
getTableControl
Description copied from class:ResizeFeaturesBase
Returns the associated TreeView or TreeTableView control.- Specified by:
getTableControl
in classResizeFeaturesBase<TreeItem<S>>
- Returns:
- the control in which the resize is occurring
-
getContentWidth
public double getContentWidth()Description copied from class:ResizeFeaturesBase
Returns the width of the area available for columns.- Specified by:
getContentWidth
in classResizeFeaturesBase<TreeItem<S>>
- Returns:
- the width availabe for columns
-