Class TreeTableView.ResizeFeatures<S>
java.lang.Object
javafx.scene.control.ResizeFeaturesBase<TreeItem<S>>
javafx.scene.control.TreeTableView.ResizeFeatures<S>
- Type Parameters:
-
S- the type of the TreeItem instances used in this TreeTableView
- Enclosing class:
TreeTableView<S>
public static class TreeTableView.ResizeFeatures<S> extends ResizeFeaturesBase<TreeItem<S>>
An immutable wrapper class for use in the TableView
column resize functionality.- Since:
- JavaFX 8.0
Constructor Summary
| Constructor | Description |
|---|---|
ResizeFeatures |
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 Type | Method | Description |
|---|---|---|
TreeTableColumn |
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. |
double |
getContentWidth() |
Returns the width of the area available for columns. |
TreeTableView |
getTable() |
Returns the TreeTableView upon which the resize operation is occurring. |
Control |
getTableControl() |
Returns the associated TreeView or TreeTableView control. |
Methods declared in class javafx.scene.control.ResizeFeaturesBase
getDelta, setColumnWidth
Constructor Details
ResizeFeatures
public ResizeFeatures(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.
- 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
public TreeTableColumn<S,?> 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:
-
getColumnin classResizeFeaturesBase<TreeItem<S>> - Returns:
- the column upon which the resize is occurring
getTable
public TreeTableView<S> getTable()
Returns the TreeTableView upon which the resize operation is occurring.
- Returns:
- the TreeTableView upon which the resize operation is occurring
getTableControl
public Control getTableControl()
Description copied from class:
ResizeFeaturesBaseReturns the associated TreeView or TreeTableView control.
- Specified by:
-
getTableControlin classResizeFeaturesBase<TreeItem<S>> - Returns:
- the control in which the resize is occurring
getContentWidth
public double getContentWidth()
Description copied from class:
ResizeFeaturesBaseReturns the width of the area available for columns.
- Specified by:
-
getContentWidthin classResizeFeaturesBase<TreeItem<S>> - Returns:
- the width available for columns
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.