Class 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.
Author:
Vaadin Ltd
See Also:
  • 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(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:
      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(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:
      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: