Class Action.Input<T>

java.lang.Object
com.vaadin.flow.component.trigger.internal.Action.Input<T>
Type Parameters:
T - the runtime type of the value produced
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PropertyInput
Enclosing class:
Action

public abstract static class Action.Input<T> extends Object implements Serializable
A value an Action consumes at fire time — a deferred JS expression that yields a value when the surrounding trigger fires. Subclasses produce the JS expression by overriding appendExpression(JsBuilder, StringBuilder).

Some inputs are bound to a specific trigger's handler scope (see HandlerInput) and may only be used in actions wired to that trigger; others are independent of any trigger (see PropertyInput, LiteralInput) and may be used freely.

For internal use only. May be renamed or removed in a future release.

See Also:
  • Constructor Details

    • Input

      public Input()
  • Method Details

    • appendExpression

      protected abstract void appendExpression(com.vaadin.flow.component.trigger.internal.JsBuilder builder, StringBuilder out)
      Appends this input's JS expression to out. Element references must go through JsBuilder.reference(com.vaadin.flow.dom.Element).
      Parameters:
      builder - collects element parameter references, not null
      out - buffer to append into, not null