Image
and BrowserFrame
insteadpublic interface Embedded extends Component, Component.BelongToFrame, Component.HasCaption, Component.HasIcon, HasContextHelp
Web implementation may require a browser plugin. Only images support is mandatory for all implementations.
Modifier and Type | Interface and Description |
---|---|
static class |
Embedded.Type
Deprecated.
|
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
Deprecated.
|
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
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.
|
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,
ExportDataProvider 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.
|
getFrame, setFrame
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, getWidthUnits, isEnabled, isEnabledItself, isEnabledRecursive, isResponsive, isVisible, isVisibleItself, isVisibleRecursive, removeStyleName, requestFocus, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
getCaption, setCaption
getDescription, setDescription
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
static final java.lang.String NAME
void setMIMEType(java.lang.String mt)
void setSource(@Nullable java.net.URL src)
void setSource(@Nullable java.lang.String src)
void setSource(java.lang.String fileName, @Nullable java.io.InputStream src)
void setSource(java.lang.String fileName, @Nullable ExportDataProvider dataProvider)
void setRelativeSource(@Nullable java.lang.String src)
Example:
Put the file hello.html
with some content into ${catalina.base}/webapps/yourAppName/VAADIN/
.
embedded.setRelativeSource("VAADIN/hello.html");
src
- relative source of content to displayvoid resetSource()
void addParameter(java.lang.String name, java.lang.String value)
void removeParameter(java.lang.String name)
java.util.Map<java.lang.String,java.lang.String> getParameters()
void setType(Embedded.Type t)
Embedded.Type getType()