This Guice module allows JavaFX applications to bind FX Properties to Preferences and store and retrieve it from the OS-specific registry.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fx-properties-module
README.md

README.md

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. It's inspired by the fx-guice (https://github.com/cathive/fx-guice) preferences injection.

sample usage:

	@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();
	}