Top Description Fields Constructors Methods
impl.org.controlsfx.spreadsheet

public Class GridRow

extends TableRow<ObservableList<SpreadsheetCell>>
Class Inheritance
Imports
javafx.beans.InvalidationListener, .Observable, .WeakInvalidationListener, javafx.beans.property.DoubleProperty, .SimpleDoubleProperty, javafx.collections.MapChangeListener, .ObservableList, javafx.event.Event, .EventHandler, .WeakEventHandler, javafx.scene.control.Skin, .TableRow, javafx.scene.input.MouseEvent, org.controlsfx.control.spreadsheet.SpreadsheetCell, .SpreadsheetView

The tableRow which will holds the SpreadsheetCell.

Field Summary

Modifier and TypeField and Description
private final InvalidationListener
comparatorListener

When the comparator is changing, we may have an issue with the fixedRow not updating their inner cells.

private final EventHandler<MouseEvent>
private final InvalidationListener
gridListener

When the Grid is changing, we have recreated a new SortedList, therefore we must re-attach our listener to the Comparator.

private final SpreadsheetHandle
handle

Private Fields * *

private final InvalidationListener
pack-priv DoubleProperty
verticalShift

When the row is fixed, it may have a shift from its original position which we need in order to layout the cells properly and also for the rectangle selection.

private final WeakInvalidationListener
private final WeakEventHandler<MouseEvent>
private final WeakInvalidationListener
private final WeakInvalidationListener

Constructor Summary

AccessConstructor and Description
public
GridRow(SpreadsheetHandle handle)

Constructor * *

Method Summary

Modifier and TypeMethod and Description
pack-priv void
addCell(CellView cell)

Protected Methods * *

protected double
computeMinHeight(double width)

Overrides javafx.scene.control.Control.computeMinHeight.

Computes the minimum allowable height of the Control, based on the provided width.

protected double
computePrefHeight(double width)

Overrides javafx.scene.control.Control.computePrefHeight.

Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy.

protected Skin<?>
createDefaultSkin()

Overrides javafx.scene.control.TableRow.createDefaultSkin.

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

pack-priv SpreadsheetView
pack-priv void
public void
setRowHeight(double height)

Inherited from javafx.scene.control.TableRow:
getTableViewqueryAccessibleAttributetableViewPropertyupdateTableView

Field Detail

comparatorListenerback to summary
private final InvalidationListener comparatorListener

When the comparator is changing, we may have an issue with the fixedRow not updating their inner cells. So we force it.

dragDetectedEventHandlerback to summary
private final EventHandler<MouseEvent> dragDetectedEventHandler
gridListenerback to summary
private final InvalidationListener gridListener

When the Grid is changing, we have recreated a new SortedList, therefore we must re-attach our listener to the Comparator.

handleback to summary
private final SpreadsheetHandle handle

Private Fields * *

setPrefHeightListenerback to summary
private final InvalidationListener setPrefHeightListener
verticalShiftback to summary
pack-priv DoubleProperty verticalShift

When the row is fixed, it may have a shift from its original position which we need in order to layout the cells properly and also for the rectangle selection.

weakComparatorListenerback to summary
private final WeakInvalidationListener weakComparatorListener
weakDragHandlerback to summary
private final WeakEventHandler<MouseEvent> weakDragHandler
weakGridListenerback to summary
private final WeakInvalidationListener weakGridListener
weakPrefHeightListenerback to summary
private final WeakInvalidationListener weakPrefHeightListener

Constructor Detail

GridRowback to summary
public GridRow(SpreadsheetHandle handle)

Constructor * *

Method Detail

addCellback to summary
pack-priv void addCell(CellView cell)

Protected Methods * *

computeMinHeightback to summary
protected double computeMinHeight(double width)

Overrides javafx.scene.control.Control.computeMinHeight.

Doc from javafx.scene.control.Control.computeMinHeight.

Computes the minimum allowable height of the Control, based on the provided width. The minimum height is not calculated within the Control, instead the calculation is delegated to the Node#minHeight(double) method of the Skin. If the Skin is null, the returned value is 0.

Annotations
@Override
computePrefHeightback to summary
protected double computePrefHeight(double width)

Overrides javafx.scene.control.Control.computePrefHeight.

Doc from javafx.scene.control.Control.computePrefHeight.

Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.

Annotations
@Override
createDefaultSkinback to summary
protected Skin<?> createDefaultSkin()

Overrides javafx.scene.control.TableRow.createDefaultSkin.

Doc from javafx.scene.control.TableRow.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
getSpreadsheetViewback to summary
pack-priv SpreadsheetView getSpreadsheetView()
removeCellback to summary
pack-priv void removeCell(CellView gc)
setRowHeightback to summary
public void setRowHeight(double height)