Package com.storedobject.ui
Class Alert
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.notification.Notification
com.storedobject.vaadin.Alert
com.storedobject.ui.Alert
- All Implemented Interfaces:
StyledBuilder
,StyledBuilder
,HTMLGenerator
,ClickNotifier
,com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.Component>
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasComponents
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasEnabled
,com.vaadin.flow.component.HasStyle
,com.vaadin.flow.component.HasText
,com.vaadin.flow.component.HasTheme
,com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.notification.NotificationVariant>
,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.notification.Notification
com.vaadin.flow.component.notification.Notification.OpenedChangeEvent, com.vaadin.flow.component.notification.Notification.Position
Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasText
com.vaadin.flow.component.HasText.WhiteSpace
Nested classes/interfaces inherited from interface com.storedobject.common.StyledBuilder
StyledBuilder.Style
-
Field Summary
Fields inherited from interface com.storedobject.vaadin.HTMLGenerator
CHAR_ENTITIES
Fields inherited from interface com.storedobject.common.StyledBuilder
EMPTY_STRINGS
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.storedobject.vaadin.Alert
addClickListener, clicked, delete, getClickAction, getText, removeClickListener, replaceClickListener, setDefaultPosition, setText
Methods inherited from class com.vaadin.flow.component.notification.Notification
add, addAttachListener, addComponentAtIndex, addDetachListener, addOpenedChangeListener, close, getClassNames, getDuration, getPosition, getStyle, isAssertive, isOpened, onAttach, onDetach, open, setAssertive, setClassName, setDuration, setOpened, setPosition, show, show, show
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickShortcut, addDoubleClickListener, addSingleClickListener
Methods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, remove, remove, removeAll
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, hasClassName, removeClassName, removeClassNames, setClassName
Methods inherited from interface com.vaadin.flow.component.HasText
getWhiteSpace, setWhiteSpace
Methods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
Methods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, removeThemeVariants
Methods inherited from interface com.storedobject.vaadin.HTMLGenerator
getPrintText
Methods inherited from interface com.storedobject.common.StyledBuilder
append, newLine, setValue
Methods inherited from interface com.storedobject.ui.StyledBuilder
append, append, append, appendHTML, appendIcon, appendWithTag, appendWithTag, blackMessage, blueMessage, clear, clearContent, drawLine, getHTML, getValue, isEmpty, newLine, redMessage, setValue, setValue, space
-
Constructor Details
-
Alert
-
Alert
-
-
Method Details
-
getContent
Description copied from class:Alert
Get the content as "styled text".- Overrides:
getContent
in classAlert
- Returns:
- Styled text.
-
getInternalStyledBuilder
- Specified by:
getInternalStyledBuilder
in interfaceStyledBuilder
-
getApplication
- Specified by:
getApplication
in interfaceStyledBuilder
-
isNewLine
public boolean isNewLine()Description copied from interface:StyledBuilder
Check if the last add was a new line or not.- Specified by:
isNewLine
in interfaceStyledBuilder
- Returns:
- True/false
-
update
Description copied from interface:StyledBuilder
Update internals if required. (Default implementation does nothing).- Specified by:
update
in interfaceStyledBuilder
- Specified by:
update
in interfaceStyledBuilder
- Returns:
- Self-reference is returned.
-
show
-
getPriority
public int getPriority() -
deleteOnClose
public boolean deleteOnClose()Description copied from class:Alert
Check whether this alert should be removed when closed or not.- Overrides:
deleteOnClose
in classAlert
- Returns:
- True if this should be removed when closed.
-