org.controlsfx.control.table.TableRowExpanderColumn to a TableView.
The skin will render the expanded node produced by the
org.controlsfx.control.table.TableRowExpanderColumn#expandedNodeCallback whenever the expanded state is
changed to true for a certain row.
| Modifier and Type | Field and Description |
|---|---|
| private TableRowExpanderColumn | |
| private final TableRow | |
| private Double |
| Access | Constructor and Description |
|---|---|
| public | ExpandableTableRowSkin(TableRow<S>
The table row to apply this skin for tableRow, TableRowExpanderColumn<S> The expander column, used to retrieve the expanded node when this row is expanded expander)Create the ExpandableTableRowSkin and listen to changes for the item this table row represents. |
| Modifier and Type | Method and Description |
|---|---|
| protected double | Returns: The preferred height of the TableRow, appended with the preferred height of the expanded node if this row is currently expanded.Overrides javafx. Add the preferred height of the expanded Node whenever the expanded flag is true. |
| private Node | Returns: The expanded content NodeCreate the expanded content node that should represent the current table row. |
| private Boolean | Returns: A boolean indicating the expanded state of this rowCheck if the current node is expanded. |
| protected void | layoutChildren(double x, double y, double w, double h)
Overrides javafx. Lay out the columns of the TableRow, then add the expanded content node below if this row is currently expanded. |
| expander | back to summary |
|---|---|
| private TableRowExpanderColumn<S> expander | |
| tableRow | back to summary |
|---|---|
| private final TableRow<S> tableRow | |
| tableRowPrefHeight | back to summary |
|---|---|
| private Double tableRowPrefHeight | |
| ExpandableTableRowSkin | back to summary |
|---|---|
| public ExpandableTableRowSkin(TableRow<S> tableRow, TableRowExpanderColumn<S> expander) Create the ExpandableTableRowSkin and listen to changes for the item this table row represents. When the item is changed, the old expanded node, if any, is removed from the children list of the TableRow.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Add the preferred height of the expanded Node whenever the expanded flag is true.
| |
| getContent | back to summary |
|---|---|
| private Node getContent() Create the expanded content node that should represent the current table row. If the expanded content node is not currently in the children list of the TableRow it is automatically added.
| |
| isExpanded | back to summary |
|---|---|
| private Boolean isExpanded() Check if the current node is expanded. This is done by checking that there is an item for the current row, and that the expanded property for the row is true.
| |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren(double x, double y, double w, double h) Overrides javafx. Lay out the columns of the TableRow, then add the expanded content node below if this row is currently expanded.
| |