Package jmri.server.web.app
Class JsonManifest
java.lang.Object
jmri.server.web.app.JsonManifest
- All Implemented Interfaces:
WebManifest
Web Manifest built from manifest.json files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the Angular dependencies required by the servlet associated with the manifest.Get the Angular routes supported by the servlet associated with the manifest.Get the sources for the Angular module components required by the servlet associated with the manifest.Get the navigation menu items that provide access to the servlet associated with the manifest.getPreloadedTranslations(Locale locale) Get the paths for JSON translation dictionaries to pre-load.Get any scripts the servlet associated with the manifest requires in the order required.Get any CSS style sheets the servlet associated with the manifest requires in the order required.
-
Constructor Details
-
JsonManifest
public JsonManifest()
-
-
Method Details
-
getScripts
Description copied from interface:WebManifestGet any scripts the servlet associated with the manifest requires in the order required.- Specified by:
getScriptsin interfaceWebManifest- Returns:
- a set of script URLs; provide an empty set if the item needs no scripts
-
getStyles
Description copied from interface:WebManifestGet any CSS style sheets the servlet associated with the manifest requires in the order required.- Specified by:
getStylesin interfaceWebManifest- Returns:
- a set of style sheet URLs; provide an empty set if the item needs no style sheets
-
getAngularDependencies
Description copied from interface:WebManifestGet the Angular dependencies required by the servlet associated with the manifest.- Specified by:
getAngularDependenciesin interfaceWebManifest- Returns:
- an ordered list of angular dependencies
-
getAngularRoutes
Description copied from interface:WebManifestGet the Angular routes supported by the servlet associated with the manifest.- Specified by:
getAngularRoutesin interfaceWebManifest- Returns:
- a map of angular path to angular routing instructions
-
getAngularSources
Description copied from interface:WebManifestGet the sources for the Angular module components required by the servlet associated with the manifest.- Specified by:
getAngularSourcesin interfaceWebManifest- Returns:
- a list of sources to include in the web app
-
getPreloadedTranslations
Description copied from interface:WebManifestGet the paths for JSON translation dictionaries to pre-load. If translation dictionaries exist, but not for the requested Locale, fallback onto the requested language, and, if that is also not available, to the English language with no country specified.- Specified by:
getPreloadedTranslationsin interfaceWebManifest- Parameters:
locale- the requested locale for the translations- Returns:
- a list of translation sources