Package org.fulib.fx.controller
Class AutoRefresher
java.lang.Object
org.fulib.fx.controller.AutoRefresher
Class used for automatically reloading controllers when their corresponding FXML file changes.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AutoRefresher
@Inject public AutoRefresher()
-
-
Method Details
-
setup
Registers the auto refresher for the given directory.- Parameters:
directory- The directory to check for updates- Throws:
RuntimeException- If the given path is not a directory
-
close
public void close()
-