SpreadsheetView is made up of a number of SpreadsheetColumn
instances.
SpreadsheetView itself, so there is no public constructor for this
class. To access the available columns, you need to call
SpreadsheetView#getColumns().
SpreadsheetColumn gives you the ability to modify some aspects of the column,
for example the width or
resizability of the column.
You have the ability to freeze this column at the left of the SpreadsheetView by
calling setFixed(boolean). But you are strongly advised to check if
it is possible with isColumnFixable() before calling
setFixed(boolean). Take a look at the SpreadsheetView
description to understand the freezing constraints.
If the column can be frozen, a ContextMenu will appear if the user right-clicks on it.
If not, nothing will appear and the user will not have the possibility to freeze it.

SpreadsheetView
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| pack-priv final TableColumn | |
| private final ObjectProperty | |
| private MenuItem | |
| private final Integer | |
| private final SpreadsheetView | spreadsheetView
Private Fields * * |
| Access | Constructor and Description |
|---|---|
| pack-priv | SpreadsheetColumn(final TableColumn<ObservableList<SpreadsheetCell>, SpreadsheetCell> column, final SpreadsheetView spreadsheetView, final Integer indexColumn, Grid grid)
Creates a new SpreadsheetColumn. |
| Modifier and Type | Method and Description |
|---|---|
| public ObjectProperty | |
| public void | fitColumn()
If the column is resizable, it will compute the optimum width for all the visible cells to be visible. |
| private ContextMenu | Returns: a context menu.Generate a context Menu in order to freeze/unfreeze some column It is shown when right-clicking on the column header |
| public Filter | |
| public final double | Returns: the maximum width for this SpreadsheetColumn.Return the maximum width for this SpreadsheetColumn. |
| public final double | Returns: the minimum width for this SpreadsheetColumn.Return the minimum width for this SpreadsheetColumn. |
| private String | |
| public double | |
| private boolean | |
| public boolean | Returns: true if this column is freezable.Indicate whether this column can be frozen or not. |
| public boolean | |
| public final DoubleProperty | Returns: the Property related to the maximum width of this SpreadsheetColumn.Return the Property related to the maximum width of this SpreadsheetColumn. |
| public final DoubleProperty | Returns: the Property related to the minimum width of this SpreadsheetColumn.Return the Property related to the minimum width of this SpreadsheetColumn. |
| public void | |
| public void | setFixed(boolean fixed)
Freeze this column to the left if possible, although it is recommended that
you call |
| public final void | |
| public final void | |
| public void | |
| public void | |
| private void | |
| public final ReadOnlyDoubleProperty | Returns: the Property related to the actual width of the column.Return the Property related to the actual width of the column. |
| canFix | back to summary |
|---|---|
| private final boolean canFix | |
| column | back to summary |
|---|---|
| pack-priv final TableColumn<ObservableList<SpreadsheetCell>, SpreadsheetCell> column | |
| filterProperty | back to summary |
|---|---|
| private final ObjectProperty<Filter> filterProperty | |
| fixItem | back to summary |
|---|---|
| private MenuItem fixItem | |
| indexColumn | back to summary |
|---|---|
| private final Integer indexColumn | |
| spreadsheetView | back to summary |
|---|---|
| private final SpreadsheetView spreadsheetView Private Fields * * | |
| SpreadsheetColumn | back to summary |
|---|---|
| pack-priv SpreadsheetColumn(final TableColumn<ObservableList<SpreadsheetCell>, SpreadsheetCell> column, final SpreadsheetView spreadsheetView, final Integer indexColumn, Grid grid) Creates a new SpreadsheetColumn. | |
| filterProperty | back to summary |
|---|---|
| public ObjectProperty | |
| fitColumn | back to summary |
|---|---|
| public void fitColumn() If the column is resizable, it will compute the optimum width for all the visible cells to be visible. | |
| getColumnContextMenu | back to summary |
|---|---|
| private ContextMenu getColumnContextMenu() Generate a context Menu in order to freeze/unfreeze some column It is shown when right-clicking on the column header
| |
| getFilter | back to summary |
|---|---|
| public Filter getFilter() | |
| getMaxWidth | back to summary |
|---|---|
| public final double getMaxWidth() Return the maximum width for this SpreadsheetColumn.
| |
| getMinWidth | back to summary |
|---|---|
| public final double getMinWidth() Return the minimum width for this SpreadsheetColumn.
| |
| getText | back to summary |
|---|---|
| private String getText() | |
| getWidth | back to summary |
|---|---|
| public double getWidth() Return the actual width of the column.
| |
| initCanFix | back to summary |
|---|---|
| private boolean initCanFix(Grid grid) Verify that you can freeze this column.
| |
| isColumnFixable | back to summary |
|---|---|
| public boolean isColumnFixable() Indicate whether this column can be frozen or not. Call that method before
calling
| |
| isFixed | back to summary |
|---|---|
| public boolean isFixed() Return whether this column is frozen or not.
| |
| maxWidthProperty | back to summary |
|---|---|
| public final DoubleProperty maxWidthProperty() Return the Property related to the maximum width of this SpreadsheetColumn.
| |
| minWidthProperty | back to summary |
|---|---|
| public final DoubleProperty minWidthProperty() Return the Property related to the minimum width of this SpreadsheetColumn.
| |
| setFilter | back to summary |
|---|---|
| public void setFilter(Filter filter) | |
| setFixed | back to summary |
|---|---|
| public void setFixed(boolean fixed) Freeze this column to the left if possible, although it is recommended that
you call | |
| setMaxWidth | back to summary |
|---|---|
| public final void setMaxWidth(double value) Set the maximum width for this SpreadsheetColumn. | |
| setMinWidth | back to summary |
|---|---|
| public final void setMinWidth(double value) Set the minimum width for this SpreadsheetColumn. | |
| setPrefWidth | back to summary |
|---|---|
| public void setPrefWidth(double width) Set the width of this column. | |
| setResizable | back to summary |
|---|---|
| public void setResizable(boolean b) If this column can be resized by the user | |
| setText | back to summary |
|---|---|
| private void setText(String text) Private Methods * * | |
| widthProperty | back to summary |
|---|---|
| public final ReadOnlyDoubleProperty widthProperty() Return the Property related to the actual width of the column.
| |