https://github.com/edvin/tornadofx-controlsfx
ControlsFX Builder extensions and utilities for TornadoFX
https://github.com/edvin/tornadofx-controlsfx
Last synced: about 1 year ago
JSON representation
ControlsFX Builder extensions and utilities for TornadoFX
- Host: GitHub
- URL: https://github.com/edvin/tornadofx-controlsfx
- Owner: edvin
- License: apache-2.0
- Created: 2016-06-30T19:37:26.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-04-06T09:17:57.000Z (about 7 years ago)
- Last Synced: 2025-04-04T22:43:40.590Z (about 1 year ago)
- Language: Kotlin
- Size: 173 KB
- Stars: 71
- Watchers: 11
- Forks: 10
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TornadoFX-ControlsFX
[ControlsFX](http://fxexperience.com/controlsfx/features/) builder extensions and utilities for [TornadoFX](https://github.com/edvin/tornadofx).
[](https://search.maven.org/#search|ga|1|no.tornado.tornadofx-controlsfx)
[](http://www.apache.org/licenses/LICENSE-2.0)
### Add TornadoFX-ControlsFX to your project
#### Maven
```xml
no.tornado
tornadofx-controlsfx
0.1
```
#### Gradle
```groovy
compile 'no.tornado:tornadofx-controlsfx:0.1'
```
## Examples
### TableView Filter
```kotlin
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()
}
}
```

### BreadCrumbBar
```kotlin
class BreadCrumbPane: View() {
var targetCrumb: TreeItem? = null
override val root = breadcrumbbar {
treeitem("Alpha") {
treeitem("Beta") {
targetCrumb = treeitem("Gamma")
}
treeitem("Zeta")
}
selectedCrumb = targetCrumb
}
}
```

###
## Contributing
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/
* [X] BreadCrumbBar
* [X] Borders
* [X] CheckListView
* [X] CheckComboBox
* [X] CheckTreeView
* [X] Glyphs
* [X] CustomPasswordField
* [X] CustomTextField
* [ ] Picker
* [X] ProgressDialog
* [X] ExceptionDialog
* [X] TableFilter
* [X] RangeSlider
* [ ] SpreadsheetView
* [X] StatusBar
* [X] ToggleSwitch
* [X] WorldMapView
* [X] SegmentedBar
* [X] Rating
* [X] PropertySheet
* [X] PopOver
* [X] Plus/Minus Slider
* [X] Notifications
* [X] NotificationsPane
* [X] MasterDetailPane
* [X] MaskerPane
* [X] HyperlinkLabel
* [ ] GridView
* [X] FontAwesome
* [X] Decorator
* [X] InfoOverlay
* [X] ListSelectionView
* [X] Prefix Selection Combobox/Choicebox
* [X] SnapshotView
* [X] HiddenSidesPane
* [X] LoginDialog
* [X] CommandLinksDialog