public class DateCellSkin extends CellSkinBase<DateCell>
DateCell
control.DateCell
cellSizeProperty
Modifier and Type | Field and Description |
---|---|
private <any> |
behavior
*
Private Fields *
*
|
DEFAULT_CELL_SIZE
ellipsisWidth, graphic, graphicPropertyChangedListener, invalidText, text, textWidth
Constructor and Description |
---|
DateCellSkin(DateCell control)
Creates a new DateCellSkin 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 |
---|---|
private double |
cellSize()
*
Pirvate implementation *
*
|
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) |
void |
dispose() |
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
|
protected void |
updateChildren()
Updates the children managed by LabeledSkinBase, which can be the Labeled
graphic and/or a Text node.
|
cellSizeProperty, getCellSize, getClassCssMetaData, getCssMetaData
bottomLabelPadding, computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, isIgnoreGraphic, isIgnoreText, layoutLabelInArea, layoutLabelInArea, leftLabelPadding, mnemonicTargetChanged, queryAccessibleAttribute, rightLabelPadding, topLabelPadding, updateDisplayedText
public DateCellSkin(DateCell 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 void dispose()
protected void updateChildren()
updateChildren
in class LabeledSkinBase<DateCell>
protected void layoutChildren(double x, double y, double w, double h)
layoutChildren
in class LabeledSkinBase<DateCell>
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
computePrefWidth
in class LabeledSkinBase<DateCell>
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
computePrefHeight
in class LabeledSkinBase<DateCell>
private double cellSize()