-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring from "OnlineTool" to "Utility".
- Loading branch information
1 parent
d2f9e2c
commit 4b867a1
Showing
24 changed files
with
151 additions
and
152 deletions.
There are no files selected for viewing
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
19 changes: 9 additions & 10 deletions
19
...pages/details/OnlineToolsDetailsPage.java → ...app/pages/details/UtilityDetailsPage.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
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
16 changes: 8 additions & 8 deletions
16
...onents/filters/OnlineToolsFilterView.java → ...mponents/filters/UtilitiesFilterView.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
23 changes: 0 additions & 23 deletions
23
components/src/main/java/com/dlsc/jfxcentral2/components/headers/OnlineToolDetailHeader.java
This file was deleted.
Oops, something went wrong.
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
23 changes: 23 additions & 0 deletions
23
components/src/main/java/com/dlsc/jfxcentral2/components/headers/UtilityDetailHeader.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,23 @@ | ||
package com.dlsc.jfxcentral2.components.headers; | ||
|
||
import com.dlsc.jfxcentral.data.ImageManager; | ||
import com.dlsc.jfxcentral.data.model.Utility; | ||
|
||
public class UtilityDetailHeader extends SimpleDetailHeader<Utility> { | ||
|
||
public UtilityDetailHeader(Utility utility) { | ||
super(utility); | ||
|
||
getStyleClass().addAll("utility-detail-header"); | ||
|
||
imageProperty().bind(ImageManager.getInstance().utilityImageProperty(utility)); | ||
|
||
// setWebsite(StringUtils.isNotBlank(getModel().getHomepage()) ? getModel().getHomepage() : getModel().getRepository()); | ||
// setWebsiteButtonText(StringUtils.isNotBlank(getModel().getHomepage()) ? "WEBSITE" : "REPOSITORY"); | ||
setShareUrl("utilities/" + utility.getId()); | ||
setShareText("Found this utility on @JFXCentral: " + utility.getName()); | ||
setShareTitle("Utility: " + utility.getName()); | ||
setBackText("UTILITIES"); | ||
setBackUrl("/utilities"); | ||
} | ||
} |
Oops, something went wrong.