edvin
01/16/2017, 8:13 AMron
01/16/2017, 8:13 AMron
01/16/2017, 8:13 AMedvin
01/16/2017, 8:46 AMron
01/16/2017, 8:46 AMedvin
01/16/2017, 8:52 AMWorkspace.disableNavigation()
which will remove them. You can also manually set the maxViewStackDepth
property to 0 and they will disappear.edvin
01/16/2017, 9:01 AMron
01/16/2017, 9:01 AMedvin
01/16/2017, 9:01 AMedvin
01/16/2017, 9:02 AMron
01/16/2017, 9:02 AMron
01/16/2017, 9:02 AMedvin
01/16/2017, 9:03 AMaddClass("icon-only")
on the buttons you provide. If you then set the graphic to an icon it will look just like the default ones. You can also change their icon with css, check out the `workspace.css`:edvin
01/16/2017, 9:03 AMedvin
01/16/2017, 9:03 AMron
01/16/2017, 9:04 AMedvin
01/16/2017, 9:04 AMron
01/16/2017, 9:04 AMedvin
01/16/2017, 9:05 AM</>
dropdown and choose View SVG
. From there you can extract the path of the icon you want.edvin
01/16/2017, 9:06 AMbutton("My button") { addClass("icon-only"); graphic = graphic = label { addClass("icon", "myicon") } }
edvin
01/16/2017, 9:06 AM.workspace .header .icon.myicon
in the css file with the correct -fx-path
edvin
01/16/2017, 9:17 AMron
01/16/2017, 9:18 AMron
01/16/2017, 9:18 AMron
01/16/2017, 9:19 AMedvin
01/16/2017, 9:21 AMcellDecorator
runs for every cell, even those that currently has no value, you need to check if you have a value before calling rowItem
. Something like textFill = if (it != null && rowItem.model.lastName.isDirty) Color.RED else Color.BLACK
edvin
01/16/2017, 9:25 AMrowItem
when there is no cell for it. Maybe it should have been nullable, but then it's not so nice to use from cellFormat
.edvin
01/16/2017, 9:26 AMron
01/16/2017, 9:27 AM