public class TreeTableRowSkin<T> extends TableRowSkinBase<<any>,<any>,<any>>
TreeTableRow
control.TreeTableRow
Type | Property and Description |
---|---|
protected <any> |
graphic
Returns the graphic to draw on the inside of the disclosure node.
|
DoubleProperty |
indent
The amount of space to multiply by the treeItem.level to get the left
margin for this tree cell.
|
cellSizeProperty
Modifier and Type | Class and Description |
---|---|
private static class |
TreeTableRowSkin.StyleableProperties
*
Stylesheet Handling *
*
|
Modifier and Type | Field and Description |
---|---|
private <any> |
behavior |
private boolean |
childrenDirty |
private boolean |
disclosureNodeDirty |
private Node |
graphic |
private InvalidationListener |
graphicListener
*
Listeners *
*
|
private DoubleProperty |
indent
The amount of space to multiply by the treeItem.level to get the left
margin for this tree cell.
|
private <any> |
treeItem
*
Private Fields *
*
|
private TreeTableViewSkin |
treeTableViewSkin |
cells, cellsMap, fixedCellSize, fixedCellSizeEnabled, isDirty, maxDisclosureWidthMap, updateCells
DEFAULT_CELL_SIZE
ellipsisWidth, graphicPropertyChangedListener, invalidText, text, textWidth
Constructor and Description |
---|
TreeTableRowSkin(<any> control)
Creates a new TreeTableRowSkin 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 <any> |
createCell(TableColumnBase tcb)
Creates a new cell instance that is suitable for representing the given table column instance.
|
void |
dispose() |
static java.util.List<<any>> |
getClassCssMetaData()
Returns the CssMetaData associated with this class, which may include the
CssMetaData of its superclasses.
|
java.util.List<<any>> |
getCssMetaData() |
(package private) Node |
getDisclosureNode() |
double |
getIndent()
Gets the value of the property indent.
|
(package private) int |
getIndentationLevel(<any> control) |
(package private) double |
getIndentationPerLevel() |
protected <any> |
getTableColumn(TreeTableCell cell)
Returns the
TableColumnBase instance for the given cell instance. |
(package private) TableColumnBase |
getTreeColumn()
Returns the table column that should show the disclosure nodes and / or
a graphic.
|
private <any> |
getTreeTableView() |
protected <any> |
getVisibleLeafColumns()
Returns an unmodifiable list containing the currently visible leaf columns.
|
protected <any> |
graphicProperty()
Returns the graphic to draw on the inside of the disclosure node.
|
DoubleProperty |
indentProperty()
The amount of space to multiply by the treeItem.level to get the left
margin for this tree cell.
|
(package private) boolean |
isDisclosureNodeVisible()
Used to represent whether a disclosure node is visible for _this_
table row.
|
(package private) boolean |
isIndentationRequired()
Used to represent whether the current virtual flow owner is wanting
indentation to be used in this table row.
|
(package private) boolean |
isShowRoot() |
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 java.lang.Object |
queryAccessibleAttribute(AccessibleAttribute attribute,
java.lang.Object... parameters) |
void |
setIndent(double value)
Sets the value of the property indent.
|
private void |
setupTreeTableViewListeners() |
protected void |
updateCell(<any> cell,
<any> row)
A method to allow the given cell to be told that it is a member of the given row.
|
(package private) void |
updateCells(boolean resetChildren) |
protected void |
updateChildren()
Updates the children managed by LabeledSkinBase, which can be the Labeled
graphic and/or a Text node.
|
private void |
updateDisclosureNodeAndGraphic() |
private void |
updateTableViewSkin() |
private void |
updateTreeItem() |
checkState, computeMaxHeight, computeMinHeight, computePrefHeight, computePrefWidth, getVirtualFlow
cellSizeProperty, getCellSize
bottomLabelPadding, computeBaselineOffset, computeMaxWidth, computeMinWidth, isIgnoreGraphic, isIgnoreText, layoutLabelInArea, layoutLabelInArea, leftLabelPadding, mnemonicTargetChanged, rightLabelPadding, topLabelPadding, updateDisplayedText
public final DoubleProperty indentProperty
getIndent()
,
setIndent(double)
protected <any> graphicProperty
graphicProperty
in class TableRowSkinBase<<any>,<any>,<any>>
private <any> treeItem
private boolean disclosureNodeDirty
private Node graphic
private final <any> behavior
private TreeTableViewSkin treeTableViewSkin
private boolean childrenDirty
private final InvalidationListener graphicListener
private DoubleProperty indent
public TreeTableRowSkin(<any> 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.private void setupTreeTableViewListeners()
public final void setIndent(double value)
public final double getIndent()
public final DoubleProperty indentProperty()
getIndent()
,
setIndent(double)
public void dispose()
protected void updateChildren()
updateChildren
in class LabeledSkinBase<<any>>
protected void layoutChildren(double x, double y, double w, double h)
layoutChildren
in class TableRowSkinBase<<any>,<any>,<any>>
protected <any> createCell(TableColumnBase tcb)
createCell
in class TableRowSkinBase<<any>,<any>,<any>>
tcb
- the table columnvoid updateCells(boolean resetChildren)
updateCells
in class TableRowSkinBase<<any>,<any>,<any>>
boolean isIndentationRequired()
isIndentationRequired
in class TableRowSkinBase<<any>,<any>,<any>>
TableColumnBase getTreeColumn()
getTreeColumn
in class TableRowSkinBase<<any>,<any>,<any>>
int getIndentationLevel(<any> control)
getIndentationLevel
in class TableRowSkinBase<<any>,<any>,<any>>
double getIndentationPerLevel()
getIndentationPerLevel
in class TableRowSkinBase<<any>,<any>,<any>>
Node getDisclosureNode()
getDisclosureNode
in class TableRowSkinBase<<any>,<any>,<any>>
boolean isDisclosureNodeVisible()
TableRowSkinBase
isDisclosureNodeVisible
in class TableRowSkinBase<<any>,<any>,<any>>
boolean isShowRoot()
isShowRoot
in class TableRowSkinBase<<any>,<any>,<any>>
protected <any> getVisibleLeafColumns()
getVisibleLeafColumns
in class TableRowSkinBase<<any>,<any>,<any>>
protected void updateCell(<any> cell, <any> row)
updateCell
in class TableRowSkinBase<<any>,<any>,<any>>
cell
- The cell for which we want to inform it of its owner row.row
- The row which will be set on the given cell.protected <any> getTableColumn(TreeTableCell cell)
TableColumnBase
instance for the given cell instance.getTableColumn
in class TableRowSkinBase<<any>,<any>,<any>>
cell
- The cell for which a TableColumn is desired.protected <any> graphicProperty()
graphicProperty
in class TableRowSkinBase<<any>,<any>,<any>>
private void updateTreeItem()
private <any> getTreeTableView()
private void updateDisclosureNodeAndGraphic()
private void updateTableViewSkin()
public static java.util.List<<any>> getClassCssMetaData()
public java.util.List<<any>> getCssMetaData()
getCssMetaData
in class CellSkinBase<<any>>
protected java.lang.Object queryAccessibleAttribute(AccessibleAttribute attribute, java.lang.Object... parameters)
queryAccessibleAttribute
in class LabeledSkinBase<<any>>