Class HtmlObject
- All Implemented Interfaces:
AttachNotifier
,BlurNotifier<HtmlObject>
,ClickNotifier<HtmlObject>
,DetachNotifier
,Focusable<HtmlObject>
,FocusNotifier<HtmlObject>
,HasComponents
,HasElement
,HasEnabled
,HasOrderedComponents
,HasSize
,HasStyle
,HasText
,Serializable
<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.Deprecated, for removal: This API element is subject to removal in a future version.HtmlObject
(AbstractStreamResource data, Param... params) Deprecated, for removal: This API element is subject to removal in a future version.useHtmlObject(DownloadHandler,Param...)
insteadHtmlObject
(AbstractStreamResource data, String type) Deprecated, for removal: This API element is subject to removal in a future version.useHtmlObject(DownloadHandler,String)
insteadHtmlObject
(AbstractStreamResource data, String type, Param... params) Deprecated, for removal: This API element is subject to removal in a future version.useHtmlObject(DownloadHandler,String, Param...)
insteadHtmlObject
(DownloadHandler data) Creates a new<object>
component with given data resource, type value and "param" components.HtmlObject
(DownloadHandler data, Param... params) Creates a new<object>
component with given data resource, type value and "param" components.HtmlObject
(DownloadHandler data, String type) Creates a new<object>
component with givenDownloadHandler
callback for providing an object data and type value.HtmlObject
(DownloadHandler 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
Deprecated, for removal: This API element is subject to removal in a future version.usesetData(DownloadHandler)
insteadvoid
setData
(DownloadHandler data) Sets the URL forDownloadHandler
callback 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 value- See 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 components- See Also:
-
HtmlObject
@Deprecated(since="24.8", forRemoval=true) public HtmlObject(AbstractStreamResource data, String type) Deprecated, for removal: This API element is subject to removal in a future version.useHtmlObject(DownloadHandler,String)
insteadCreates a new<object>
component with given data resource and type value.- Parameters:
data
- the resource value, not nulltype
- a type attribute value- See Also:
-
HtmlObject
@Deprecated(since="24.8", forRemoval=true) public HtmlObject(AbstractStreamResource data, String type, Param... params) Deprecated, for removal: This API element is subject to removal in a future version.useHtmlObject(DownloadHandler,String, Param...)
insteadCreates a new<object>
component with given data resource, type value and "param" components.- Parameters:
data
- a data attribute valuetype
- a type attribute valueparams
- parameter components- See Also:
-
HtmlObject
Creates a new<object>
component with givenDownloadHandler
callback for providing an object data and type value.Sets the
Content-Disposition
header toinline
for pre-defined download handlers, created by factory methods inDownloadHandler
, as well as for otherAbstractDownloadHandler
implementations.- Parameters:
data
- the callback for providing resource data, not nulltype
- a type attribute value- See Also:
-
HtmlObject
Creates a new<object>
component with given data resource, type value and "param" components.Sets the
Content-Disposition
header toinline
for pre-defined download handlers, created by factory methods inDownloadHandler
, as well as for otherAbstractDownloadHandler
implementations.- Parameters:
data
- a data attribute valuetype
- a type attribute valueparams
- parameter components- See Also:
-
HtmlObject
Creates a new<object>
component with given data resource, type value and "param" components.Sets the
Content-Disposition
header toinline
for pre-defined download handlers, created by factory methods inDownloadHandler
, as well as for otherAbstractDownloadHandler
implementations.- Parameters:
data
- a handler that defines the data to be set to this object componentparams
- parameter components- See Also:
-
HtmlObject
Creates a new<object>
component with given data resource, type value and "param" components.Sets the
Content-Disposition
header toinline
for pre-defined download handlers, created by factory methods inDownloadHandler
, as well as for otherAbstractDownloadHandler
implementations.- Parameters:
data
- a handler that defines the data to be set to this object component- See Also:
-
HtmlObject
Creates a new<object>
component with given data and "param" components.- Parameters:
data
- a data attribute valueparams
- parameter components- See Also:
-
HtmlObject
Deprecated, for removal: This API element is subject to removal in a future version.useHtmlObject(DownloadHandler)
insteadCreates a new<object>
component with given data resource value.- Parameters:
data
- the resource value, notnull
- See Also:
-
HtmlObject
@Deprecated(since="24.8", forRemoval=true) public HtmlObject(AbstractStreamResource data, Param... params) Deprecated, for removal: This API element is subject to removal in a future version.useHtmlObject(DownloadHandler,Param...)
insteadCreates a new<object>
component with given data resource value and "param" components.- Parameters:
data
- the resource value, notnull
params
- parameter components- See Also:
-
-
Method Details
-
setData
Sets the "data" attribute value.- Parameters:
data
- a "data" attribute value
-
setData
Deprecated, for removal: This API element is subject to removal in a future version.usesetData(DownloadHandler)
insteadSets theStreamResource
URL as "data" attribute value .- Parameters:
data
- a "data" attribute value,, notnull
-
setData
Sets the URL forDownloadHandler
callback as "data" attribute value.Sets the
Content-Disposition
header toinline
for pre-defined download handlers, created by factory methods inDownloadHandler
, as well as for otherAbstractDownloadHandler
implementations.- 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:
-
HtmlObject(DownloadHandler)
instead