Class Notification
java.lang.Object
org.teamapps.ux.component.AbstractComponent
org.teamapps.ux.component.notification.Notification
- All Implemented Interfaces:
ClientObject,Component
-
Field Summary
FieldsFields inherited from class org.teamapps.ux.component.AbstractComponent
DELETED_ATTRIBUTE, onRendered -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.teamapps.dto.UiNotificationstatic NotificationcreateWithIconAndCaption(org.teamapps.icons.Icon<?, ?> icon, String text) static NotificationcreateWithIconAndTextAndDescription(org.teamapps.icons.Icon<?, ?> icon, String text, String description) org.teamapps.common.format.ColorintvoidhandleUiEvent(org.teamapps.dto.UiEvent event) booleanbooleanbooleansetBackgroundColor(org.teamapps.common.format.Color backgroundColor) setContent(Component content) setDismissible(boolean dismissible) setDisplayTimeInMillis(int displayTimeInMillis) setPadding(Spacing padding) setShowProgressBar(boolean showProgressBar) Methods inherited from class org.teamapps.ux.component.AbstractComponent
createUiReference, getDebuggingId, getId, getParent, getSessionContext, isRendered, isVisible, mapAbstractUiComponentProperties, queueCommandIfRendered, render, reRenderIfRendered, setAttribute, setCssStyle, setDebuggingId, setParent, setVisible, toggleCssClass, toString, unrenderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.teamapps.ux.component.ClientObject
handleUiQueryMethods inherited from interface org.teamapps.ux.component.Component
setAriaLabel, setAttribute, setCssStyle, setHtmlTitle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setShadow, toggleCssClass
-
Field Details
-
onOpened
-
onClosed
-
-
Constructor Details
-
Notification
public Notification() -
Notification
-
-
Method Details
-
createWithIconAndCaption
-
createWithIconAndTextAndDescription
public static Notification createWithIconAndTextAndDescription(org.teamapps.icons.Icon<?, ?> icon, String text, String description) -
createUiComponent
public org.teamapps.dto.UiNotification createUiComponent()- Specified by:
createUiComponentin classAbstractComponent
-
handleUiEvent
public void handleUiEvent(org.teamapps.dto.UiEvent event) -
close
public void close() -
getBackgroundColor
public org.teamapps.common.format.Color getBackgroundColor() -
setBackgroundColor
-
getPadding
-
setPadding
-
getDisplayTimeInMillis
public int getDisplayTimeInMillis() -
setDisplayTimeInMillis
-
isDismissible
public boolean isDismissible() -
setDismissible
-
isShowProgressBar
public boolean isShowProgressBar() -
setShowProgressBar
-
getContent
-
setContent
-
isShowing
public boolean isShowing()
-