Package NTNU.IDATT1002.controllers
Class Explore
java.lang.Object
- All Implemented Interfaces:
javafx.fxml.Initializable
public class Explore extends PaginatedContent<Image>
Controls the buttons and changeable elements on explore.fxml,
a page where you explore images.
- Version:
- 1.0 22.03.2020
-
Field Summary
Fields inherited from class NTNU.IDATT1002.controllers.NavBarController
navBarAlbums, navBarExplore, navBarLogo, navBarLogOut, navBarMap, navBarSearch, navBarSearchBtn, navBarUpload, returnButton -
Constructor Summary
Constructors Constructor Description Explore()TellPaginatedContentwhich fields to sortImages by. -
Method Summary
Modifier and Type Method Description java.util.List<ImageRow>getContentsFrom(Page<Image> page)protected PageableService<Image>getService()Return anImageServiceto use inPaginatedContent.voidswitchToViewImage(javafx.scene.input.InputEvent event)Change scene to View Picture page for the image that was interacted with.Methods inherited from class NTNU.IDATT1002.controllers.PaginatedContent
createAndShowResultsSelection, getPageFactory, getPageTaskFor, initialize, pageChanged, pageSizeSelectionChanged, scrollToTop, updatePageMethods inherited from class NTNU.IDATT1002.controllers.NavBarController
doBeforePageExit, enterSearch, goToPrevious, logOut, search, switchToAlbums, switchToExplore, switchToMain, switchToMap, switchToSearch, switchToUpload
-
Constructor Details
-
Explore
public Explore()TellPaginatedContentwhich fields to sortImages by. TellDataExchangethat explore page is visited
-
-
Method Details
-
getService
Return anImageServiceto use inPaginatedContent.- Specified by:
getServicein classPaginatedContent<Image>
-
getContentsFrom
- Specified by:
getContentsFromin classPaginatedContent<Image>- Parameters:
page- thePagewho's content to parse- Returns:
- the list of content parsed into a list of
ImageRows
-
switchToViewImage
public void switchToViewImage(javafx.scene.input.InputEvent event) throws java.io.IOExceptionChange scene to View Picture page for the image that was interacted with.- Throws:
java.io.IOException
-