Class JsonManifest

java.lang.Object
jmri.server.web.app.JsonManifest
All Implemented Interfaces:
WebManifest

public class JsonManifest extends Object implements WebManifest
Web Manifest built from manifest.json files.
  • Constructor Details

  • Method Details

    • getNavigationMenuItems

      Description copied from interface: WebManifest
      Get the navigation menu items that provide access to the servlet associated with the manifest.
      Specified by:
      getNavigationMenuItems in interface WebManifest
      Returns:
      a set of menu items; provide an empty set if the item should not be in the navigation menu
    • getScripts

      public List<String> getScripts()
      Description copied from interface: WebManifest
      Get any scripts the servlet associated with the manifest requires in the order required.
      Specified by:
      getScripts in interface WebManifest
      Returns:
      a set of script URLs; provide an empty set if the item needs no scripts
    • getStyles

      public List<String> getStyles()
      Description copied from interface: WebManifest
      Get any CSS style sheets the servlet associated with the manifest requires in the order required.
      Specified by:
      getStyles in interface WebManifest
      Returns:
      a set of style sheet URLs; provide an empty set if the item needs no style sheets
    • getAngularDependencies

      Description copied from interface: WebManifest
      Get the Angular dependencies required by the servlet associated with the manifest.
      Specified by:
      getAngularDependencies in interface WebManifest
      Returns:
      an ordered list of angular dependencies
    • getAngularRoutes

      Description copied from interface: WebManifest
      Get the Angular routes supported by the servlet associated with the manifest.
      Specified by:
      getAngularRoutes in interface WebManifest
      Returns:
      a map of angular path to angular routing instructions
    • getAngularSources

      Description copied from interface: WebManifest
      Get the sources for the Angular module components required by the servlet associated with the manifest.
      Specified by:
      getAngularSources in interface WebManifest
      Returns:
      a list of sources to include in the web app
    • getPreloadedTranslations

      Description copied from interface: WebManifest
      Get 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:
      getPreloadedTranslations in interface WebManifest
      Parameters:
      locale - the requested locale for the translations
      Returns:
      a list of translation sources