carlw
01/10/2017, 11:56 AMcarlw
01/10/2017, 11:56 AMedvin
01/10/2017, 11:57 AMsetOnAction
, everything inside the first block is the action. If you add setOnAction
, the event would fire on menu activation number two.edvin
01/10/2017, 11:57 AMsetOnAction
so it's in line with buttons, this is a recurring source of bugs.edvin
01/10/2017, 11:57 AMcarlw
01/10/2017, 12:30 PMedvin
01/10/2017, 12:38 PMcarlw
01/10/2017, 12:38 PMcarlw
01/10/2017, 12:39 PMcarlw
01/10/2017, 12:40 PMcarlw
01/10/2017, 12:40 PMcarlw
01/10/2017, 12:40 PMedvin
01/10/2017, 12:54 PMedvin
01/10/2017, 1:01 PMedvin
01/10/2017, 1:02 PMval fatherName = child.parentProperty().nested(Person::nameProperty)
edvin
01/10/2017, 1:02 PMedvin
01/10/2017, 1:26 PMbind
called forceObjectProperty
to avoid creating specialized properties like IntegerProperty
if you need an ObjectProperty<Int>
instead. This is important because SimpleIntegerProperty
for example cannot hold null values and will convert null to 0.edvin
01/10/2017, 1:43 PMOrderline
which has a Product
property. In a TableView however, you want to display the id
of the product on that orderline. You can define this as follows in `Orderline`:edvin
01/10/2017, 1:43 PMval productId = productProperty.nested(Product::id)
edvin
01/10/2017, 1:43 PMedvin
01/10/2017, 1:43 PMcolumn("Product", Orderline::productId)
edvin
01/10/2017, 1:43 PMcarlw
01/10/2017, 1:58 PMedvin
01/10/2017, 2:32 PMedvin
01/10/2017, 2:32 PMnested
is not the right word?edvin
01/10/2017, 2:33 PMselect
perhaps?carlw
01/10/2017, 2:33 PMcarlw
01/10/2017, 2:34 PMcarlw
01/10/2017, 2:34 PMedvin
01/10/2017, 2:35 PM