@Deprecated public class WebEmbedded extends io.jmix.ui.component.impl.AbstractComponent<com.vaadin.ui.Embedded> implements Embedded
Modifier and Type | Class and Description |
---|---|
protected static class |
WebEmbedded.EmptyStreamSource
Deprecated.
|
Embedded.Type
io.jmix.ui.component.Component.Alignment, io.jmix.ui.component.Component.BelongToFrame, io.jmix.ui.component.Component.Disposable, io.jmix.ui.component.Component.Editable, io.jmix.ui.component.Component.Focusable, io.jmix.ui.component.Component.HasCaption, io.jmix.ui.component.Component.HasDescription, io.jmix.ui.component.Component.HasIcon, io.jmix.ui.component.Component.HasXmlDescriptor, io.jmix.ui.component.Component.Wrapper
Modifier and Type | Field and Description |
---|---|
protected CubaProperties |
cubaProperties
Deprecated.
|
protected java.util.Map<java.lang.String,java.lang.String> |
parameters
Deprecated.
|
protected com.vaadin.server.Resource |
resource
Deprecated.
|
protected Embedded.Type |
type
Deprecated.
|
Constructor and Description |
---|
WebEmbedded()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(java.lang.String name,
java.lang.String value)
Deprecated.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
Deprecated.
|
Embedded.Type |
getType()
Deprecated.
|
protected void |
provideType()
Deprecated.
|
void |
removeParameter(java.lang.String name)
Deprecated.
|
void |
resetSource()
Deprecated.
|
void |
setMIMEType(java.lang.String mt)
Deprecated.
|
void |
setRelativeSource(java.lang.String src)
Deprecated.
Allows to use relative source for Embedded.
|
void |
setSource(java.lang.String src)
Deprecated.
|
void |
setSource(java.lang.String fileName,
io.jmix.ui.download.DownloadDataProvider dataProvider)
Deprecated.
|
void |
setSource(java.lang.String fileName,
java.io.InputStream src)
Deprecated.
|
void |
setSource(java.net.URL src)
Deprecated.
|
void |
setType(Embedded.Type t)
Deprecated.
|
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
getDescription, setDescription
protected java.util.Map<java.lang.String,java.lang.String> parameters
protected Embedded.Type type
protected com.vaadin.server.Resource resource
@Autowired protected CubaProperties cubaProperties
public void setSource(@Nullable java.net.URL src)
public void setSource(@Nullable java.lang.String src)
public void setSource(java.lang.String fileName, @Nullable java.io.InputStream src)
public void setSource(java.lang.String fileName, @Nullable io.jmix.ui.download.DownloadDataProvider dataProvider)
public void setRelativeSource(@Nullable java.lang.String src)
Embedded
Example:
Put the file hello.html
with some content into ${catalina.base}/webapps/yourAppName/VAADIN/
.
embedded.setRelativeSource("VAADIN/hello.html");
setRelativeSource
in interface Embedded
src
- relative source of content to displaypublic void resetSource()
resetSource
in interface Embedded
public void setMIMEType(java.lang.String mt)
setMIMEType
in interface Embedded
public void addParameter(java.lang.String name, java.lang.String value)
addParameter
in interface Embedded
public void removeParameter(java.lang.String name)
removeParameter
in interface Embedded
public java.util.Map<java.lang.String,java.lang.String> getParameters()
getParameters
in interface Embedded
public void setType(Embedded.Type t)
public Embedded.Type getType()
protected void provideType()