- java.lang.Object
-
- javafx.scene.control.SkinBase<C>
-
- javafx.scene.control.skin.LabeledSkinBase<C>
-
- javafx.scene.control.skin.CellSkinBase<C>
-
- javafx.scene.control.skin.TableCellSkinBase<S,T,TableCell<S,T>>
-
- javafx.scene.control.skin.TableCellSkin<ObservableList<SpreadsheetCell>,SpreadsheetCell>
-
- impl.org.controlsfx.spreadsheet.CellViewSkin
-
- All Implemented Interfaces:
Skin<TableCell<ObservableList<SpreadsheetCell>,SpreadsheetCell>>
public class CellViewSkin extends TableCellSkin<ObservableList<SpreadsheetCell>,SpreadsheetCell>
This is the skin for theCellView
. Its main goal is to draw an object (a triangle) on cells which have theirSpreadsheetCell#commentedProperty()
set to true.
-
-
Property Summary
-
Properties inherited from class javafx.scene.control.skin.TableCellSkin
tableColumn
-
Properties inherited from class javafx.scene.control.skin.CellSkinBase
cellSize
-
-
Field Summary
Fields Modifier and Type Field Description static EventType<Event>
FILTER_EVENT_TYPE
This EventType can be used with anEventHandler
in order to catch when a SpreadsheetCell filter is activated/deactivated on this column.
-
Constructor Summary
Constructors Constructor Description CellViewSkin(CellView tableCell)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
protected double
computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
protected void
layoutChildren(double x, double y, double w, double h)
-
Methods inherited from class javafx.scene.control.skin.TableCellSkin
dispose, tableColumnProperty
-
Methods inherited from class javafx.scene.control.skin.TableCellSkinBase
getTableColumn
-
Methods inherited from class javafx.scene.control.skin.CellSkinBase
cellSizeProperty, getCellSize, getClassCssMetaData, getCssMetaData
-
Methods inherited from class javafx.scene.control.skin.LabeledSkinBase
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, layoutLabelInArea, layoutLabelInArea, queryAccessibleAttribute, updateChildren
-
Methods inherited from class javafx.scene.control.SkinBase
consumeMouseEvents, executeAccessibleAction, getChildren, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, registerChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners
-
-
-
-
Field Detail
-
FILTER_EVENT_TYPE
public static final EventType<Event> FILTER_EVENT_TYPE
This EventType can be used with anEventHandler
in order to catch when a SpreadsheetCell filter is activated/deactivated on this column.
-
-
Constructor Detail
-
CellViewSkin
public CellViewSkin(CellView tableCell)
-
-
Method Detail
-
computePrefHeight
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
- Overrides:
computePrefHeight
in classLabeledSkinBase<TableCell<ObservableList<SpreadsheetCell>,SpreadsheetCell>>
-
computePrefWidth
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
- Overrides:
computePrefWidth
in classTableCellSkinBase<ObservableList<SpreadsheetCell>,SpreadsheetCell,TableCell<ObservableList<SpreadsheetCell>,SpreadsheetCell>>
-
layoutChildren
protected void layoutChildren(double x, double y, double w, double h)
- Overrides:
layoutChildren
in classTableCellSkinBase<ObservableList<SpreadsheetCell>,SpreadsheetCell,TableCell<ObservableList<SpreadsheetCell>,SpreadsheetCell>>
-
-