Class StyleHelper

java.lang.Object
com.kazurayam.materialstore.base.report.StyleHelper

public final class StyleHelper extends Object
  • Method Details

    • loadStyleFromClasspath

      public static String loadStyleFromClasspath() throws MaterialstoreException
      The "style.css" file is generated from the "style.scss" file. The SCSS file is located in the src/main/resources/com/kazurayam/materialstore/reporter directory. This method loads the style.css file from the runtime CLASSPATH.

      The SCSS file is compiled by the "Node scss" module and driven by IntelliJ IDEA + File Watcher. See https://www.jetbrains.com/help/idea/transpiling-sass-less-and-scss-to-css.html#less_sass_scss_compiling_to_css

      Returns:
      a css content which should be embedded in the HTML file generated by MaterialListReporterImplMB and MProductGroupReporterImplMB
      Throws:
      MaterialstoreException - when filed to load the css
    • loadStyleFromClasspath

      public static String loadStyleFromClasspath(String cssPath) throws MaterialstoreException
      Throws:
      MaterialstoreException
    • getCSS_PATH

      public static String getCSS_PATH()