public class SpreadsheetColumn extends Object
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 fix 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 fixing constraints.
If the column can be fixed, a dot is displayed in the header and 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 fix it.

SpreadsheetView| Modifier and Type | Method and Description |
|---|---|
void |
fitColumn()
If the column is resizable, it will compute the optimum width for all the
visible cells to be visible.
|
double |
getWidth()
Return the actual width of the column.
|
boolean |
isColumnFixable()
Indicate whether this column can be fixed or not.
|
boolean |
isFixed()
Return whether this column is fixed or not.
|
void |
setFixed(boolean fixed)
Fix this column to the left if possible, although it is recommended that
you call
isColumnFixable() before trying to fix a column. |
void |
setPrefWidth(double width)
Set the width of this column.
|
void |
setResizable(boolean b)
If this column can be resized by the user
|
public boolean isFixed()
public void setFixed(boolean fixed)
isColumnFixable() before trying to fix a column.fixed - public void setPrefWidth(double width)
width - public double getWidth()
public void setResizable(boolean b)
b - public void fitColumn()
public boolean isColumnFixable()
setFixed(boolean) or adding an item to
SpreadsheetView.getFixedColumns().