An open API service indexing awesome lists of open source software.

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

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