Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 558 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 558 Bytes

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