Class ThemeResourceImpl

java.lang.Object
io.jmix.ui.component.impl.AbstractResource
io.jmix.ui.component.impl.ThemeResourceImpl
All Implemented Interfaces:
WebResource, Resource, ThemeResource

@Component("ui_ThemeResource") @Scope("prototype") public class ThemeResourceImpl extends AbstractResource implements WebResource, ThemeResource
  • Field Details

    • path

      protected String path
  • Constructor Details

    • ThemeResourceImpl

      public ThemeResourceImpl()
  • Method Details

    • setPath

      public ThemeResource setPath(String path)
      Specified by:
      setPath in interface ThemeResource
      Parameters:
      path - relative path to the theme resource, e.g. "images/image.png" for the resource located at src/main/themes/mytheme/images/image.png if the current theme is "mytheme"
      Returns:
      this ThemeResource instance
    • getPath

      public String getPath()
      Specified by:
      getPath in interface ThemeResource
    • createResource

      protected void createResource()
      Specified by:
      createResource in class AbstractResource