From c906c23911185d919fdbb2b96788174ff8b0ff84 Mon Sep 17 00:00:00 2001 From: Dirk Lemmermann Date: Mon, 12 Aug 2024 12:59:19 +0200 Subject: [PATCH] Rename MobileShowcaseMobileDetailsPage to MobileShowcaseDetailsPage 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. --- .../java/com/dlsc/jfxcentral2/app/JFXCentral2MobileApp.java | 6 +++--- ...obileDetailsPage.java => MobileShowcaseDetailsPage.java} | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename mobile/src/main/java/com/dlsc/jfxcentral2/mobile/pages/details/{MobileShowcaseMobileDetailsPage.java => MobileShowcaseDetailsPage.java} (89%) diff --git a/app/src/main/java/com/dlsc/jfxcentral2/app/JFXCentral2MobileApp.java b/app/src/main/java/com/dlsc/jfxcentral2/app/JFXCentral2MobileApp.java index 16316b99..6ec96825 100644 --- a/app/src/main/java/com/dlsc/jfxcentral2/app/JFXCentral2MobileApp.java +++ b/app/src/main/java/com/dlsc/jfxcentral2/app/JFXCentral2MobileApp.java @@ -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; @@ -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))) diff --git a/mobile/src/main/java/com/dlsc/jfxcentral2/mobile/pages/details/MobileShowcaseMobileDetailsPage.java b/mobile/src/main/java/com/dlsc/jfxcentral2/mobile/pages/details/MobileShowcaseDetailsPage.java similarity index 89% rename from mobile/src/main/java/com/dlsc/jfxcentral2/mobile/pages/details/MobileShowcaseMobileDetailsPage.java rename to mobile/src/main/java/com/dlsc/jfxcentral2/mobile/pages/details/MobileShowcaseDetailsPage.java index 68e71ea0..6f5e6d0f 100644 --- a/mobile/src/main/java/com/dlsc/jfxcentral2/mobile/pages/details/MobileShowcaseMobileDetailsPage.java +++ b/mobile/src/main/java/com/dlsc/jfxcentral2/mobile/pages/details/MobileShowcaseDetailsPage.java @@ -13,9 +13,9 @@ import java.util.List; -public class MobileShowcaseMobileDetailsPage extends MobileDetailsPageBase { +public class MobileShowcaseDetailsPage extends MobileDetailsPageBase { - public MobileShowcaseMobileDetailsPage(ObjectProperty size, String itemId) { + public MobileShowcaseDetailsPage(ObjectProperty size, String itemId) { super(size, RealWorldApp.class, itemId); }