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()static NotificationcreateWithIconAndCaption(Icon<?, ?> icon, String text) static NotificationcreateWithIconAndTextAndDescription(Icon<?, ?> icon, String text, String description) intvoidhandleUiEvent(UiEvent event) booleanbooleanbooleansetBackgroundColor(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(Icon<?, ?> icon, String text, String description) -
createUiComponent
- Specified by:
createUiComponentin classAbstractComponent
-
handleUiEvent
-
close
public void close() -
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()
-