Top Description Inners Fields Constructors Methods
org.controlsfx.control.tableview2

public Class TableView2<S>

extends TableView<S>
Class Inheritance
Known Direct Subclasses
org.controlsfx.control.tableview2.FilteredTableView
Type Parameters
<S>
The type of the objects contained within the TableView2 items list.
Imports
impl.org.controlsfx.tableview2.SortUtils.SortEndedEvent, .SortUtils.SortStartedEvent, .TableView2Skin, javafx.beans.InvalidationListener, .Observable, javafx.beans.property.BooleanProperty, .DoubleProperty, .ObjectProperty, .ReadOnlyBooleanProperty, .SimpleBooleanProperty, .SimpleDoubleProperty, .SimpleObjectProperty, javafx.collections.FXCollections, .ListChangeListener, .ObservableList, javafx.scene.control.ContextMenu, .Skin, .TableColumn, .TablePosition, .TableView, org.controlsfx.control.tableview2.actions.ColumnFixAction, .RowFixAction, org.controlsfx.control.tableview2.cell.ComboBox2TableCell, .TextField2TableCell, java.util.ArrayList, .BitSet, .List, .Objects, java.util.function.BiFunction, java.util.stream.Collectors

The TableView2 is an advanced JavaFX TableView control, that can be used as drop-in replacement control for the existing TableView, and provides different functionalities and use cases.

Features


Fixing Rows and Columns


Rows and columns can be fixed using dedicated actions like ColumnFixAction and RowFixAction. When fixed, the header's background will show a darker color. For instance, these actions can be attached to a ContextMenu that can be installed to the row header cells with rowHeaderContextMenuFactory.
You have also the possibility to fix them manually by adding and removing items from getFixedRows() and getFixedColumns(). But you are strongly advised to check if it's possible to do so with isColumnFixable(int) for the fixed columns and with isRowFixable(int) for the fixed rows.

If you want to fix several rows or columns together, you can call areRowsFixable(List) or areTableViewColumnsFixable(List) to verify if you can fix them. Calling those methods prior every move will ensure that no exception will be thrown.
You have also the possibility to deactivate these features.

Row Headers


You can also access and toggle row header's visibility by using the method provided setRowHeaderVisible(boolean). By default the row header will show the row index, but you can set the content with setRowHeader(TableColumn).

Cell editing


Two specialized cell factories are available TextField2TableCell and ComboBox2TableCell, providing support for commit on focus lost.

Filtering options


While filtering can be implemented as in a regular JavaFX TableView control, see FilteredTableView for extended filtering options.

Features not supported


Cell spanning is not supported yet.

Sample

Let's provide the underlying data model, based on a Person class.

public class Person {
    private StringProperty firstName;
    public void setFirstName(String value) { firstNameProperty().set(value); }
    public String getFirstName() { return firstNameProperty().get(); }
    public StringProperty firstNameProperty() {
        if (firstName == null) firstName = new SimpleStringProperty(this, "firstName");
        return firstName;
    }

    private StringProperty lastName;
    public void setLastName(String value) { lastNameProperty().set(value); }
    public String getLastName() { return lastNameProperty().get(); }
    public StringProperty lastNameProperty() {
        if (lastName == null) lastName = new SimpleStringProperty(this, "lastName");
        return lastName;
    }
}

A TableView2 can be created, and filled with an observable list of people:

TableView2<Person> table = new TableView2<Person>();
ObservableList<Person> people = getPeople();
table.setItems(people);

Now we add two columns to the table:

TableColumn2<Person,String> firstNameCol = new TableColumn2<>("First Name");
firstNameCol.setCellValueFactory(p -> p.getValue().firstNameProperty());
TableColumn2<Person,String> lastNameCol = new TableColumn2<>("Last Name");
lastNameCol.setCellValueFactory(p -> p.getValue().lastNameProperty());

table.getColumns().setAll(firstNameCol, lastNameCol);

A cell factory that allows commit on focus lost can be set:

firstName.setCellFactory(TextField2TableCell.forTableColumn());

We can fix some row and columns, and also show the row header:

table.getFixedColumns().setAll(firstNameColumn);
table.getFixedRows().setAll(0, 1, 2);

table.setRowHeaderVisible(true);

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
TableView2.SpanType

The SpanType describes in which state each cell can be.</center>

Field Summary

Modifier and TypeField and Description
private final BooleanProperty
private static final double
DEFAULT_ROW_HEADER_WIDTH

Default width of the VerticalHeader.

private final ObservableList<TableColumn<S, T>>
private final ListChangeListener<TableColumn<S, T>>
private final ObservableList<Integer>
fixedRows

Private Fields * *

private final ListChangeListener<Integer>
fixedRowsListener

********************************************************************* * private listeners ********************************************************************

private BitSet
private final BooleanProperty
private final ObjectProperty<TableColumn<S, ?>>
rowHeader

The row header property wraps a TableColumn that can be used to render the row header.

private ObjectProperty<BiFunction<Integer, S, ContextMenu>>
rowHeaderContextMenuFactory

An object property of a BiFunction that can be used to define the context menu of each row of the row header.

private final BooleanProperty
private final DoubleProperty
rowHeaderWidth

The vertical header width, just for the Label.

private final BooleanProperty
southHeaderBlended

This property allows the developer to blend the south table header row with the regular table header row, so for each column, the regular header and the south table column header look like a single one.

private String
Inherited from javafx.scene.control.TableView:
CONSTRAINED_RESIZE_POLICYCONSTRAINED_RESIZE_POLICY_ALL_COLUMNSCONSTRAINED_RESIZE_POLICY_FLEX_LAST_COLUMNCONSTRAINED_RESIZE_POLICY_FLEX_NEXT_COLUMNCONSTRAINED_RESIZE_POLICY_LAST_COLUMNCONSTRAINED_RESIZE_POLICY_NEXT_COLUMNCONSTRAINED_RESIZE_POLICY_SUBSEQUENT_COLUMNSDEFAULT_SORT_POLICYUNCONSTRAINED_RESIZE_POLICY

Constructor Summary

AccessConstructor and Description
public
TableView2()

Creates a TableView2 control with no content.

public
TableView2(ObservableList<S>
The items to insert into the TableView2, and the list to watch for changes (to automatically show in the TableView2).
items
)

Creates a TableView2 with the content provided in the items ObservableList.

Method Summary

Modifier and TypeMethod and Description
private boolean

Returns:

true if the List of columns can be fixed together.
areColumnsFixable
(List<? extends Integer>
list of column indices
list
)

This method is the same as areTableViewColumnsFixable(List) but is using a List of TableColumn indices.

public final boolean

Returns:

true if the List of row can be fixed together.
areRowsFixable
(List<? extends Integer>
List of rows indices
list
)

Indicates whether a List of rows can be fixed or not.

private boolean

Returns:

true if the List of columns can be fixed together.
areTableViewColumnsFixable
(List<? extends TableColumn<S, T>>
list of TableColumn
list
)

Indicates whether a List of TableColumn can be fixed or not.

public final ReadOnlyBooleanProperty

Returns:

the Boolean property associated with the allowance of fixing or unfixing some columns.
columnFixingEnabledProperty
()

Return the Boolean property associated with the allowance of fixing or unfixing some columns.

private String
computeReason(List<? extends Integer> list)

protected Skin<?>
createDefaultSkin()

Overrides javafx.scene.control.TableView.createDefaultSkin.

Create a new instance of the default skin for this control.

public int

Returns:

the current column span of a Cell.
getColumnSpan
(TablePosition<?, ?> pos)

Return the current column span.

public final ObservableList<TableColumn<S, T>>

Returns:

an ObservableList of the fixed columns.
getFixedColumns
()

You can fix or unfix a column by modifying this list.

public final ObservableList<Integer>

Returns:

an ObservableList of integer representing the fixedRows.
getFixedRows
()

You can fix or unfix a row by modifying this list.

public final TableColumn<S, ?>
public final BiFunction<Integer, S, ContextMenu>
public final double
getRowHeaderWidth()

Returns: the current width of the row header.

public int

Returns:

the current row span for the given cell.
getRowSpan
(TablePosition<?, ?> pos, int
the index
index
)

Return the current row span at the given position in the Table.

public TableView2.SpanType

Returns:

The SpanType of a cell
getSpanType
(final int
the number of row
rowIndex
,
final int
the number of column
modelColumn
)

Return the SpanType of a cell.

public String
getUserAgentStylesheet()

Overrides javafx.scene.layout.Region.getUserAgentStylesheet.

An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method.

private void
initRowFix()

Private/Protected Implementation * *

public final boolean

Returns:

true if the column if fixable
isColumnFixable
(int
the number of column
columnIndex
)

Indicate whether this column can be fixed or not.

public final boolean

Returns:

whether changes to Fixed columns are enabled.
isColumnFixingEnabled
()

Return whether changes to Fixed columns are enabled.

public final boolean

Returns:

true if the row can be fixed.
isRowFixable
(int
the number of row
row
)

Indicate whether a row can be fixed or not.

public final boolean

Returns:

whether changes to Fixed rows are enabled.
isRowFixingEnabled
()

Return whether changes to Fixed rows are enabled.

public final boolean

Returns:

a boolean telling if the row header is being shown
isRowHeaderVisible
()

Return if the row header is showing.

public final boolean
public final ReadOnlyBooleanProperty

Returns:

the Boolean property associated with the allowance of fixing or unfixing some rows.
rowFixingEnabledProperty
()

Return the Boolean property associated with the allowance of fixing or unfixing some rows.

public final ObjectProperty<BiFunction<Integer, S, ContextMenu>>
public final ObjectProperty<TableColumn<S, ?>>
public final BooleanProperty

Returns:

the BooleanProperty associated with the row header.
rowHeaderVisibleProperty
()

BooleanProperty associated with the row Header.

public final DoubleProperty

Returns:

A DoubleProperty.
rowHeaderWidthProperty
()

This DoubleProperty represents the with of the rowHeader.

public final void
setColumnFixingEnabled(boolean
If set to true, user will be allowed to fix and unfix the columns
b
)

If set to true, user will be allowed to fix and unfix the columns.

public final void
setRowFixingEnabled(boolean
If set to true, user will be allowed to fix and unfix the rows
b
)

If set to true, user will be allowed to fix and unfix the rows.

public final void
public final void
public final void
setRowHeaderVisible(final boolean
boolean to show or hide the header
b
)

Activate and deactivate the row header.

public final void
setRowHeaderWidth(double
the new width
value
)

Specify a new width for the row header.

public final void
setSouthHeaderBlended(boolean value)

public void
sort()

Overrides javafx.scene.control.TableView.sort.

Overrides TableView#sort() in order to fire custom sort events when sorting starts and finishes.

public final BooleanProperty
Inherited from javafx.scene.control.TableView:
columnResizePolicyPropertycomparatorPropertyediteditablePropertyeditingCellPropertyfixedCellSizePropertyfocusModelPropertygetClassCssMetaDatagetColumnResizePolicygetColumnsgetComparatorgetControlCssMetaDatagetEditingCellgetFixedCellSizegetFocusModelgetItemsgetOnScrollTogetOnScrollToColumngetOnSortgetPlaceholdergetRowFactorygetSelectionModelgetSortOrdergetSortPolicygetVisibleLeafColumngetVisibleLeafColumnsgetVisibleLeafIndexisEditableisTableMenuButtonVisibleitemsPropertyonScrollToColumnPropertyonScrollToPropertyonSortPropertyplaceholderPropertyqueryAccessibleAttributerefreshresizeColumnrowFactoryPropertyscrollToscrollToscrollToColumnscrollToColumnIndexselectionModelPropertysetColumnResizePolicysetEditablesetFixedCellSizesetFocusModelsetItemssetOnScrollTosetOnScrollToColumnsetOnSortsetPlaceholdersetRowFactorysetSelectionModelsetSortPolicysetTableMenuButtonVisiblesortPolicyPropertytableMenuButtonVisibleProperty

Field Detail

columnFixingEnabledback to summary
private final BooleanProperty columnFixingEnabled
DEFAULT_ROW_HEADER_WIDTHback to summary
private static final double DEFAULT_ROW_HEADER_WIDTH

Default width of the VerticalHeader.

fixedColumnsback to summary
private final ObservableList<TableColumn<S, T>> fixedColumns
fixedColumnsListenerback to summary
private final ListChangeListener<TableColumn<S, T>> fixedColumnsListener
fixedRowsback to summary
private final ObservableList<Integer> fixedRows

Private Fields * *

fixedRowsListenerback to summary
private final ListChangeListener<Integer> fixedRowsListener

********************************************************************* * private listeners ********************************************************************

rowFixback to summary
private BitSet rowFix
rowFixingEnabledback to summary
private final BooleanProperty rowFixingEnabled
rowHeaderback to summary
private final ObjectProperty<TableColumn<S, ?>> rowHeader

The row header property wraps a TableColumn that can be used to render the row header. By default, if this property is not set, a TableColumn will be used to render the number of row, starting from 1.

rowHeaderContextMenuFactoryback to summary
private ObjectProperty<BiFunction<Integer, S, ContextMenu>> rowHeaderContextMenuFactory

An object property of a BiFunction that can be used to define the context menu of each row of the row header. See RowFixAction.

rowHeaderVisibleback to summary
private final BooleanProperty rowHeaderVisible
rowHeaderWidthback to summary
private final DoubleProperty rowHeaderWidth

The vertical header width, just for the Label.

southHeaderBlendedback to summary
private final BooleanProperty southHeaderBlended

This property allows the developer to blend the south table header row with the regular table header row, so for each column, the regular header and the south table column header look like a single one.

stylesheetback to summary
private String stylesheet

Constructor Detail

TableView2back to summary
public TableView2()

Creates a TableView2 control with no content.

TableView2back to summary
public TableView2(ObservableList<S> items)

Creates a TableView2 with the content provided in the items ObservableList.

Parameters
items:ObservableList<S>

The items to insert into the TableView2, and the list to watch for changes (to automatically show in the TableView2).

Method Detail

areColumnsFixableback to summary
private boolean areColumnsFixable(List<? extends Integer> list)

This method is the same as areTableViewColumnsFixable(List) but is using a List of TableColumn indices. A set of columns cannot be fixed if any cell inside these columns has a column span superior to the number of fixed columns.

Parameters
list:List<? extends Integer>

list of column indices

Returns:boolean

true if the List of columns can be fixed together.

areRowsFixableback to summary
public final boolean areRowsFixable(List<? extends Integer> list)

Indicates whether a List of rows can be fixed or not. A set of rows cannot be fixed if any cell inside these rows has a row span superior to the number of fixed rows.

Parameters
list:List<? extends Integer>

List of rows indices

Returns:boolean

true if the List of row can be fixed together.

areTableViewColumnsFixableback to summary
private boolean areTableViewColumnsFixable(List<? extends TableColumn<S, T>> list)

Indicates whether a List of TableColumn can be fixed or not. A set of columns cannot be fixed if any cell inside these columns has a column span superior to the number of fixed columns.

Parameters
list:List<? extends TableColumn<S, T>>

list of TableColumn

Returns:boolean

true if the List of columns can be fixed together.

columnFixingEnabledPropertyback to summary
public final ReadOnlyBooleanProperty columnFixingEnabledProperty()

Return the Boolean property associated with the allowance of fixing or unfixing some columns.

Returns:ReadOnlyBooleanProperty

the Boolean property associated with the allowance of fixing or unfixing some columns.

computeReasonback to summary
private String computeReason(List<? extends Integer> list)
createDefaultSkinback to summary
protected Skin<?> createDefaultSkin()

Overrides javafx.scene.control.TableView.createDefaultSkin.

Doc from javafx.scene.control.TableView.createDefaultSkin.

Create a new instance of the default skin for this control. This is called to create a skin for the control if no skin is provided via CSS -fx-skin or set explicitly in a sub-class with setSkin(...).

Annotations
@Override
getColumnSpanback to summary
public int getColumnSpan(TablePosition<?, ?> pos)

Return the current column span.

Parameters
pos:TablePosition<?, ?>

The TablePosition

Returns:int

the current column span of a Cell.

getFixedColumnsback to summary
public final ObservableList<TableColumn<S, T>> getFixedColumns()

You can fix or unfix a column by modifying this list.

Returns:ObservableList<TableColumn<S, T>>

an ObservableList of the fixed columns.

getFixedRowsback to summary
public final ObservableList<Integer> getFixedRows()

You can fix or unfix a row by modifying this list. Call isRowFixable(int) before trying to fix a row. See TableView2 description for information.

Returns:ObservableList<Integer>

an ObservableList of integer representing the fixedRows.

getRowHeaderback to summary
public final TableColumn<S, ?> getRowHeader()
getRowHeaderContextMenuFactoryback to summary
public final BiFunction<Integer, S, ContextMenu> getRowHeaderContextMenuFactory()
getRowHeaderWidthback to summary
public final double getRowHeaderWidth()
Returns:double

the current width of the row header.

getRowSpanback to summary
public int getRowSpan(TablePosition<?, ?> pos, int index)

Return the current row span at the given position in the Table. If a sort is applied to the TableView2, some spanned cells may be splitted.

Parameters
pos:TablePosition<?, ?>

the TablePosition

index:int

the index

Returns:int

the current row span for the given cell.

getSpanTypeback to summary
public TableView2.SpanType getSpanType(final int rowIndex, final int modelColumn)

Return the SpanType of a cell. This is used internally by the TableView2 but some users may find it useful.

Parameters
rowIndex:int

the number of row

modelColumn:int

the number of column

Returns:TableView2.SpanType

The SpanType of a cell

getUserAgentStylesheetback to summary
public String getUserAgentStylesheet()

Overrides javafx.scene.layout.Region.getUserAgentStylesheet.

Doc from javafx.scene.layout.Region.getUserAgentStylesheet.

An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. These styles are used in addition to whatever user-agent stylesheets are in use. This provides a mechanism for third parties to introduce styles for custom controls.

The URL is a hierarchical URI of the form [scheme:][//authority][path]. If the URL does not have a [scheme:] component, the URL is considered to be the [path] component only. Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to the root of the application's classpath.

Subclasses overriding this method should not assume any particular implementation approach as to the number and frequency with which it is called. For this reason, attempting any kind of dynamic implementation (i.e. returning different user agent stylesheet values) based on some state change is highly discouraged, as there is no guarantee when, or even if, this method will be called. Some JavaFX CSS implementations may choose to cache this response for an indefinite period of time, and therefore there should be no expectation around when this method is called.



package com.example.javafx.app;

import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class MyApp extends Application {

    @Override public void start(Stage stage) {
        Scene scene = new Scene(new Group());
        scene.getStylesheets().add("/com/example/javafx/app/mystyles.css");
        stage.setScene(scene);
        stage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
For additional information about using CSS with the scene graph, see the CSS Reference Guide.
Annotations
@Override
initRowFixback to summary
private void initRowFix()

Private/Protected Implementation * *

isColumnFixableback to summary
public final boolean isColumnFixable(int columnIndex)

Indicate whether this column can be fixed or not.

Parameters
columnIndex:int

the number of column

Returns:boolean

true if the column if fixable

isColumnFixingEnabledback to summary
public final boolean isColumnFixingEnabled()

Return whether changes to Fixed columns are enabled.

Returns:boolean

whether changes to Fixed columns are enabled.

isRowFixableback to summary
public final boolean isRowFixable(int row)

Indicate whether a row can be fixed or not. Call that method before adding an item with getFixedRows() . A row cannot be fixed alone if any cell inside the row has a row span superior to one.

Parameters
row:int

the number of row

Returns:boolean

true if the row can be fixed.

isRowFixingEnabledback to summary
public final boolean isRowFixingEnabled()

Return whether changes to Fixed rows are enabled.

Returns:boolean

whether changes to Fixed rows are enabled.

isRowHeaderVisibleback to summary
public final boolean isRowHeaderVisible()

Return if the row header is showing.

Returns:boolean

a boolean telling if the row header is being shown

isSouthHeaderBlendedback to summary
public final boolean isSouthHeaderBlended()
rowFixingEnabledPropertyback to summary
public final ReadOnlyBooleanProperty rowFixingEnabledProperty()

Return the Boolean property associated with the allowance of fixing or unfixing some rows.

Returns:ReadOnlyBooleanProperty

the Boolean property associated with the allowance of fixing or unfixing some rows.

rowHeaderContextMenuFactoryPropertyback to summary
public final ObjectProperty<BiFunction<Integer, S, ContextMenu>> rowHeaderContextMenuFactoryProperty()
rowHeaderPropertyback to summary
public final ObjectProperty<TableColumn<S, ?>> rowHeaderProperty()
rowHeaderVisiblePropertyback to summary
public final BooleanProperty rowHeaderVisibleProperty()

BooleanProperty associated with the row Header.

Returns:BooleanProperty

the BooleanProperty associated with the row header.

rowHeaderWidthPropertyback to summary
public final DoubleProperty rowHeaderWidthProperty()

This DoubleProperty represents the with of the rowHeader. This is just representing the width of the Labels.

Returns:DoubleProperty

A DoubleProperty.

setColumnFixingEnabledback to summary
public final void setColumnFixingEnabled(boolean b)

If set to true, user will be allowed to fix and unfix the columns.

Parameters
b:boolean

If set to true, user will be allowed to fix and unfix the columns

setRowFixingEnabledback to summary
public final void setRowFixingEnabled(boolean b)

If set to true, user will be allowed to fix and unfix the rows.

Parameters
b:boolean

If set to true, user will be allowed to fix and unfix the rows

setRowHeaderback to summary
public final void setRowHeader(TableColumn<S, ?> value)
setRowHeaderContextMenuFactoryback to summary
public final void setRowHeaderContextMenuFactory(BiFunction<Integer, S, ContextMenu> value)
setRowHeaderVisibleback to summary
public final void setRowHeaderVisible(final boolean b)

Activate and deactivate the row header.

Parameters
b:boolean

boolean to show or hide the header

setRowHeaderWidthback to summary
public final void setRowHeaderWidth(double value)

Specify a new width for the row header.

Parameters
value:double

the new width

setSouthHeaderBlendedback to summary
public final void setSouthHeaderBlended(boolean value)
sortback to summary
public void sort()

Overrides javafx.scene.control.TableView.sort.

Overrides TableView#sort() in order to fire custom sort events when sorting starts and finishes. See TableView#sort() for more details about calling directly this method.

Annotations
@Override
southHeaderBlendedPropertyback to summary
public final BooleanProperty southHeaderBlendedProperty()
org.controlsfx.control.tableview2 back to summary

public final Enum TableView2.SpanType

extends Enum<TableView2.SpanType>
Class Inheritance

The SpanType describes in which state each cell can be. When a spanning is occurring, one cell is becoming larger and the others are becoming invisible. Thus, that particular cell is masking the others.

But the SpanType cannot be known in advance because it's evolving for each cell during the lifetime of the TableView2. Suppose you have a cell spanning in row, the first one is in a ROW_VISIBLE state, and all the other below are in a ROW_SPAN_INVISIBLE state. But if the user is scrolling down, the first will go out of sight. At that moment, the second cell is switching from ROW_SPAN_INVISIBLE state to ROW_VISIBLE state.

Screenshot of TableView2.SpanType
Refer to TableView2 for more information.

Field Summary

Modifier and TypeField and Description
public static final TableView2.SpanType
BOTH_INVISIBLE

Invisible cell situated in diagonal of a cell in a ROW_VISIBLE state.

public static final TableView2.SpanType
COLUMN_SPAN_INVISIBLE

Invisible cell because a cell in a NORMAL_CELL state on the left is covering it.

public static final TableView2.SpanType
NORMAL_CELL

Visible cell, can be a unique cell (no span) or the first one inside a column spanning cell.

public static final TableView2.SpanType
ROW_SPAN_INVISIBLE

Invisible cell because a cell in a ROW_VISIBLE state on the top is covering it.

public static final TableView2.SpanType
ROW_VISIBLE

Visible Cell but has some cells below in a ROW_SPAN_INVISIBLE state.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static TableView2.SpanType
public static TableView2.SpanType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

BOTH_INVISIBLEback to summary
public static final TableView2.SpanType BOTH_INVISIBLE

Invisible cell situated in diagonal of a cell in a ROW_VISIBLE state.

COLUMN_SPAN_INVISIBLEback to summary
public static final TableView2.SpanType COLUMN_SPAN_INVISIBLE

Invisible cell because a cell in a NORMAL_CELL state on the left is covering it.

NORMAL_CELLback to summary
public static final TableView2.SpanType NORMAL_CELL

Visible cell, can be a unique cell (no span) or the first one inside a column spanning cell.

ROW_SPAN_INVISIBLEback to summary
public static final TableView2.SpanType ROW_SPAN_INVISIBLE

Invisible cell because a cell in a ROW_VISIBLE state on the top is covering it.

ROW_VISIBLEback to summary
public static final TableView2.SpanType ROW_VISIBLE

Visible Cell but has some cells below in a ROW_SPAN_INVISIBLE state.

Constructor Detail

SpanTypeback to summary
private SpanType()

Method Detail

valueOfback to summary
public static TableView2.SpanType valueOf(String name)
valuesback to summary
public static TableView2.SpanType[] values()