Package org.uberfire.workbench.events
Class NotificationEvent
- java.lang.Object
-
- org.uberfire.workbench.events.NotificationEvent
-
- All Implemented Interfaces:
UberFireEvent
@Portable public class NotificationEvent extends Object implements UberFireEvent
An event to show a notification pop-up in the Workbench
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotificationEvent.NotificationType
-
Constructor Summary
Constructors Constructor Description NotificationEvent()NotificationEvent(String notification)NotificationEvent(String notification, boolean isSingleton)NotificationEvent(String notification, NotificationEvent.NotificationType type)NotificationEvent(String notification, NotificationEvent.NotificationType type, boolean isSingleton)NotificationEvent(String notification, NotificationEvent.NotificationType type, boolean isSingleton, PlaceRequest placeRequest)NotificationEvent(String notification, NotificationEvent.NotificationType type, boolean isSingleton, PlaceRequest placeRequest, Integer initialTopOffset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanautoHide()booleanequals(Object obj)IntegergetInitialTopOffset()PlaceRequestgetNavigationPlace()StringgetNavigationText()StringgetNotification()PlaceRequestgetPlaceRequest()NotificationEvent.NotificationTypegetType()inthashCode()booleanhasNavigation()booleanisSingleton()NotificationEventsetAutoHide(boolean autoHide)NotificationEventsetNavigation(String text, PlaceRequest place)StringtoString()
-
-
-
Constructor Detail
-
NotificationEvent
public NotificationEvent()
-
NotificationEvent
public NotificationEvent(String notification)
-
NotificationEvent
public NotificationEvent(String notification, NotificationEvent.NotificationType type)
-
NotificationEvent
public NotificationEvent(String notification, boolean isSingleton)
-
NotificationEvent
public NotificationEvent(String notification, NotificationEvent.NotificationType type, boolean isSingleton)
-
NotificationEvent
public NotificationEvent(String notification, NotificationEvent.NotificationType type, boolean isSingleton, PlaceRequest placeRequest)
-
NotificationEvent
public NotificationEvent(String notification, NotificationEvent.NotificationType type, boolean isSingleton, PlaceRequest placeRequest, Integer initialTopOffset)
-
-
Method Detail
-
getNotification
public String getNotification()
-
getType
public NotificationEvent.NotificationType getType()
-
isSingleton
public boolean isSingleton()
-
getPlaceRequest
public PlaceRequest getPlaceRequest()
-
getInitialTopOffset
public Integer getInitialTopOffset()
-
setAutoHide
public NotificationEvent setAutoHide(boolean autoHide)
-
autoHide
public boolean autoHide()
-
setNavigation
public NotificationEvent setNavigation(String text, PlaceRequest place)
-
hasNavigation
public boolean hasNavigation()
-
getNavigationText
public String getNavigationText()
-
getNavigationPlace
public PlaceRequest getNavigationPlace()
-
-