com.vaadin.flow.component.html.
Class HtmlObject
All Implemented Interfaces:
AttachNotifier
, BlurNotifier<HtmlObject>
, ClickNotifier<HtmlObject>
, DetachNotifier
, Focusable<HtmlObject>
, FocusNotifier<HtmlObject>
, HasComponents
, HasElement
, HasEnabled
, HasOrderedComponents
, HasSize
, HasStyle
, HasText
, Serializable
Component representing a <object>
element.
Since:
Author:
Vaadin Ltd
See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.flow.component.BlurNotifier
BlurNotifier.BlurEvent<C extends Component>
Nested classes/interfaces inherited from interface com.vaadin.flow.component.FocusNotifier
FocusNotifier.FocusEvent<C extends Component>
Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasText
HasText.WhiteSpace
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new
<object>
component.Creates a new
<object>
component with given data resource value.HtmlObject
(AbstractStreamResource data, Param... params) Creates a new
<object>
component with given data resource value and "param" components.HtmlObject
(AbstractStreamResource data, String type) Creates a new
<object>
component with given data resource and type value.HtmlObject
(AbstractStreamResource data, String type, Param... params) Creates a new
<object>
component with given data resource, type value and "param" components.HtmlObject
(String data, Param... params) Creates a new
<object>
component with given data and "param" components.HtmlObject
(String data, String type) Creates a new
<object>
component with given data and type attribute values.HtmlObject
(String data, String type, Param... params) Creates a new
<object>
component with given data, type attribute values and and "param" components. -
Method Summary
Modifier and TypeMethodDescriptiongetData()
Gets the "data" attribute value.
getType()
Gets the "type" attribute value.
void
Sets the
StreamResource
URL as "data" attribute value .void
Sets the "data" attribute value.
void
Sets the "type" attribute value.
Methods inherited from class com.vaadin.flow.component.HtmlComponent
getTitle, setTitle
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.BlurNotifier
addBlurListener
Methods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focus, getTabIndex, setTabIndex
Methods inherited from interface com.vaadin.flow.component.FocusNotifier
addFocusListener
Methods inherited from interface com.vaadin.flow.component.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAll
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
Methods inherited from interface com.vaadin.flow.component.HasOrderedComponents
getChildren, getComponentAt, getComponentCount, indexOf, replace
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
Methods inherited from interface com.vaadin.flow.component.HasText
getText, getWhiteSpace, setText, setWhiteSpace
-
Constructor Details
-
HtmlObject
public HtmlObject()Creates a new
<object>
component. -
HtmlObject
Creates a new
<object>
component with given data and type attribute values.Parameters:
data
- a data attribute valuetype
- a type attribute valueSee Also:
-
HtmlObject
Creates a new
<object>
component with given data, type attribute values and and "param" components.Parameters:
data
- a data attribute valuetype
- a type attribute valueparams
- parameter componentsSee Also:
-
HtmlObject
Creates a new
<object>
component with given data resource and type value.Parameters:
data
- the resource value, not nulltype
- a type attribute valueSee Also:
-
HtmlObject
Creates a new
<object>
component with given data resource, type value and "param" components.Parameters:
data
- a data attribute valuetype
- a type attribute valueparams
- parameter componentsSee Also:
-
HtmlObject
Creates a new
<object>
component with given data and "param" components.Parameters:
data
- a data attribute valueparams
- parameter componentsSee Also:
-
HtmlObject
Creates a new
<object>
component with given data resource value.Parameters:
data
- the resource value, notnull
See Also:
-
HtmlObject
Creates a new
<object>
component with given data resource value and "param" components.Parameters:
data
- the resource value, notnull
params
- parameter componentsSee Also:
-
-
Method Details
-
setData
Sets the "data" attribute value.
Parameters:
data
- a "data" attribute value -
setData
Sets the
StreamResource
URL as "data" attribute value .Parameters:
data
- a "data" attribute value,, notnull
-
getData
Gets the "data" attribute value.
Returns:
the "data" attribute value
See Also:
-
setType
Sets the "type" attribute value.
Parameters:
type
- a "type" attribute value -
getType
Gets the "type" attribute value.
Returns:
the "type" attribute value
See Also:
-