Package io.jmix.ui.component.impl
Class UrlResourceImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractResource
io.jmix.ui.component.impl.UrlResourceImpl
- All Implemented Interfaces:
WebResource
,Resource
,ResourceView.HasMimeType
,UrlResource
@Component("ui_UrlResource")
@Scope("prototype")
public class UrlResourceImpl
extends AbstractResource
implements WebResource, UrlResource
-
Field Summary
Fields inherited from class io.jmix.ui.component.impl.AbstractResource
hasSource, resource, resourceUpdateHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
getUrl()
void
setMimeType
(String mimeType) Sets the mime type of the resource.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
-
url
-
mimeType
-
-
Constructor Details
-
UrlResourceImpl
public UrlResourceImpl()
-
-
Method Details
-
setUrl
- Specified by:
setUrl
in interfaceUrlResource
-
getUrl
- Specified by:
getUrl
in interfaceUrlResource
-
createResource
protected void createResource()- Specified by:
createResource
in classAbstractResource
-
setMimeType
Description copied from interface:ResourceView.HasMimeType
Sets the mime type of the resource.- Specified by:
setMimeType
in interfaceResourceView.HasMimeType
- Parameters:
mimeType
- the MIME type to be set
-
getMimeType
- Specified by:
getMimeType
in interfaceResourceView.HasMimeType
- Returns:
- resource MIME type
-