Image
and BrowserFrame
insteadpublic interface Embedded extends Component, Component.BelongToFrame, Component.HasCaption, Component.HasIcon
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.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.ContextHelpIconClickEvent, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasContextHelp, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasOptionsStyleProvider, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OptionsStyleProvider, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.Wrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
Deprecated.
|
AUTO_SIZE, AUTO_SIZE_PX, 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, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
getCaption, getDescription, setCaption, setDescription
getIcon, setIcon, setIconFromSet
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()