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:
- Serialized Form
-
-
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
Constructors Constructor Description HtmlObject()
Creates a new<object>
component.HtmlObject(AbstractStreamResource data)
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getData()
Gets the "data" attribute value.Optional<String>
getType()
Gets the "type" attribute value.void
setData(AbstractStreamResource data)
Sets theStreamResource
URL as "data" attribute value .void
setData(String data)
Sets the "data" attribute value.void
setType(String type)
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, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, 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
-
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, addComponentAsFirst, addComponentAtIndex, 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 Detail
-
HtmlObject
public HtmlObject()
Creates a new<object>
component.
-
HtmlObject
public HtmlObject(String data, String type)
Creates a new<object>
component with given data and type attribute values.- Parameters:
data
- a data attribute valuetype
- a type attribute value- See Also:
setData(String)
,setType(String)
-
HtmlObject
public HtmlObject(String data, String type, Param... params)
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:
setData(String)
,setType(String)
,HasComponents.add(Component...)
-
HtmlObject
public HtmlObject(AbstractStreamResource data, String type)
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:
setData(AbstractStreamResource)
,setType(String)
-
HtmlObject
public HtmlObject(AbstractStreamResource data, String type, Param... params)
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:
setData(String)
,setType(String)
,HasComponents.add(Component...)
-
HtmlObject
public HtmlObject(String data, Param... params)
Creates a new<object>
component with given data and "param" components.- Parameters:
data
- a data attribute valueparams
- parameter components- See Also:
setData(String)
,HasComponents.add(Component...)
-
HtmlObject
public HtmlObject(AbstractStreamResource data)
Creates a new<object>
component with given data resource value.- Parameters:
data
- the resource value, notnull
- See Also:
setData(AbstractStreamResource)
-
HtmlObject
public HtmlObject(AbstractStreamResource data, Param... params)
Creates a new<object>
component with given data resource value and "param" components.- Parameters:
data
- the resource value, notnull
params
- parameter components- See Also:
setData(AbstractStreamResource)
,HasComponents.add(Component...)
-
-
Method Detail
-
setData
public void setData(String data)
Sets the "data" attribute value.- Parameters:
data
- a "data" attribute value
-
setData
public void setData(AbstractStreamResource data)
Sets theStreamResource
URL as "data" attribute value .- Parameters:
data
- a "data" attribute value,, notnull
-
getData
public String getData()
Gets the "data" attribute value.- Returns:
- the "data" attribute value
- See Also:
setData(String)
,setData(AbstractStreamResource)
-
setType
public void setType(String type)
Sets the "type" attribute value.- Parameters:
type
- a "type" attribute value
-
getType
public Optional<String> getType()
Gets the "type" attribute value.- Returns:
- the "type" attribute value
- See Also:
setType(String)
-
-