Class Notification
- java.lang.Object
-
- org.teamapps.ux.component.AbstractComponent
-
- org.teamapps.ux.component.notification.Notification
-
- All Implemented Interfaces:
ClientObject,Component
public class Notification extends AbstractComponent
-
-
Field Summary
Fields Modifier and Type Field Description Event<java.lang.Boolean>onClosedEvent<java.lang.Void>onOpened-
Fields inherited from class org.teamapps.ux.component.AbstractComponent
DELETED_ATTRIBUTE, onRendered
-
-
Constructor Summary
Constructors Constructor Description Notification()Notification(Component content)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.teamapps.dto.UiNotificationcreateUiComponent()static NotificationcreateWithIconAndCaption(org.teamapps.icons.Icon<?,?> icon, java.lang.String text)static NotificationcreateWithIconAndTextAndDescription(org.teamapps.icons.Icon<?,?> icon, java.lang.String text, java.lang.String description)org.teamapps.common.format.ColorgetBackgroundColor()ComponentgetContent()intgetDisplayTimeInMillis()SpacinggetPadding()voidhandleUiEvent(org.teamapps.dto.UiEvent event)booleanisDismissible()booleanisShowing()booleanisShowProgressBar()NotificationsetBackgroundColor(org.teamapps.common.format.Color backgroundColor)NotificationsetContent(Component content)NotificationsetDismissible(boolean dismissible)NotificationsetDisplayTimeInMillis(int displayTimeInMillis)NotificationsetPadding(Spacing padding)NotificationsetShowProgressBar(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, unrender
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teamapps.ux.component.ClientObject
handleUiQuery
-
Methods inherited from interface org.teamapps.ux.component.Component
setAriaLabel, setAttribute, setCssStyle, setHtmlTitle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setShadow, toggleCssClass
-
-
-
-
Constructor Detail
-
Notification
public Notification()
-
Notification
public Notification(Component content)
-
-
Method Detail
-
createWithIconAndCaption
public static Notification createWithIconAndCaption(org.teamapps.icons.Icon<?,?> icon, java.lang.String text)
-
createWithIconAndTextAndDescription
public static Notification createWithIconAndTextAndDescription(org.teamapps.icons.Icon<?,?> icon, java.lang.String text, java.lang.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
public Notification setBackgroundColor(org.teamapps.common.format.Color backgroundColor)
-
getPadding
public Spacing getPadding()
-
setPadding
public Notification setPadding(Spacing padding)
-
getDisplayTimeInMillis
public int getDisplayTimeInMillis()
-
setDisplayTimeInMillis
public Notification setDisplayTimeInMillis(int displayTimeInMillis)
-
isDismissible
public boolean isDismissible()
-
setDismissible
public Notification setDismissible(boolean dismissible)
-
isShowProgressBar
public boolean isShowProgressBar()
-
setShowProgressBar
public Notification setShowProgressBar(boolean showProgressBar)
-
getContent
public Component getContent()
-
setContent
public Notification setContent(Component content)
-
isShowing
public boolean isShowing()
-
-