Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Team 14 - IDATT1002
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eirik Steira
Team 14 - IDATT1002
Merge requests
!54
Javadoc for controllers
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Javadoc for controllers
javadoc-controllers
into
dev
Overview
0
Commits
3
Pipelines
2
Changes
18
Merged
Simon Jensen
requested to merge
javadoc-controllers
into
dev
5 years ago
Overview
0
Commits
3
Pipelines
2
Changes
18
Expand
Made more javadoc for controllers
0
0
Merge request reports
Compare
dev
version 1
fe992975
5 years ago
dev (base)
and
latest version
latest version
5f91a4d8
3 commits,
5 years ago
version 1
fe992975
1 commit,
5 years ago
18 files
+
461
−
206
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
18
Search (e.g. *.vue) (Ctrl+P)
src/main/java/NTNU/IDATT1002/controllers/CreateAlbum.java
+
51
−
12
Options
@@ -12,6 +12,11 @@ import javafx.scene.layout.Pane;
import
java.io.IOException
;
/**
* Controls the buttons and changeable elements on create_album.fxml,
* a page where you create albums
* @version 1.0 22.03.2020
*/
public
class
CreateAlbum
{
public
TextField
tbar_search
;
public
ImageView
tbar_logo
;
@@ -28,27 +33,61 @@ public class CreateAlbum {
public
Button
tbar_albums
;
public
Button
tbar_searchBtn
;
public
void
switchToSearch
(
ActionEvent
actionEvent
)
throws
IOException
{
App
.
setRoot
(
"search"
);
}
public
void
switchToUpload
(
ActionEvent
actionEvent
)
throws
IOException
{
App
.
setRoot
(
"upload"
);
/**
* Method that changes stage to Main page
* @param mouseEvent
* @throws IOException
*/
public
void
switchToMain
(
MouseEvent
mouseEvent
)
throws
IOException
{
App
.
setRoot
(
"main"
);
}
public
void
switchToMap
(
ActionEvent
actionEvent
)
throws
IOException
{
App
.
setRoot
(
"map"
);
/**
* Method that changes stage to Search page. It reads the value of the search
* field and if not empty it is passed to dataexchange
* @param actionEvent
* @throws IOException
*/
public
void
switchToSearch
(
ActionEvent
actionEvent
)
throws
IOException
{
if
(!
tbar_search
.
getText
().
isEmpty
()){
App
.
ex
.
setSearchField
(
tbar_search
.
getText
());
}
App
.
setRoot
(
"search"
);
}
/**
* Method that changes stage to Explore page
* @param actionEvent
* @throws IOException
*/
public
void
switchToExplore
(
ActionEvent
actionEvent
)
throws
IOException
{
App
.
setRoot
(
"explore"
);
}
public
void
switchToMain
(
MouseEvent
mouseEvent
)
throws
IOException
{
App
.
setRoot
(
"main"
);
}
/**
* Method that changes stage to Albums page
* @param actionEvent
* @throws IOException
*/
public
void
switchToAlbums
(
ActionEvent
actionEvent
)
throws
IOException
{
App
.
setRoot
(
"explore_albums"
);
}
/**
* Method that changes stage to Map page
* @param actionEvent
* @throws IOException
*/
public
void
switchToMap
(
ActionEvent
actionEvent
)
throws
IOException
{
App
.
setRoot
(
"map"
);
}
/**
* Method that changes stage to Upload page
* @param actionEvent the mouse has done something
* @throws IOException this page does not exist
*/
public
void
switchToUpload
(
ActionEvent
actionEvent
)
throws
IOException
{
App
.
setRoot
(
"upload"
);
}
}
Loading