@Tag(value="iframe") public class IFrame extends HtmlComponent
<iframe>
element.Modifier and Type | Class and Description |
---|---|
static class |
IFrame.ImportanceType
Importance types.
|
static class |
IFrame.SandboxType
Sandbox types.
|
Constructor and Description |
---|
IFrame()
Creates a new iframe.
|
IFrame(String src)
Creates a new iframe with a source URL.
|
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getAllow()
Gets the value of allow attribute.
|
Optional<IFrame.ImportanceType> |
getImportance()
Gets the importance attribute value.
|
Optional<String> |
getName()
Gets the name attribute.
|
Optional<IFrame.SandboxType[]> |
getSandbox()
Gets the list of sandbox attribute values.
|
String |
getSrc()
Gets the source of the iframe.
|
Optional<String> |
getSrcdoc()
Gets the srcdoc of the iframe.
|
void |
setAllow(String allow)
Sets the allow property to specify a feature policy.
|
void |
setImportance(IFrame.ImportanceType importance)
Sets the importance attribute to the specified
IFrame.ImportanceType value. |
void |
setName(String name)
Sets the name attribute.
|
void |
setSandbox(IFrame.SandboxType... types)
Sets the sandbox attribute to the given
IFrame.SandboxType s. |
void |
setSrc(String src)
Sets the source of the iframe.
|
void |
setSrcdoc(String srcdoc)
Sets the srcdoc of the iframe.
|
getTitle, setTitle
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, setHeight, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFull
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
getElement
addAttachListener
addDetachListener
public IFrame()
public IFrame(String src)
src
- Source URLpublic void setSrc(String src)
src
- Source URL.public String getSrc()
public void setSrcdoc(String srcdoc)
srcdoc
- srcdoc URL.public Optional<String> getSrcdoc()
public void setAllow(String allow)
allow
- the allow attribute value.public Optional<String> getAllow()
public void setName(String name)
name
- the value for the name attribute.public void setImportance(IFrame.ImportanceType importance)
IFrame.ImportanceType
value.importance
- IFrame.ImportanceType
value.IFrame.ImportanceType
public Optional<IFrame.ImportanceType> getImportance()
IFrame.ImportanceType
public void setSandbox(IFrame.SandboxType... types)
IFrame.SandboxType
s.types
- IFrame.SandboxType
s.public Optional<IFrame.SandboxType[]> getSandbox()
IFrame.SandboxType
s.Copyright © 2020. All rights reserved.