Class AccountBarBuilder
java.lang.Object
io.mindspice.simplypages.builders.AccountBarBuilder
Deprecated.
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 Summary
Modifier and TypeMethodDescriptionaddLeftItem(Component item) Deprecated.Appends a component to the left section.addLeftLink(String text, String href) Deprecated.Appends a left link throughLink.create(String, String), applying its href scheme policy immediately.addRightAccountWidget(String endpoint) Deprecated.Appends a dynamic account widget using an application-controlled or separately endpoint-validated URL.addRightAuthenticatedWidget(String username) Deprecated.Appends an authenticated account widget to the right section.Deprecated.Appends a guest account widget to the right section.addRightItem(Component item) Deprecated.Appends a component to the right section.addRightLink(String text, String href) Deprecated.Appends a right link throughLink.create(String, String), applying its href scheme policy immediately.build()Deprecated.Builds a new account bar component snapshot from current builder state.static AccountBarBuildercreate()Deprecated.PreferTopNavBuilder.create().withBackgroundColor(String color) Deprecated.Sets raw inline background color.Deprecated.Adds an extra class name to the root account bar element.
-
Method Details
-
create
Deprecated.PreferTopNavBuilder.create().Creates a new builder. -
addLeftItem
Deprecated.Appends a component to the left section. -
addRightItem
Deprecated.Appends a component to the right section. -
addLeftLink
Deprecated.Appends a left link throughLink.create(String, String), applying its href scheme policy immediately. Destination authorization remains application-owned. -
addRightLink
Deprecated.Appends a right link throughLink.create(String, String), applying its href scheme policy immediately. This does not validate arbitrary supplied components or HTMX endpoints. -
withClass
Deprecated.Adds an extra class name to the root account bar element. -
withBackgroundColor
Deprecated.Sets raw inline background color. Supply an application-controlled or separately CSS-context-validated value; declaration separators are retained, not sanitized. -
addRightAccountWidget
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
Deprecated.Appends a guest account widget to the right section. -
addRightAuthenticatedWidget
Deprecated.Appends an authenticated account widget to the right section. -
build
Deprecated.Builds a new account bar component snapshot from current builder state.
-
TopNavBuilderfor new top navigation composition.