S
- The type of the UI control (e.g. the type of the 'row').T
- The type of the content in the cell, based on its TableColumnBase
.public abstract class TableCellSkinBase<S,T,C extends <any>> extends CellSkinBase<C>
javafx.scene.control.TableCell
and javafx.scene.control.TreeTableCell
.javafx.scene.control.TableCell
,
javafx.scene.control.TreeTableCell
Type | Property and Description |
---|---|
abstract <any> |
tableColumn
The TableColumnBase instance that is responsible for this Cell.
|
cellSizeProperty
Modifier and Type | Field and Description |
---|---|
private InvalidationListener |
columnWidthListener
*
Listeners *
*
|
(package private) boolean |
isDeferToParentForPrefWidth
*
Private Fields *
*
|
private WeakInvalidationListener |
weakColumnWidthListener |
DEFAULT_CELL_SIZE
ellipsisWidth, graphic, graphicPropertyChangedListener, invalidText, text, textWidth
Constructor and Description |
---|
TableCellSkinBase(C control)
Creates a new TableCellSkinBase instance, installing the necessary child
nodes into the Control
children list, as
well as the necessary input mappings for handling key, mouse, etc events. |
Modifier and Type | Method and Description |
---|---|
protected double |
computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
void |
dispose() |
<any> |
getTableColumn()
Gets the value of the property tableColumn.
|
protected void |
layoutChildren(double x,
double y,
double w,
double h)
The Layout algorithm works like this:
- Get the labeled w/h, graphic w/h, text w/h
- Compute content w/h based on graphicVPos, graphicHPos,
graphicTextGap, and graphic w/h and text w/h
- (Note that the text content has been pre-truncated where
necessary)
- compute content x/y based on content w/h and labeled w/h
and the labeled's hpos and vpos
- position the graphic and text
|
abstract <any> |
tableColumnProperty()
The TableColumnBase instance that is responsible for this Cell.
|
cellSizeProperty, getCellSize, getClassCssMetaData, getCssMetaData
bottomLabelPadding, computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, isIgnoreGraphic, isIgnoreText, layoutLabelInArea, layoutLabelInArea, leftLabelPadding, mnemonicTargetChanged, queryAccessibleAttribute, rightLabelPadding, topLabelPadding, updateChildren, updateDisplayedText
public abstract <any> tableColumnProperty
getTableColumn()
boolean isDeferToParentForPrefWidth
private InvalidationListener columnWidthListener
private WeakInvalidationListener weakColumnWidthListener
public TableCellSkinBase(C control)
children
list, as
well as the necessary input mappings for handling key, mouse, etc events.control
- The control that this skin should be installed onto.public abstract <any> tableColumnProperty()
getTableColumn()
public final <any> getTableColumn()
public void dispose()
protected void layoutChildren(double x, double y, double w, double h)
layoutChildren
in class LabeledSkinBase<C extends <any>>
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
computePrefWidth
in class LabeledSkinBase<C extends <any>>