Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/comtel2000/fx-properties-module

This Guice module allows JavaFX applications to bind FX Properties to Preferences and store and retrieve it from the OS-specific registry.
https://github.com/comtel2000/fx-properties-module

guice java javafx

Last synced: 7 days ago
JSON representation

This Guice module allows JavaFX applications to bind FX Properties to Preferences and store and retrieve it from the OS-specific registry.

Awesome Lists containing this project

README

        

# fx-properties-module
This [Guice](https://github.com/google/guice) module allows JavaFX applications to bind FX Properties to Preferences and store and retrieve it from the OS-specific registry. It's inspired by the fx-guice (https://github.com/cathive/fx-guice) preferences injection.

sample usage:
```java

@PreferenceContext
PreferenceBinder persist;

@FXML
TextField userName;

public Demo() {
// store and retrieve user name from OS registry
persist.bind(userName.textProperty(), "user.name");
}

void close() {
persist.flush();
}

```