首页 文章
  • 0 votes
     answers
     views

    更改TornadoFX TableView行背景颜色,同时仍突出显示所选行

    我在TornadoFX应用程序中有一个TableView . 此TableView显示测试列表及其状态(未启动,启动,通过,失败) . 我希望传递的测试行为绿色,失败的测试行为红色 . 我已经将行设置为正确的颜色但是当我在表中选择一行时,它不再突出显示 . 如何更改此格式以突出显示所选行并为行着色以反映该测试是通过还是失败? tableview = tableview(tests) { r...
  • 0 votes
     answers
     views

    tornadofx EventBus使用tableview对象扩展表行

    背景:假设我有 multiple fragments of a single table in a view ,每个都有一个rowExpander . 预期行为:If in one table fragment I expand a row, other fragments same indexed row should get expanded. 同样崩溃 我的进步:样本片段: tablevie...
  • 0 votes
     answers
     views

    Tornadofx - 在构建时控制tableview行对象

    我的要求有点类似于Angular为HTML网页提供的内容 .基本上,在创建表时,迭代记录列表以获取记录,然后我们可以根据if条件删除行 . 像这样的东西: ng-repeat = "record in records" ng-if = "record.Id != 0" 同样在Tornadofx中,如果我想构建一个tableview,我这样做: tablev...
  • 1 votes
     answers
     views

    TornadoFX如何在编辑TableView时添加验证

    考虑下面的例子: class Item(name: String, number: Int) { val nameProperty = SimpleStringProperty(name) var name by nameProperty val numberProperty by lazy { SimpleIntegerProperty(number) } va...
  • 0 votes
     answers
     views

    TornadoFX TableView:获取选定的行值

    我在TornadoFX(Kotlin)中有这个TableView: class MainView : View() { val persone = listOf( Persona("marco", LocalDate.of(1980, 12, 20)), Persona("francesca", Lo...
  • 0 votes
     answers
     views

    Tornadofx Tableview行数

    嘿家伙可以有人请赐教 . 什么是标签显示 SortedFilteredList 大小的最佳方法 . 我有一个 tableview ,我想要一个标签显示当前表行数,同时使用 filterwhen 进行过滤
  • 0 votes
     answers
     views

    如何在双击tornadofx上更改单元格颜色

    我需要通过鼠标右键单击更改_777896中的单元格颜色 . 我的代码: cellFormat { _ -> graphicProperty().addListener { _ -> setOnMouseClicked { if (it.button == MouseButton.SECONDARY) sty...
  • 0 votes
     answers
     views

    如何在JavaFX中设置警报对话框的字体?

    我正在使用JavaFX来构建应用程序 . 我可以为场景设置字体 . 但是我无法为系统警报对话框设置字体 . 我正在使用TornadoFX和kotlin . 那么如何实现呢? 我使用javafx.scene.control.Alert#Alert(javafx.scene.control.Alert.AlertType,java.lang.String,javafx.scene.control.Bu...

热门问题