Package io.jmix.core.credits
Class CreditsLoader
java.lang.Object
io.jmix.core.credits.CreditsLoader
Provides information about third-party software by loading
credits.xml
files of Jmix modules.
Example usage:
@Autowired private CreditsLoader creditsLoader; @Autowired private Downloader downloader; public void showCredits() { byte[] html = creditsLoader.getCreditsHtml(true); downloader.download(html, "credits.html"); }
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns credits as a list ofCreditsItem
objects.byte[]
getCreditsHtml
(boolean completePage) Returns credits as a byte array containing an HTML document rendered usingCreditsHtmlRenderer
.
-
Constructor Details
-
CreditsLoader
public CreditsLoader()
-
-
Method Details
-
getCredits
Returns credits as a list ofCreditsItem
objects. -
getCreditsHtml
public byte[] getCreditsHtml(boolean completePage) Returns credits as a byte array containing an HTML document rendered usingCreditsHtmlRenderer
.- Parameters:
completePage
- if true, renders the complete page with html, header and body. Otherwise, returns an HTML table only.
-