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>onOpenedFields inherited from class org.teamapps.ux.component.AbstractComponent
DELETED_ATTRIBUTE, onRendered -
Constructor Summary
Constructors Constructor Description Notification()Notification(Component content) -
Method Summary
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, unrenderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.teamapps.ux.component.Component
setAttribute, setCssStyle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setShadow, toggleCssClass
-
Field Details
-
onOpened
-
onClosed
-
-
Constructor Details
-
Notification
public Notification() -
Notification
-
-
Method Details
-
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
-
getPadding
-
setPadding
-
getDisplayTimeInMillis
public int getDisplayTimeInMillis() -
setDisplayTimeInMillis
-
isDismissible
public boolean isDismissible() -
setDismissible
-
isShowProgressBar
public boolean isShowProgressBar() -
setShowProgressBar
-
getContent
-
setContent
-
isShowing
public boolean isShowing()
-