msafarulla
09/03/2020, 6:01 AMRuckus
09/03/2020, 6:34 AMmsafarulla
09/03/2020, 7:04 AMmp
09/03/2020, 9:35 AMMarshall
09/03/2020, 12:52 PMMarshall
09/03/2020, 12:52 PMmsafarulla
09/03/2020, 1:35 PMmsafarulla
09/03/2020, 1:36 PMMarshall
09/03/2020, 1:37 PMmsafarulla
09/03/2020, 1:40 PMMarshall
09/03/2020, 1:41 PMMarshall
09/03/2020, 1:41 PMMarshall
09/03/2020, 1:41 PMMarshall
09/03/2020, 1:43 PMoverride val root: SplitPane by fxml("/fxml/Areas.fxml")
private val tvAreas: TableView<Area> by fxid()
Marshall
09/03/2020, 1:44 PMwith(tvAreas) {
vgrow = Priority.ALWAYS
isEditable = true
column("Id", Area::idProperty).prefWidth(75).makeEditCell()
column("Name", Area::nameProperty).prefWidth(250).makeEditCell()
}
msafarulla
09/03/2020, 1:50 PMMarshall
09/03/2020, 1:51 PMMarshall
09/03/2020, 1:51 PMMarshall
09/03/2020, 1:52 PMMarshall
09/03/2020, 1:52 PMMarshall
09/03/2020, 1:54 PMmsafarulla
09/03/2020, 1:55 PMMarshall
09/03/2020, 1:55 PMRuckus
09/03/2020, 2:34 PMmsafarulla
09/06/2020, 1:29 PMRuckus
09/06/2020, 3:40 PMmsafarulla
09/06/2020, 3:44 PMRuckus
09/06/2020, 3:48 PMmsafarulla
09/06/2020, 3:58 PMRuckus
09/06/2020, 4:20 PMImage
and set it as the graphic
of the column.msafarulla
09/06/2020, 5:17 PMmsafarulla
09/06/2020, 5:25 PMRuckus
09/06/2020, 5:32 PMSmartResize
policy, though I don't have much experience with it.msafarulla
09/06/2020, 5:46 PMgraphic
this issue started happening.Ruckus
09/06/2020, 6:02 PMSmartResize
.msafarulla
09/06/2020, 6:03 PMmsafarulla
09/06/2020, 6:21 PMSmartResize
but it made it further worse. Is it a good idea to mix up both TFX and CSS bootstrapping?Ruckus
09/06/2020, 6:23 PMmsafarulla
09/06/2020, 6:24 PMmsafarulla
09/06/2020, 6:51 PMcolumn.prefWidth(175.0)
and that seemed to have resolved the problem. Would be happier if this could have been done with the CSS bootstrap itself. Of course it is not the perfect solution and columns are wider than I want it to be.msafarulla
09/13/2020, 4:01 PM-fx-graphic: url(img.jpg);
adds the image to all the columns, but dont want this on the id column, is there a way to do that only for the selected columns?Ruckus
09/13/2020, 4:03 PMmsafarulla
09/13/2020, 4:06 PMMarshall
09/13/2020, 4:07 PMMarshall
09/13/2020, 4:07 PMmsafarulla
09/13/2020, 4:08 PMMarshall
09/13/2020, 4:10 PMtableview.columns.forEach { if( it.text != "Id" ) it.graphic = img }
Marshall
09/13/2020, 4:11 PMMarshall
09/13/2020, 4:11 PMmsafarulla
09/13/2020, 6:34 PMview.table.columns.forEach { it.graphic = Circle(5.0)
, but how do thy get an image instead of a circle?Marshall
09/13/2020, 6:35 PMMarshall
09/13/2020, 6:36 PMmsafarulla
09/14/2020, 3:04 AMview.table.columns.forEach { if(it.text!="") it.graphic = ImageView("img.jpg")
msafarulla
09/14/2020, 1:59 PMmsafarulla
09/15/2020, 4:14 PM