Class Param

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.HtmlComponent
com.vaadin.flow.component.html.Param
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, Serializable

@Tag("param") public class Param extends com.vaadin.flow.component.HtmlComponent
Component representing a <param> element for <param> element.
Author:
Vaadin Ltd
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.vaadin.flow.component.Component

    com.vaadin.flow.component.Component.Size
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new <param> component.
    Param(String name, String value)
    Creates a new <param> component with given name and value.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bindName(com.vaadin.flow.signals.Signal<String> nameSignal)
    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.
    void
    bindValue(com.vaadin.flow.signals.Signal<String> valueSignal)
    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.
    Gets the "name" attribute value.
    Gets the "value" attribute.
    void
    Sets a "name" attribute value.
    void
    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, 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, requestFullscreen, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible, sizeSignal

    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

    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, setWidthFull

    Methods 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

      public Param(String name, String value)
      Creates a new <param> component with given name and value.
      Parameters:
      name - a name attribute value
      value - a value attribute value
      See Also:
  • Method Details

    • setValue

      public void setValue(String value)
      Sets a "value" attribute.
      Parameters:
      value - "value" attribute value
    • bindValue

      public void bindValue(com.vaadin.flow.signals.Signal<String> valueSignal)
      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 null as the signal removes 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, not null
      Throws:
      com.vaadin.flow.signals.BindingActiveException - thrown when there is already an existing binding
      Since:
      25.1
      See Also:
    • setName

      public void setName(String name)
      Sets a "name" attribute value.
      Parameters:
      name - a "name" attribute value
    • bindName

      public void bindName(com.vaadin.flow.signals.Signal<String> nameSignal)
      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, not null
      Throws:
      com.vaadin.flow.signals.BindingActiveException - thrown when there is already an existing binding
      Since:
      25.1
      See Also:
    • getName

      public String getName()
      Gets the "name" attribute value.
      Returns:
      the "name" attribute value
      See Also:
    • getValue

      public Optional<String> getValue()
      Gets the "value" attribute.
      Returns:
      the "value" attribute value
      See Also: