Spec-Zone.ru › OpenJavaFX 24

Class TableView.ResizeFeatures<S>

java.lang.Object
javafx.scene.control.ResizeFeaturesBase<S>
javafx.scene.control.TableView.ResizeFeatures<S>
Type Parameters:
S - the type of the objects contained within the TableView items list
Enclosing class:
TableView<S>
public static class TableView.ResizeFeatures<S> extends ResizeFeaturesBase<S>
An immutable wrapper class for use in the TableView column resize functionality.
Since:
JavaFX 2.0

Constructor Summary

Constructor Description
ResizeFeatures(TableView<S> table, TableColumn<S,?> column, Double delta)
Creates an instance of this class, with the provided TableView, TableColumn and delta values being set and stored in this immutable instance.

Method Summary

Modifier and Type Method Description
TableColumn<S,?> getColumn()
Returns the column upon which the resize is occurring, or null if this ResizeFeatures instance was created as a result of a TableView resize operation.
double getContentWidth()
Returns the width of the area available for columns.
TableView<S> getTable()
Returns the TableView 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

Methods declared in class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

ResizeFeatures

public ResizeFeatures(TableView<S> table, TableColumn<S,?> column, Double delta)
Creates an instance of this class, with the provided TableView, TableColumn and delta values being set and stored in this immutable instance.
Parameters:
table - The TableView 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 TableView resize operation.
delta - The amount of horizontal space added or removed in the resize operation.

Method Details

getColumn

public TableColumn<S,?> getColumn()
Returns the column upon which the resize is occurring, or null if this ResizeFeatures instance was created as a result of a TableView resize operation.
Overrides:
getColumn in class ResizeFeaturesBase<S>
Returns:
the column upon which the resize is occurring

getTable

public TableView<S> getTable()
Returns the TableView upon which the resize operation is occurring.
Returns:
the TableView

getTableControl

public Control getTableControl()
Description copied from class: ResizeFeaturesBase
Returns the associated TreeView or TreeTableView control.
Specified by:
getTableControl in class ResizeFeaturesBase<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 class ResizeFeaturesBase<S>
Returns:
the width available for columns

Report a bug or suggest an enhancement
Copyright © 2008, 2025, Oracle and/or its affiliates. All rights reserved.

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API