IndexedCell subclass).
javafx.scene.control.TableCell or javafx.scene.control.TreeTableCell ).
javafx.scene.control.TableRow and javafx.scene.control.TreeTableRow
(the concrete classes are TableRowSkin and TreeTableRowSkin,
respectively).
javafx.scene.control.TableRow , javafx.scene.control.TreeTableRow , TableRowSkin, TreeTableRowSkin
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final List | |
| pack-priv WeakHashMap | |
| private Map | |
| private static final Duration | |
| pack-priv boolean | |
| pack-priv static final Map |
| Access | Constructor and Description |
|---|---|
| public | TableRowSkinBase(C
The control that this skin should be installed onto. control)Creates a new instance of TableRowSkinBase, although note that this instance does not handle any behavior / input mappings - this needs to be handled appropriately by subclasses. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| pack-priv final void | |
| protected double | computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the maximum allowable height of the Skin, based on the provided width. |
| protected double | computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the minimum allowable height of the Skin, based on the provided width. |
| protected double | computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Calculates the preferred height of this |
| protected double | computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Calculates the preferred width of this |
| protected abstract R | Returns: the created cellthe table column tc)Creates a new cell instance that is suitable for representing the given table column instance. |
| private R | |
| public void | dispose()
Overrides javafx. Implements javafx. Called when a previously installed skin is about to be removed from its associated control. |
| private void | |
| private void | |
| pack-priv Node | |
| pack-priv double | |
| pack-priv int | |
| pack-priv double | |
| protected abstract TableColumnBase | Returns: the table columnThe cell for which a TableColumn is desired. cell)Returns the |
| pack-priv TableColumnBase | |
| pack-priv VirtualFlow | |
| protected abstract ObservableList | Returns: the list of visible leaf columnsReturns an unmodifiable list containing the currently visible leaf columns. |
| protected ObjectProperty | Returns: the graphic to draw on the inside of the disclosure nodeReturns the graphic to draw on the inside of the disclosure node. |
| private boolean | |
| pack-priv boolean | |
| pack-priv boolean | isDisclosureNodeVisible()
Used to represent whether a disclosure node is visible for _this_ table row. |
| pack-priv boolean | isIndentationRequired()
Used to represent whether the current virtual flow owner is wanting indentation to be used in this table row. |
| pack-priv boolean | |
| protected void | layoutChildren(double x, double y, final double w, final double h)
Overrides javafx. 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 |
| private void | |
| private void | |
| private void | |
| pack-priv void | |
| private boolean | |
| private void | |
| protected abstract void | updateCell(R
The cell for which we want to inform it of its owner row. cell, C The row which will be set on the given cell. row)A method to allow the given cell to be told that it is a member of the given row. |
| pack-priv void | |
| pack-priv void |
| cells | back to summary |
|---|---|
| pack-priv final List<R> cells | |
| cellsMap | back to summary |
|---|---|
| pack-priv WeakHashMap<TableColumnBase<S, T>, Reference<R>> cellsMap | |
| currentTransitions | back to summary |
|---|---|
| private Map<Node, FadeTransition> currentTransitions | |
| FADE_DURATION | back to summary |
|---|---|
| private static final Duration FADE_DURATION | |
| isDirty | back to summary |
|---|---|
| pack-priv boolean isDirty | |
| maxDisclosureWidthMap | back to summary |
|---|---|
| pack-priv static final Map<TableColumnBase<?, ?>, Double> maxDisclosureWidthMap | |
| TableRowSkinBase | back to summary |
|---|---|
| public TableRowSkinBase(C control) Creates a new instance of TableRowSkinBase, although note that this instance does not handle any behavior / input mappings - this needs to be handled appropriately by subclasses.
| |
| cancelTransition | back to summary |
|---|---|
| private void cancelTransition(Node node) | |
| checkState | back to summary |
|---|---|
| pack-priv final void checkState() | |
| computeMaxHeight | back to summary |
|---|---|
| protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the maximum allowable height of the Skin, based on the provided width.
| |
| computeMinHeight | back to summary |
|---|---|
| protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the minimum allowable height of the Skin, based on the provided width.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred height of this
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred width of this
| |
| createCell | back to summary |
|---|---|
| protected abstract R createCell(TableColumnBase<T, ?> tc) Creates a new cell instance that is suitable for representing the given table column instance.
| |
| createCellAndCache | back to summary |
|---|---|
| private R createCellAndCache(TableColumnBase<T, ?> col) | |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides javafx. Implements javafx. Doc from javafx. Called when a previously installed skin is about to be removed from its associated control.
This allows the skin to do clean up, like removing listeners and bindings, and undo any changes
to the control's properties.
After this method completes,
Calling
| |
| fadeIn | back to summary |
|---|---|
| private void fadeIn(final Node node) | |
| fadeOut | back to summary |
|---|---|
| private void fadeOut(final Node node) | |
| getDisclosureNode | back to summary |
|---|---|
| pack-priv Node getDisclosureNode() | |
| getFixedCellSize | back to summary |
|---|---|
| pack-priv double getFixedCellSize() | |
| getIndentationLevel | back to summary |
|---|---|
| pack-priv int getIndentationLevel(C control) | |
| getIndentationPerLevel | back to summary |
|---|---|
| pack-priv double getIndentationPerLevel() | |
| getTableColumn | back to summary |
|---|---|
| protected abstract TableColumnBase Returns the
| |
| getTreeColumn | back to summary |
|---|---|
| pack-priv TableColumnBase Returns the table column that should show the disclosure nodes and / or a graphic. By default this is the left-most column. | |
| getVirtualFlow | back to summary |
|---|---|
| pack-priv VirtualFlow | |
| getVisibleLeafColumns | back to summary |
|---|---|
| protected abstract ObservableList Returns an unmodifiable list containing the currently visible leaf columns.
| |
| graphicProperty | back to summary |
|---|---|
| protected ObjectProperty Returns the graphic to draw on the inside of the disclosure node. Null is acceptable when no graphic should be shown. Commonly this is the graphic associated with a TreeItem (i.e. treeItem.getGraphic()), rather than a graphic associated with a cell.
| |
| isColumnPartiallyOrFullyVisible | back to summary |
|---|---|
| private boolean isColumnPartiallyOrFullyVisible(double start, double width, VirtualFlow<C> virtualFlow) | |
| isDirty | back to summary |
|---|---|
| pack-priv boolean isDirty() | |
| isDisclosureNodeVisible | back to summary |
|---|---|
| pack-priv boolean isDisclosureNodeVisible() Used to represent whether a disclosure node is visible for _this_ table row. Not to be confused with isIndentationRequired(), which is the more general API. | |
| isIndentationRequired | back to summary |
|---|---|
| pack-priv boolean isIndentationRequired() Used to represent whether the current virtual flow owner is wanting indentation to be used in this table row. | |
| isShowRoot | back to summary |
|---|---|
| pack-priv boolean isShowRoot() | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren(double x, double y, final double w, final double h) Overrides javafx. Doc from javafx. 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
| |
| recreateCells | back to summary |
|---|---|
| private void recreateCells() | |
| removeTransition | back to summary |
|---|---|
| private void removeTransition(Node node) | |
| requestCellUpdate | back to summary |
|---|---|
| private void requestCellUpdate() | |
| setDirty | back to summary |
|---|---|
| pack-priv void setDirty(boolean dirty) | |
| shouldAnimate | back to summary |
|---|---|
| private boolean shouldAnimate() | |
| trackTransition | back to summary |
|---|---|
| private void trackTransition(Node node, FadeTransition transition) | |
| updateCell | back to summary |
|---|---|
| protected abstract void updateCell(R cell, C row) A method to allow the given cell to be told that it is a member of the given row. How this is implemented is dependent on the actual cell implementation.
| |
| updateCells | back to summary |
|---|---|
| pack-priv void updateCells() | |
| updateLeafColumns | back to summary |
|---|---|
| pack-priv void updateLeafColumns() | |