JavaFX: Drag and drop whole Table column into second TableView - javafx

I need to drag column from one TableView and drop it into another TableView. Something like reorder but between two tables. In docs there is example just for rows.

Related

In a QTableView how to check if the the whole row was selected (by clicking on the horizontal header)?

I have a QTableView with a model where not all the cell is selectable. I want to execute some code if the user selected the whole row by clicking on the horizontal header and not just by selecting a cell.
I looked around the QTableView selected methods and HorizontalHeader methods like:
horizontalHeader()->selectionModel()->hasSelection()
But that gives true even if only one cell was selected. I don't see how to check if the whole row is selected.
Any idea is appreciated.

JavaFX TableView how to get a row cell graphic

I have a JavaFX TableView, the first column is a selection checkbox column, user can select the checkbox and do something. And in the header column, it have a checkbox, I wan't it to be select all, when selected this column, it will select all checkbox to be selected. But the question is I haven't found there have any methods or ways in the JavaFX TableView or TableColumn to get the checkbox in the table row. If I can the checkboxs in the table row, I can change their state to checked.
Thanks in advance.

How to wrap a node (combobox or textfield) with a table column?

I have a table with 5 columns. I have comboboxes and textfields which will take user input. When the user submits it, the data gets added to the table. I have a requirement where I need to place these comboboxes and textfields on top of the corresponding table columns. If I drag the table column or the entire table itself, the comboboxes and textfields also should adjust itself according to the table header length. Is this possible?

Filter functionality in tableview

I am currently testing out tableview in JavaFX. Is there any way where I can add a empty row on top for filtering like in the image underneath(print screen from Microsoft AX)? The empty row marked with yellow is purely used for filtering, and if you write in any of the columns it will filter by that.

Drag and drop column data to another column

In Flex, using AdvancedDataGrid, I'm trying to achieve a drag and drop of one row's column data to another row's column or the same row but different column. Is this even possible? I've been googling for hours and all I can find are drag and drop whole columns just to rearrange their view order.
You have two options to make columns draggable.
First is to make all the columns draggable in the DataGrid. You can do this using the draggableColumns property on the DataGrid class. Set its value to true.
The second is to set the draggable property on the DataGridColumn class.
In both cases, you would drag the columns using the column header.
If you want to be able to drag a single cell, there is no way to do this that I know of.

Resources