Class TurboFrame.Builder

java.lang.Object
io.micronaut.views.TemplatedBuilder<TurboFrame>
io.micronaut.views.turbo.TurboFrame.Builder
Enclosing class:
TurboFrame

public static class TurboFrame.Builder extends TemplatedBuilder<TurboFrame>
Turbo Frame Builder.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • src

      @NonNull public @NonNull TurboFrame.Builder src(@Nullable @Nullable String src)
      Parameters:
      src - src attribute
      Returns:
      Turbo Frame Builder
    • id

      @NonNull public @NonNull TurboFrame.Builder id(@Nullable @Nullable String id)
      Parameters:
      id - id attribute
      Returns:
      Turbo Frame Builder
    • target

      @NonNull public @NonNull TurboFrame.Builder target(@Nullable @Nullable String target)
      Parameters:
      target - target attribute
      Returns:
      Turbo Frame Builder
    • loading

      @NonNull public @NonNull TurboFrame.Builder loading(@Nullable @Nullable Loading loading)
      Parameters:
      loading - eager and lazy
      Returns:
      Turbo Frame Builder
    • busy

      @NonNull public @NonNull TurboFrame.Builder busy(@Nullable @Nullable Boolean busy)
      Parameters:
      busy - Busy attribute
      Returns:
      Turbo Frame Builder
    • disabled

      @NonNull public @NonNull TurboFrame.Builder disabled(@Nullable @Nullable Boolean disabled)
      Parameters:
      disabled - Disabled Attribute
      Returns:
      Turbo Frame Builder
    • autoscroll

      @NonNull public @NonNull TurboFrame.Builder autoscroll(@Nullable @Nullable Boolean autoscroll)
      Parameters:
      autoscroll - Autoscroll Attribute
      Returns:
      Turbo Frame Builder
    • visitAction

      @NonNull public @NonNull TurboFrame.Builder visitAction(@NonNull @NonNull VisitAction visitAction)
      Parameters:
      visitAction - Visit Action
      Returns:
      The builder.
    • build

      @NonNull public @NonNull TurboFrame build()
      Specified by:
      build in class TemplatedBuilder<TurboFrame>
      Returns:
      Turbo Frame
    • of

      @NonNull public static @NonNull Optional<TurboFrame.Builder> of(@NonNull @NonNull io.micronaut.http.HttpRequest<?> request, @NonNull @NonNull io.micronaut.http.HttpResponse<?> response)
      Creates a Turbo Frame builder if annotation TurboFrameView is found in the route and the request is a turbo request.
      Parameters:
      request - HTTP Request
      response - HTTP Response
      Returns:
      Creates a Turbo Frame builder if annotation TurboFrameView is found in the route and the request is a turbo request.