Skip to content

Commit

Permalink
Rename MobileShowcaseMobileDetailsPage to MobileShowcaseDetailsPage
Browse files Browse the repository at this point in the history
Refactor the class and all its references to remove redundancy and improve readability. This change affects the class file name, its references in the app, and method parameters.
  • Loading branch information
dlemmermann committed Aug 12, 2024
1 parent d63eadf commit c906c23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import com.dlsc.jfxcentral2.mobile.pages.details.MobileLearnDetailsPage;
import com.dlsc.jfxcentral2.mobile.pages.details.MobileLibraryDetailsPage;
import com.dlsc.jfxcentral2.mobile.pages.details.MobilePersonDetailsPage;
import com.dlsc.jfxcentral2.mobile.pages.details.MobileShowcaseMobileDetailsPage;
import com.dlsc.jfxcentral2.mobile.pages.details.MobileShowcaseDetailsPage;
import com.dlsc.jfxcentral2.mobile.pages.details.MobileTipDetailsPage;
import com.dlsc.jfxcentral2.mobile.pages.details.MobileToolDetailsPage;
import com.dlsc.jfxcentral2.mobile.pages.details.MobileTutorialDetailsPage;
Expand Down Expand Up @@ -200,8 +200,8 @@ private MobileRouter createMobileRouter() {
.and(MobileRoute.redirect("/home", PagePath.HOME))
.and(MobileRoute.get(PagePath.LINKS, r -> MobileResponse.view(r, new MobileLinksOfTheWeekPage(size))))
.and(MobileRoute.get(PagePath.DOCUMENTATION, r -> MobileResponse.view(r, new MobileDocPage(size))))
.and(createCategoryOrDetailRoute(PagePath.SHOWCASES, RealWorldApp.class, () -> new MobileShowcasesCategoryPage(size), id -> new MobileShowcaseMobileDetailsPage(size, id)))
.and(createCategoryOrDetailRoute(PagePath.REAL_WORLD, RealWorldApp.class, () -> new MobileShowcasesCategoryPage(size), id -> new MobileShowcaseMobileDetailsPage(size, id)))
.and(createCategoryOrDetailRoute(PagePath.SHOWCASES, RealWorldApp.class, () -> new MobileShowcasesCategoryPage(size), id -> new MobileShowcaseDetailsPage(size, id)))
.and(createCategoryOrDetailRoute(PagePath.REAL_WORLD, RealWorldApp.class, () -> new MobileShowcasesCategoryPage(size), id -> new MobileShowcaseDetailsPage(size, id)))
.and(createCategoryOrDetailRoute(PagePath.LIBRARIES, Library.class, () -> new MobileLibrariesCategoryPage(size), id -> new MobileLibraryDetailsPage(size, id)))
.and(createCategoryOrDetailRoute(PagePath.PEOPLE, Person.class, () -> new MobilePeopleCategoryPage(size), id -> new MobilePersonDetailsPage(size, id)))
.and(createCategoryOrDetailRoute(PagePath.BLOGS, Blog.class, () -> new MobileBlogsCategoryPage(size), id -> new MobileBlogDetailsPage(size, id)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

import java.util.List;

public class MobileShowcaseMobileDetailsPage extends MobileDetailsPageBase<RealWorldApp> {
public class MobileShowcaseDetailsPage extends MobileDetailsPageBase<RealWorldApp> {

public MobileShowcaseMobileDetailsPage(ObjectProperty<Size> size, String itemId) {
public MobileShowcaseDetailsPage(ObjectProperty<Size> size, String itemId) {
super(size, RealWorldApp.class, itemId);
}

Expand Down

0 comments on commit c906c23

Please sign in to comment.