Package com.vaadin.flow.component.html
Class Param
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.HtmlComponent
-
- com.vaadin.flow.component.html.Param
-
- All Implemented Interfaces:
AttachNotifier,DetachNotifier,HasElement,HasSize,HasStyle,Serializable
@Tag("param") public class Param extends HtmlComponent
Component representing a<param>element for<param>element.- Since:
- Author:
- Vaadin Ltd
- See Also:
HtmlObject, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Gets the "name" attribute value.Optional<String>getValue()Gets the "value" attribute.voidsetName(String name)Sets a "name" attribute value.voidsetValue(String value)Sets a "value" attribute.-
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.DetachNotifier
addDetachListener
-
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
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
-
-
-
-
Constructor Detail
-
Param
public Param()
Creates a new<param>component.
-
Param
public Param(String name, String value)
Creates a new<param>component with given name and value.- Parameters:
name- a name attribute valuevalue- a value attribute value- See Also:
setName(String),setValue(String)
-
-
Method Detail
-
setValue
public void setValue(String value)
Sets a "value" attribute.- Parameters:
value- "value" attribute value
-
setName
public void setName(String name)
Sets a "name" attribute value.- Parameters:
name- a "name" attribute value
-
getName
public String getName()
Gets the "name" attribute value.- Returns:
- the "name" attribute value
- See Also:
setName(String)
-
getValue
public Optional<String> getValue()
Gets the "value" attribute.- Returns:
- the "value" attribute value
- See Also:
setValue(String)
-
-