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 givenDownloadHandlercallback 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.voidDeprecated, for removal: This API element is subject to removal in a future version.usesetData(DownloadHandler)insteadvoidsetData(DownloadHandler data) Sets the URL forDownloadHandlercallback as "data" attribute value.voidSets the "data" attribute value.voidSets the "type" attribute value.Methods inherited from class com.vaadin.flow.component.HtmlComponent
getTitle, setTitleMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.BlurNotifier
addBlurListenerMethods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focus, getTabIndex, setTabIndexMethods inherited from interface com.vaadin.flow.component.FocusNotifier
addFocusListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasOrderedComponents
getChildren, getComponentAt, getComponentCount, indexOf, replaceMethods 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, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods 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 givenDownloadHandlercallback for providing an object data and type value.Sets the
Content-Dispositionheader toinlinefor pre-defined download handlers, created by factory methods inDownloadHandler, as well as for otherAbstractDownloadHandlerimplementations.- 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-Dispositionheader toinlinefor pre-defined download handlers, created by factory methods inDownloadHandler, as well as for otherAbstractDownloadHandlerimplementations.- 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-Dispositionheader toinlinefor pre-defined download handlers, created by factory methods inDownloadHandler, as well as for otherAbstractDownloadHandlerimplementations.- 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-Dispositionheader toinlinefor pre-defined download handlers, created by factory methods inDownloadHandler, as well as for otherAbstractDownloadHandlerimplementations.- 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, notnullparams- 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 theStreamResourceURL as "data" attribute value .- Parameters:
data- a "data" attribute value,, notnull
-
setData
Sets the URL forDownloadHandlercallback as "data" attribute value.Sets the
Content-Dispositionheader toinlinefor pre-defined download handlers, created by factory methods inDownloadHandler, as well as for otherAbstractDownloadHandlerimplementations.- 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