public abstract class TableCellSkinBase<C extends IndexedCell,B extends CellBehaviorBase<C>> extends CellSkinBase<C,B>
Modifier and Type | Field and Description |
---|---|
private InvalidationListener |
columnWidthListener
*
Listeners *
*
|
(package private) static java.lang.String |
DEFER_TO_PARENT_PREF_WIDTH
*
Static Fields *
*
|
(package private) boolean |
isDeferToParentForPrefWidth |
private WeakInvalidationListener |
weakColumnWidthListener |
DEFAULT_CELL_SIZE
bindings, ellipsisWidth, graphic, graphicPropertyChangedListener, invalidText, mnemonic_underscore, text, textWidth
IS_TOUCH_SUPPORTED
Constructor and Description |
---|
TableCellSkinBase(C control,
B behavior)
*
Constructors *
*
|
Modifier and Type | Method and Description |
---|---|
protected abstract BooleanProperty |
columnVisibleProperty() |
protected abstract ReadOnlyDoubleProperty |
columnWidthProperty()
*
Private Fields *
*
|
protected double |
computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Calculates the preferred width of this
SkinBase . |
void |
dispose()
Called by a Skinnable when the Skin is replaced on the Skinnable.
|
protected void |
handleControlPropertyChanged(java.lang.String p)
*
Public Methods *
*
|
protected void |
init(C control) |
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
|
cellSizeProperty, getCellSize, getClassCssMetaData, getCssMetaData
bottomLabelPadding, computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, isIgnoreGraphic, isIgnoreText, layoutLabelInArea, layoutLabelInArea, leftLabelPadding, mnemonicTargetChanged, queryAccessibleAttribute, rightLabelPadding, topLabelPadding, updateChildren, updateDisplayedText
getBehavior, registerChangeListener, unregisterChangeListener
consumeMouseEvents, executeAccessibleAction, getChildren, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace
static final java.lang.String DEFER_TO_PARENT_PREF_WIDTH
boolean isDeferToParentForPrefWidth
private InvalidationListener columnWidthListener
private WeakInvalidationListener weakColumnWidthListener
protected abstract ReadOnlyDoubleProperty columnWidthProperty()
protected abstract BooleanProperty columnVisibleProperty()
protected void init(C control)
protected void handleControlPropertyChanged(java.lang.String p)
handleControlPropertyChanged
in class LabeledSkinBase<C extends IndexedCell,B extends CellBehaviorBase<C>>
public void dispose()
BehaviorSkinBase
Skin.getSkinnable()
and Skin.getNode()
should return null following a call to dispose. Calling dispose twice
has no effect.dispose
in interface Skin<C extends IndexedCell>
dispose
in class BehaviorSkinBase<C extends IndexedCell,B extends CellBehaviorBase<C>>
protected void layoutChildren(double x, double y, double w, double h)
LabeledSkinBase
layoutChildren
in class LabeledSkinBase<C extends IndexedCell,B extends CellBehaviorBase<C>>
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
SkinBase
SkinBase
. The default
implementation calculates this width as the width of the area occupied
by its managed children when they are positioned at their
current positions at their preferred widths.computePrefWidth
in class LabeledSkinBase<C extends IndexedCell,B extends CellBehaviorBase<C>>
height
- the height that should be used if preferred width depends on ittopInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left inset