Skip to content
Snippets Groups Projects
Commit 286bdc52 authored by aarnipe's avatar aarnipe
Browse files

JavaDoc grind part 2, added some package-info, removed unused controller frames

parent 09c36f51
No related branches found
No related tags found
No related merge requests found
......@@ -169,7 +169,6 @@ public class ProfileViewController {
return true;
}
private void showNotification(String title, String text, boolean success){
ImageView icon = null;
if(success) icon = new ImageView(new Image("/image/success-ico.png"));
......
......@@ -8,10 +8,19 @@ import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.ResourceBundle;
/**
* Resource loader for .fxml files and {@link ResourceBundle}.
* Used whenever parent view or subview view is loaded.
*/
public class GetView {
private Pane view;
/**
* Loads requested view based on view name received as a parameter
* @param viewName is the name of fxml file to load without the .fxml extension
* @return loaded view
*/
public Pane getView(String viewName) {
FXMLLoader loader = new FXMLLoader();
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment