Package io.jmix.flowui
Class Notifications.NotificationBuilder
java.lang.Object
io.jmix.flowui.Notifications.NotificationBuilder
- Enclosing class:
- Notifications
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected Boolean
protected static final String
protected com.vaadin.flow.component.Component
protected static final String
protected int
protected String
protected static final String
protected com.vaadin.flow.component.notification.Notification
protected com.vaadin.flow.component.notification.Notification.Position
protected String
protected static final String
protected static final String
protected com.vaadin.flow.component.notification.NotificationVariant
protected String
protected static final String
protected Notifications.Type
protected static final String
-
Constructor Summary
ConstructorDescriptionNotificationBuilder
(com.vaadin.flow.component.Component component) NotificationBuilder
(String text) NotificationBuilder
(String title, String message) -
Method Summary
Modifier and TypeMethodDescriptionprotected Notifications.NotificationBuilder
applyDefaults
(FlowUiComponentProperties properties) com.vaadin.flow.component.notification.Notification
build()
protected com.vaadin.flow.component.Component
protected String
protected com.vaadin.flow.component.HasComponents
protected com.vaadin.flow.component.button.Button
protected com.vaadin.flow.component.Component
createMessageComponent
(String message) protected com.vaadin.flow.component.notification.Notification
protected com.vaadin.flow.component.HasComponents
protected com.vaadin.flow.component.Component
createTitleComponent
(String title) com.vaadin.flow.component.Component
int
com.vaadin.flow.component.notification.Notification.Position
getText()
getTitle()
getType()
boolean
protected boolean
protected void
onCloseButtonClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) void
show()
withCloseable
(boolean closeable) withDuration
(int duration) withPosition
(com.vaadin.flow.component.notification.Notification.Position position) withThemeVariant
(com.vaadin.flow.component.notification.NotificationVariant themeVariant) withType
(Notifications.Type type)
-
Field Details
-
CLOSEABLE_LAYOUT_STYLE_NAME
- See Also:
-
CLOSE_BUTTON_STYLE_NAME
- See Also:
-
TEXT_LAYOUT_STYLE_NAME
- See Also:
-
TITLE_STYLE_NAME
- See Also:
-
MESSAGE_STYLE_NAME
- See Also:
-
TEXT_CONTENT_STYLE_NAME
- See Also:
-
COMPONENT_CONTENT_STYLE_NAME
- See Also:
-
WARNING_THEME_NAME
- See Also:
-
notification
protected com.vaadin.flow.component.notification.Notification notification -
text
-
title
-
message
-
component
protected com.vaadin.flow.component.Component component -
position
protected com.vaadin.flow.component.notification.Notification.Position position -
duration
protected int duration -
type
-
closeable
-
themeVariant
protected com.vaadin.flow.component.notification.NotificationVariant themeVariant
-
-
Constructor Details
-
NotificationBuilder
-
NotificationBuilder
-
NotificationBuilder
public NotificationBuilder(com.vaadin.flow.component.Component component)
-
-
Method Details
-
withPosition
public Notifications.NotificationBuilder withPosition(com.vaadin.flow.component.notification.Notification.Position position) -
withDuration
-
withType
-
withCloseable
-
withThemeVariant
public Notifications.NotificationBuilder withThemeVariant(com.vaadin.flow.component.notification.NotificationVariant themeVariant) -
getPosition
public com.vaadin.flow.component.notification.Notification.Position getPosition() -
getDuration
public int getDuration() -
getType
-
isCloseable
public boolean isCloseable() -
getText
-
getTitle
-
getMessage
-
getComponent
@Nullable public com.vaadin.flow.component.Component getComponent() -
build
public com.vaadin.flow.component.notification.Notification build() -
show
public void show() -
applyDefaults
-
buildNotificationContent
@Nullable protected com.vaadin.flow.component.Component buildNotificationContent() -
createTextLayout
protected com.vaadin.flow.component.HasComponents createTextLayout() -
createTitleComponent
-
createMessageComponent
-
createCloseableLayout
protected com.vaadin.flow.component.HasComponents createCloseableLayout() -
createCloseButton
protected com.vaadin.flow.component.button.Button createCloseButton() -
onCloseButtonClick
protected void onCloseButtonClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) -
isInternalCloseable
protected boolean isInternalCloseable() -
createNotification
protected com.vaadin.flow.component.notification.Notification createNotification() -
convertTypeToThemeName
-