-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
1,321 additions
and
1,031 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...cation/src/main/java/ntnu/systemutvikling/team6/controller/components/BaseController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| package ntnu.systemutvikling.team6.controller.components; | ||
|
|
||
| import ntnu.systemutvikling.team6.service.AuthenticationService; | ||
|
|
||
| public abstract class BaseController { | ||
| protected AuthenticationService authToken; | ||
|
|
||
| public void setAuthToken(AuthenticationService authToken){ | ||
| this.authToken = authToken; | ||
| authTokenisSet(); | ||
| }; | ||
| protected void authTokenisSet(){} // Do stuff after authtoken is set, on each controller | ||
|
|
||
| protected boolean isLoggedin(){ | ||
| return authToken.isLoggedin() && authToken != null; | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...rc/main/java/ntnu/systemutvikling/team6/controller/components/NavbarFooterController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| package ntnu.systemutvikling.team6.controller.components; | ||
|
|
||
| import javafx.event.ActionEvent; | ||
| import javafx.fxml.FXML; | ||
| import javafx.scene.control.TextField; | ||
|
|
||
| public interface NavbarFooterController { | ||
|
|
||
| default void switchToFrontPage(ActionEvent event) { | ||
| System.out.println("Click!"); | ||
| LoaderScene.LoadScene("FrontPage", event, null, null); | ||
| } | ||
|
|
||
| default void switchToAboutPage(ActionEvent event) { | ||
| System.out.println("Click!"); | ||
| LoaderScene.LoadScene("aboutPage", event, null, null); | ||
| } | ||
|
|
||
| default void switchToProfilePage(ActionEvent event) { | ||
| System.out.println("Click!"); | ||
| LoaderScene.LoadScene("aboutPage", event, null, null); | ||
| } | ||
|
|
||
| default void handleSearch(ActionEvent event) { | ||
| System.out.println("Click!"); | ||
| LoaderScene.LoadScene("aboutPage", event, null, null); | ||
| } | ||
|
|
||
| default void switchToLoginPage(ActionEvent event) { | ||
| System.out.println("Click!"); | ||
| LoaderScene.LoadScene("aboutPage", event, null, null); | ||
| } | ||
| } |
2 changes: 1 addition & 1 deletion
2
...ontroller/OrganizationCardController.java → ...omponents/OrganizationCardController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.