NotificationView.
Notifications can be added to groups (NotificationGroup).
NotificationGroup#getNotifications()
| Modifier and Type | Class and Description |
|---|---|
| public static enum | Notification.
A list of possible behaviours that are supported when the user clicks on a notification. |
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final ObservableList | |
| private final ObjectProperty | |
| private final BooleanProperty | |
| private NotificationGroup | |
| public final ObjectProperty | |
| private final StringProperty | |
| private final StringProperty | |
| private final ObjectProperty | |
| private final ObjectProperty |
| Access | Constructor and Description |
|---|---|
| public | Notification(String
the title that will usually be shown in bold title, String a summary text of the noteworthy thing that happened summary, ZonedDateTime the date and time when the noteworthy thing happened dateTime)Constructs a new notification. |
| public | Notification(String
the title that will usually be shown in bold title, String a summary text of the noteworthy thing that happened summary)Constructs a new notification. |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(Notification<T> o)
Implements java. Compares this object with the specified object for order. |
| public final ObjectProperty | |
| public final BooleanProperty | Returns: true if the notification's parent / group is currently expandedA flag that gets updated when the notification's group was expanded or collapsed. |
| public final ObservableList | Returns: a list of possible actionsA list of (optional) actions that the user can perform directly from within the notification. |
| public final ZonedDateTime | |
| public final NotificationGroup | |
| public final Callback | |
| public final String | |
| public final String | |
| public Notification. | |
| public final T | |
| public final boolean | |
| public final ObjectProperty | Returns: the behaviour upon click (do nothing, remove the notification, hide the view, ....)A callback that determines how the notification and the view will behave when the user clicks on it. |
| public final void | |
| public final void | |
| public final void | |
| pack-priv void | setGroup(NotificationGroup<T, S extends Notification<T>> group)
Package protected so that it can only be called from |
| public final void | |
| public final void | |
| public final void | |
| public void | |
| public final void | |
| public final StringProperty | |
| public final StringProperty | Returns: the title of the notificationThe title of the notification, e.g. "Purchase Order #123456" when this is the subject of an email for which the notification was created. |
| public String | |
| public ObjectProperty | Returns: anObjectProperty representing the type of the notificationProvides an object property containing the type of this notification. |
| public final ObjectProperty | Returns: the user objectAn (optional) user object for easy linking between the notification and the business object for which the notification was created, e.g. an email or a calendar entry. |
| actions | back to summary |
|---|---|
| private final ObservableList<NotificationAction<T>> actions | |
| dateTime | back to summary |
|---|---|
| private final ObjectProperty<ZonedDateTime> dateTime | |
| expanded | back to summary |
|---|---|
| private final BooleanProperty expanded | |
| group | back to summary |
|---|---|
| private NotificationGroup<T, S extends Notification<T>> group | |
| onClick | back to summary |
|---|---|
| public final ObjectProperty<Callback<Notification<T>, Notification. | |
| summary | back to summary |
|---|---|
| private final StringProperty summary | |
| title | back to summary |
|---|---|
| private final StringProperty title | |
| type | back to summary |
|---|---|
| private final ObjectProperty<Notification. | |
| userObject | back to summary |
|---|---|
| private final ObjectProperty<T> userObject | |
| Notification | back to summary |
|---|---|
| public Notification(String title, String summary, ZonedDateTime dateTime) Constructs a new notification.
| |
| Notification | back to summary |
|---|---|
| public Notification(String title, String summary) Constructs a new notification. | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Notification<T> o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| dateTimeProperty | back to summary |
|---|---|
| public final ObjectProperty The time stamp for this notification.
| |
| expandedProperty | back to summary |
|---|---|
| public final BooleanProperty expandedProperty() A flag that gets updated when the notification's group was expanded or collapsed.
| |
| getActions | back to summary |
|---|---|
| public final ObservableList A list of (optional) actions that the user can perform directly from within the notification.
| |
| getDateTime | back to summary |
|---|---|
| public final ZonedDateTime getDateTime() | |
| getGroup | back to summary |
|---|---|
| public final NotificationGroup The group to which the notification belongs.
| |
| getOnClick | back to summary |
|---|---|
| public final Callback | |
| getSummary | back to summary |
|---|---|
| public final String getSummary() | |
| getTitle | back to summary |
|---|---|
| public final String getTitle() | |
| getType | back to summary |
|---|---|
| public Notification. | |
| getUserObject | back to summary |
|---|---|
| public final T getUserObject() | |
| isExpanded | back to summary |
|---|---|
| public final boolean isExpanded() | |
| onClickProperty | back to summary |
|---|---|
| public final ObjectProperty A callback that determines how the notification and the view will behave when the user clicks on it. The default behaviour is to hide the view and remove the notification from its group.
| |
| remove | back to summary |
|---|---|
| public final void remove() Convenience method to remove the notification from its group / its parent. | |
| setDateTime | back to summary |
|---|---|
| public final void setDateTime(ZonedDateTime dateTime) | |
| setExpanded | back to summary |
|---|---|
| public final void setExpanded(boolean expanded) | |
| setGroup | back to summary |
|---|---|
| pack-priv void setGroup(NotificationGroup<T, S extends Notification<T>> group) Package protected so that it can only be called from | |
| setOnClick | back to summary |
|---|---|
| public final void setOnClick(Callback<Notification<T>, Notification. | |
| setSummary | back to summary |
|---|---|
| public final void setSummary(String summary) | |
| setTitle | back to summary |
|---|---|
| public final void setTitle(String title) | |
| setType | back to summary |
|---|---|
| public void setType(Notification. | |
| setUserObject | back to summary |
|---|---|
| public final void setUserObject(T userObject) | |
| summaryProperty | back to summary |
|---|---|
| public final StringProperty summaryProperty() A short summary of the noteworthy thing that happened.
| |
| titleProperty | back to summary |
|---|---|
| public final StringProperty titleProperty() The title of the notification, e.g. "Purchase Order #123456" when this is the subject of an email for which the notification was created.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| typeProperty | back to summary |
|---|---|
| public ObjectProperty Provides an object property containing the type of this notification. The type represents the category or severity of the notification, such as INFO, WARNING, ERROR, or SUCCESS.
| |
| userObjectProperty | back to summary |
|---|---|
| public final ObjectProperty An (optional) user object for easy linking between the notification and the business object for which the notification was created, e.g. an email or a calendar entry.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Notification. | HIDE
Hide the parent view (the info center) when the user clicks on the notification. |
| public static final Notification. | HIDE_AND_REMOVE
Hide the parent view and remove the notification from its group when the user clicks on it. |
| public static final Notification. | NONE
Do nothing when the user clicks on the notification. |
| public static final Notification. | REMOVE
Remove the notification from its group when the user clicks on it. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Notification. | |
| public static Notification. |
| HIDE | back to summary |
|---|---|
| public static final Notification. Hide the parent view (the info center) when the user clicks on the notification. | |
| HIDE_AND_REMOVE | back to summary |
|---|---|
| public static final Notification. Hide the parent view and remove the notification from its group when the user clicks on it. | |
| NONE | back to summary |
|---|---|
| public static final Notification. Do nothing when the user clicks on the notification. | |
| REMOVE | back to summary |
|---|---|
| public static final Notification. Remove the notification from its group when the user clicks on it. | |
| OnClickBehaviour | back to summary |
|---|---|
| private OnClickBehaviour() | |
| valueOf | back to summary |
|---|---|
| public static Notification. | |
| values | back to summary |
|---|---|
| public static Notification. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Notification. | |
| public static final Notification. | |
| public static final Notification. | |
| public static final Notification. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Notification. | |
| public static Notification. |
| ERROR | back to summary |
|---|---|
| public static final Notification. | |
| INFO | back to summary |
|---|---|
| public static final Notification. | |
| SUCCESS | back to summary |
|---|---|
| public static final Notification. | |
| WARNING | back to summary |
|---|---|
| public static final Notification. | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static Notification. | |
| values | back to summary |
|---|---|
| public static Notification. | |