https://github.com/choosechee/choosechee-javafx-extensions
Groovy extensions for JavaFX
https://github.com/choosechee/choosechee-javafx-extensions
groovy javafx jvm
Last synced: 3 months ago
JSON representation
Groovy extensions for JavaFX
- Host: GitHub
- URL: https://github.com/choosechee/choosechee-javafx-extensions
- Owner: Choosechee
- License: other
- Created: 2025-07-15T05:06:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-16T00:31:11.000Z (about 1 year ago)
- Last Synced: 2025-07-17T01:03:24.536Z (about 1 year ago)
- Topics: groovy, javafx, jvm
- Language: Groovy
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Choosechee's JavaFX Extensions
## Overview
A collection of useful Groovy extensions for JavaFX. They *should* also
work for Java, Kotlin, and other JVM languages, just without being able
to use them as extension methods. Currently, there are only extension
methods for `GridPane`:
- `columnCountProperty()` and `rowCountProperty()`, for listening and
binding to a `GridPane`'s column and row count
- `getDefaultColumnConstraints()`, `setDefaultColumnConstraints(ColumnConstraints)`
`getDefaultRowConstraints()`, and `setDefaultRowConstraints(RowConstraints)`,
for setting and later getting default constraints for `GridPane`
columns and rows
## Building
To build, you need Java 11+, Maven, and (for the moment) Gradle. You
first need to build my Spock fork that fixes an issue preventing Spock
from working for modular projects, allowing the tests to work. The fork
can be found here: https://github.com/Choosechee/spock-modules-fix.
Clone the **for-use** branch, open a terminal in its folder, and run
`gradle build publishToMavenLocal -Dvariant=4.0`. Now, you can clone
choosechee-javafx-extensions and run `mvn package`, `mvn install`, or
whatever you want to do.
## Roadmap to v1.0.0
- ~~Allow listening and binding to `GridPane` column and row count~~
- ~~Default column and row constraints for `GridPane`~~
- Allow binding to default column/row constraints
- View of `GridPane`'s children as a matrix
- Column constraints for `HBox` and row constraints for `VBox`
- Javadocs (looking at the Spock specifications is a good substitute for now)
- Make extension method syntax work in Kotlin as well