Package org.uberfire.workbench.model
Class Notification
- java.lang.Object
-
- org.uberfire.workbench.model.Notification
-
@Portable public class Notification extends Object
Represents a notification that has been displayed in the UberFire workbench.Instances of this class are normally created by the Workbench Notification Manager in response to a
NotificationEventbeing fired as a CDI event.- See Also:
NotificationEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotification.State
-
Constructor Summary
Constructors Constructor Description Notification(NotificationEvent.NotificationType type, String message, Date timestamp, Notification.State state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()Notification.StategetState()DategetTimestamp()NotificationEvent.NotificationTypegetType()voidsetMessage(String message)voidsetState(Notification.State state)voidsetTimestamp(Date timestamp)voidsetType(NotificationEvent.NotificationType type)StringtoString()
-
-
-
Constructor Detail
-
Notification
public Notification(NotificationEvent.NotificationType type, String message, Date timestamp, Notification.State state)
-
-
Method Detail
-
getType
public NotificationEvent.NotificationType getType()
-
setType
public void setType(NotificationEvent.NotificationType type)
-
getMessage
public String getMessage()
-
setMessage
public void setMessage(String message)
-
getTimestamp
public Date getTimestamp()
-
setTimestamp
public void setTimestamp(Date timestamp)
-
getState
public Notification.State getState()
-
setState
public void setState(Notification.State state)
-
-