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.PositionNested classes/interfaces inherited from interface com.vaadin.flow.component.HasText
com.vaadin.flow.component.HasText.WhiteSpaceNested classes/interfaces inherited from interface com.storedobject.common.StyledBuilder
StyledBuilder.Style -
Field Summary
Fields inherited from interface com.storedobject.vaadin.HTMLGenerator
CHAR_ENTITIESFields 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, setTextMethods 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, showMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickShortcut, addDoubleClickListener, addSingleClickListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, remove, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, hasClassName, removeClassName, removeClassNames, setClassNameMethods inherited from interface com.vaadin.flow.component.HasText
getWhiteSpace, setWhiteSpaceMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, removeThemeVariantsMethods inherited from interface com.storedobject.vaadin.HTMLGenerator
getPrintTextMethods inherited from interface com.storedobject.common.StyledBuilder
append, newLine, setValueMethods 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:AlertGet the content as "styled text".- Overrides:
getContentin classAlert- Returns:
- Styled text.
-
getInternalStyledBuilder
- Specified by:
getInternalStyledBuilderin interfaceStyledBuilder
-
getApplication
- Specified by:
getApplicationin interfaceStyledBuilder
-
isNewLine
public boolean isNewLine()Description copied from interface:StyledBuilderCheck if the last add was a new line or not.- Specified by:
isNewLinein interfaceStyledBuilder- Returns:
- True/false
-
update
Description copied from interface:StyledBuilderUpdate internals if required. (Default implementation does nothing).- Specified by:
updatein interfaceStyledBuilder- Specified by:
updatein interfaceStyledBuilder- Returns:
- Self-reference is returned.
-
show
-
getPriority
public int getPriority() -
deleteOnClose
public boolean deleteOnClose()Description copied from class:AlertCheck whether this alert should be removed when closed or not.- Overrides:
deleteOnClosein classAlert- Returns:
- True if this should be removed when closed.
-