@Portable public class Notification extends Object
Instances of this class are normally created by the Workbench Notification Manager in response to a
NotificationEvent
being fired as a CDI event.
NotificationEvent
Modifier and Type | Class and Description |
---|---|
static class |
Notification.State |
Constructor and Description |
---|
Notification(NotificationEvent.NotificationType type,
String message,
Date timestamp,
Notification.State state) |
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
Notification.State |
getState() |
Date |
getTimestamp() |
NotificationEvent.NotificationType |
getType() |
void |
setMessage(String message) |
void |
setState(Notification.State state) |
void |
setTimestamp(Date timestamp) |
void |
setType(NotificationEvent.NotificationType type) |
String |
toString() |
public Notification(NotificationEvent.NotificationType type, String message, Date timestamp, Notification.State state)
public NotificationEvent.NotificationType getType()
public void setType(NotificationEvent.NotificationType type)
public String getMessage()
public void setMessage(String message)
public Date getTimestamp()
public void setTimestamp(Date timestamp)
public Notification.State getState()
public void setState(Notification.State state)
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.