JavaFX: Disable multiple rows in TableView based on other TableView -


I'm creating an application in JavaFx Now I have two tableviews next to each other:

  ----------------------------- ----------------- -------------------------------- | Table view 1 | Table view 2 | | | | | | Entry 1 | | | Entry 2 | | | Entry 3 | | | Entry ... | | | Entry en | -------------------------------------------------- ----------------------------  

I want to copy table from table 2 to table view Also 1, but the entries required to be copied from Table Entry 2 need to be disabled (disable the set desable or some similar row). I know how to copy another item of a tableview The problem is that I do not know how to disable multiple rows, when one or many entries are copied to Table View 1. I tried to do it with RowFactory like this:

  productsInTransaction.setRowFactory (tv -> {TableRow  gt; line = new tablero & lt; & gt; (); Line.projectProperty () .bind (???); return line;});  

Any help is appreciated!

I'm not sure you're very sure about the argument, but if your line factory table 1, and when the table is present in Table 2, then you are disabling the line:

  line DisableProperty (). Tie (binding.cutet boolean binding (-) -> Table 2.Gettym (). (LinegateItim), Table 2.GetItems (), line.teamproperty ()));  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -