Interface LinkBuilder
Builds a link and uses the specified link properties.
-
Method Summary
Modifier and TypeMethodDescription@NotNull Linkbuild()Returns the resolved link.@NotNull LinkBuilderwithLinkAttribute(@NotNull String name, @Nullable String value) Uses the specified HTML link attribute.@NotNull LinkBuilderwithLinkTarget(@NotNull String target) Uses the specified HTML link target.@NotNull LinkBuilderwithLinkUrlPropertyName(@NotNull String name) Uses the specified property name to read the link URL from.
-
Method Details
-
withLinkUrlPropertyName
Uses the specified property name to read the link URL from.- Parameters:
name- The property name- Returns:
LinkBuilder
-
withLinkTarget
Uses the specified HTML link target.- Parameters:
target- The link target- Returns:
LinkBuilder
-
withLinkAttribute
@NotNull @NotNull LinkBuilder withLinkAttribute(@NotNull @NotNull String name, @Nullable @Nullable String value) Uses the specified HTML link attribute.- Parameters:
name- The attribute namevalue- The attribute value- Returns:
LinkBuilder
-
build
Returns the resolved link.- Returns:
Link
-