Package com.vaadin.flow.component.html
Class HtmlObject
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.HtmlComponent
com.vaadin.flow.component.HtmlContainer
com.vaadin.flow.component.html.HtmlObject
- All Implemented Interfaces:
AttachNotifier,BlurNotifier<HtmlObject>,ClickNotifier<HtmlObject>,DetachNotifier,Focusable<HtmlObject>,FocusNotifier<HtmlObject>,HasComponents,HasElement,HasEnabled,HasOrderedComponents,HasSize,HasStyle,HasText,Serializable
@Tag("object")
public class HtmlObject
extends HtmlContainer
implements ClickNotifier<HtmlObject>, HasOrderedComponents, Focusable<HtmlObject>
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.voidSets theStreamResourceURL 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
Creates 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
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 components- 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
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, notnullparams- parameter components- See Also:
-
-
Method Details
-
setData
Sets the "data" attribute value.- Parameters:
data- a "data" attribute value
-
setData
Sets theStreamResourceURL 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:
-