ControlsFX builder extensions and utilities for TornadoFX.
<dependency>
<groupId>no.tornado</groupId>
<artifactId>tornadofx-controlsfx</artifactId>
<version>0.1</version>
</dependency>
compile 'no.tornado:tornadofx-controlsfx:0.1'
class TableFilterView : View() {
override val root = tableview(patients) {
column("FIRST NAME", Patient::firstName)
column("LAST NAME", Patient::lastName)
column("GENDER", Patient::gender) {
columnfilter {
exceptValue(Gender.FEMALE)
}
}
column("BIRTHDAY", Patient::birthday)
column("AGE", Patient::age)
column("WBCC", Patient::whiteBloodCellCount)
tableFilter.executeFilter()
}
}
class BreadCrumbPane: View() {
var targetCrumb: TreeItem<String>? = null
override val root = breadcrumbbar<String> {
treeitem("Alpha") {
treeitem("Beta") {
targetCrumb = treeitem("Gamma")
}
treeitem("Zeta")
}
selectedCrumb = targetCrumb
}
}
I might have missed some or may have included extraneous utilities, but any help to create a TornadoFX DSL for the following is welcome.
Please read JavaDocs for full list of controls: https://controlsfx.bitbucket.io/