Class Param
- All Implemented Interfaces:
AttachNotifier,DetachNotifier,HasElement,HasSize,HasStyle,Serializable
<param> element for
<param> element.- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidBinds a signal's value to the "name" attribute as a one-way binding, so that the attribute is updated when the signal's value is updated.voidBinds a signal's value to the "value" attribute as a one-way binding, so that the attribute is updated when the signal's value is updated.getName()Gets the "name" attribute value.getValue()Gets the "value" attribute.voidSets a "name" attribute value.voidSets a "value" attribute.Methods inherited from class com.vaadin.flow.component.HtmlComponent
getTitle, setTitleMethods inherited from class com.vaadin.flow.component.Component
addListener, bindVisible, 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.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasSize
bindHeight, bindWidth, 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, setClassName
-
Constructor Details
-
Param
public Param()Creates a new<param>component. -
Param
Creates a new<param>component with given name and value.- Parameters:
name- a name attribute valuevalue- a value attribute value- See Also:
-
-
Method Details
-
setValue
Sets a "value" attribute.- Parameters:
value- "value" attribute value
-
bindValue
Binds a signal's value to the "value" attribute as a one-way binding, so that the attribute is updated when the signal's value is updated.Passing
nullas thesignalremoves any existing binding for the "value" attribute. When unbinding, the current attribute value is left unchanged.While a binding for the "value" attribute is active, any attempt to set the attribute manually throws
BindingActiveException. The same happens when trying to bind a new Signal while one is already bound.Bindings are lifecycle-aware and only active while this component is in the attached state; they are deactivated while the component is in the detached state.
- Parameters:
valueSignal- the signal to bind, notnull- Throws:
BindingActiveException- thrown when there is already an existing binding- Since:
- 25.1
- See Also:
-
setName
Sets a "name" attribute value.- Parameters:
name- a "name" attribute value
-
bindName
Binds a signal's value to the "name" attribute as a one-way binding, so that the attribute is updated when the signal's value is updated.While a binding for the "name" attribute is active, any attempt to set the attribute manually throws
BindingActiveException. The same happens when trying to bind a new Signal while one is already bound.Bindings are lifecycle-aware and only active while this component is in the attached state; they are deactivated while the component is in the detached state.
- Parameters:
nameSignal- the signal to bind, notnull- Throws:
BindingActiveException- thrown when there is already an existing binding- Since:
- 25.1
- See Also:
-
getName
Gets the "name" attribute value.- Returns:
- the "name" attribute value
- See Also:
-
getValue
Gets the "value" attribute.- Returns:
- the "value" attribute value
- See Also:
-