mikehearn
12/20/2018, 11:50 AMmikehearn
12/20/2018, 11:50 AMedvin
12/20/2018, 12:00 PMmikehearn
12/20/2018, 12:04 PMedvin
12/20/2018, 12:05 PMbjonnh
12/20/2018, 3:03 PMcarlw
12/20/2018, 3:43 PMcarlw
12/20/2018, 3:44 PMsbyrne
12/20/2018, 4:03 PMclass Foo
) displayed in a TableTreeView
, and I have a Label
(outside of the TableTreeView
) that should display the result of Foo::getSomething()
(which returns String
) of the selected tree item (and update when the selection changes). Is there a way to bind that to an observable? Or do I have to write a listener to do the update?sbyrne
12/20/2018, 4:13 PMlabel().apply { bind( property = model.itemProperty, readonly = true, converter = object: StringConverter<Foo>() { /* toString calls Foo::getSomething() */ } ) }
. Is there a better approach?bjonnh
12/20/2018, 4:23 PMbjonnh
12/20/2018, 4:24 PMedvin
12/20/2018, 5:07 PMlabel(model.itemProperty.stringBinding { it.getSomething() })
?edvin
12/20/2018, 5:07 PMbjonnh
12/20/2018, 5:14 PMsbyrne
12/20/2018, 7:02 PMjavafx.stage.Screen.getPrimary()
decides which one is primary? It clearly isn't getting it from xrandr
.sbyrne
12/20/2018, 7:09 PMbjonnh
12/20/2018, 7:38 PMbjonnh
12/20/2018, 7:44 PMsbyrne
12/20/2018, 7:46 PMsbyrne
12/20/2018, 7:46 PMbjonnh
12/20/2018, 7:46 PMbjonnh
12/20/2018, 7:47 PMsbyrne
12/20/2018, 7:48 PMbjonnh
12/20/2018, 7:48 PMbjonnh
12/20/2018, 7:48 PMbjonnh
12/20/2018, 7:49 PMbjonnh
12/20/2018, 7:49 PM