Class AccountBarBuilder

java.lang.Object
io.mindspice.simplypages.builders.AccountBarBuilder

@Deprecated public class AccountBarBuilder extends Object
Deprecated.
Prefer TopNavBuilder for new top navigation composition.
Builds a two-sided account/navigation strip component.

Contract: left and right items are emitted in insertion order under .account-bar-left and .account-bar-right. If either side is empty, that section is omitted.

Mutability and thread-safety: mutable and not thread-safe. Use one builder per composition flow and avoid concurrent mutation.

  • Method Details

    • create

      @Deprecated public static AccountBarBuilder create()
      Deprecated.
      Creates a new builder.
    • addLeftItem

      public AccountBarBuilder addLeftItem(Component item)
      Deprecated.
      Appends a component to the left section.
    • addRightItem

      public AccountBarBuilder addRightItem(Component item)
      Deprecated.
      Appends a component to the right section.
    • addLeftLink

      public AccountBarBuilder addLeftLink(String text, String href)
      Deprecated.
      Appends a left link through Link.create(String, String), applying its href scheme policy immediately. Destination authorization remains application-owned.
    • addRightLink

      public AccountBarBuilder addRightLink(String text, String href)
      Deprecated.
      Appends a right link through Link.create(String, String), applying its href scheme policy immediately. This does not validate arbitrary supplied components or HTMX endpoints.
    • withClass

      public AccountBarBuilder withClass(String className)
      Deprecated.
      Adds an extra class name to the root account bar element.
    • withBackgroundColor

      public AccountBarBuilder withBackgroundColor(String color)
      Deprecated.
      Sets raw inline background color. Supply an application-controlled or separately CSS-context-validated value; declaration separators are retained, not sanitized.
    • addRightAccountWidget

      public AccountBarBuilder addRightAccountWidget(String endpoint)
      Deprecated.
      Appends a dynamic account widget using an application-controlled or separately endpoint-validated URL. Unlike link conveniences, this path does not apply Link's href policy or authorize requests.
    • addRightGuestWidget

      public AccountBarBuilder addRightGuestWidget()
      Deprecated.
      Appends a guest account widget to the right section.
    • addRightAuthenticatedWidget

      public AccountBarBuilder addRightAuthenticatedWidget(String username)
      Deprecated.
      Appends an authenticated account widget to the right section.
    • build

      public Component build()
      Deprecated.
      Builds a new account bar component snapshot from current builder state.