@ForUseOnly public interface WebeditStatusNoteBuilder
WebeditStatusNote
.
WebeditStatusNote
note =context
.createNote
() .title
("Translation missing") .text
("This page is not translated yet.") .icon
(context
.requireSpecialist
(ImageAgent.TYPE
).getImageFromUrl
("module/translate.png")) .color
(WebeditColor.VANILLA
) .visibleOnLoad
(true) .addItem
(new TranslateActionItem()) .create
();
WebeditStatusNoteContext.createNote()
Modifier and Type | Method and Description |
---|---|
WebeditStatusNoteBuilder |
addItem(WebeditStatusNoteItem item)
Adds a item eligible for display in the status note's contextual setting.
|
WebeditStatusNoteBuilder |
color(WebeditColor color)
Sets the color associated with the status note to create.
|
WebeditStatusNote |
create()
Creates a new
WebeditStatusNote based on the previously configured settings. |
WebeditStatusNoteBuilder |
icon(Image<?> icon)
Sets the icon associated with the status note to create.
|
WebeditStatusNoteBuilder |
setItems(Collection<? extends WebeditStatusNoteItem> items)
Sets the items eligible for display in the status note's contextual setting.
|
WebeditStatusNoteBuilder |
text(String text)
Sets the text of the status note to create.
|
WebeditStatusNoteBuilder |
title(String title)
Sets the title of the status note to create.
|
WebeditStatusNoteBuilder |
visibleOnLoad(boolean visibleOnLoad)
Sets the initial visibility of the status note after the preview has been loaded.
|
@NotNull WebeditStatusNoteBuilder color(@Nullable WebeditColor color)
color
- The color of the status information, or null
.@NotNull WebeditStatusNoteBuilder icon(@Nullable Image<?> icon)
ImageAgent
to create an Image
instance.icon
- The icon of the status information, or null
.@NotNull WebeditStatusNoteBuilder title(@NotNull String title)
title
- The title of the status information.@NotNull WebeditStatusNoteBuilder text(@Nullable String text)
text
- The text of the status information, or null
.@NotNull WebeditStatusNoteBuilder visibleOnLoad(boolean visibleOnLoad)
visibleOnLoad
- The initial visibility of the status information.@NotNull WebeditStatusNoteBuilder addItem(@NotNull WebeditStatusNoteItem item)
item
- The item to be added@NotNull WebeditStatusNoteBuilder setItems(@NotNull Collection<? extends WebeditStatusNoteItem> items)
items
- The items to be set@NotNull WebeditStatusNote create()
WebeditStatusNote
based on the previously configured settings.WebeditStatusNote
instance.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210