Package io.jmix.ui.component.impl
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 Summary
Fields inherited from class io.jmix.ui.component.impl.AbstractResource
hasSource, resource, resourceUpdateHandler
-
Constructor Summary
-
Method Summary
Methods inherited from class io.jmix.ui.component.impl.AbstractResource
fireResourceUpdateEvent, getResource, hasSource, setResourceUpdatedHandler
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.component.impl.WebResource
getResource, hasSource
-
Field Details
-
path
-
-
Constructor Details
-
ThemeResourceImpl
public ThemeResourceImpl()
-
-
Method Details
-
setPath
- Specified by:
setPath
in interfaceThemeResource
- Parameters:
path
- relative path to the theme resource, e.g. "images/image.png" for the resource located atsrc/main/themes/mytheme/images/image.png
if the current theme is "mytheme"- Returns:
- this ThemeResource instance
-
getPath
- Specified by:
getPath
in interfaceThemeResource
-
createResource
protected void createResource()- Specified by:
createResource
in classAbstractResource
-