Package it.tidalwave.ui.core
Class UserNotification
java.lang.Object
it.tidalwave.ui.core.UserNotification
- Direct Known Subclasses:
UserNotificationWithFeedback
This class models a notification that will be presented to a user, without a feedback.
- Since:
- 2.0-ALPHA-2
- Author:
- Fabrizio Giudici
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic UserNotification
Returns a notification with empty caption and text.withCaption
(Class<?> bundleClass, String resourceName, Object... params) Returns a notification with a caption from a bundle.withCaption
(String caption) Returns a notification with a caption.Returns a notification with a text from a bundle.Returns a notification with a text.
-
Field Details
-
text
-
-
Constructor Details
-
UserNotification
public UserNotification()
-
-
Method Details
-
notification
Returns a notification with empty caption and text..- Returns:
- a notification with empty caption and text
-
withCaption
Returns a notification with a caption..- Parameters:
caption
- the caption- Returns:
- a notification with a caption
-
withCaption
@Nonnull public UserNotification withCaption(@Nonnull Class<?> bundleClass, @Nonnull String resourceName, @Nonnull Object... params) Returns a notification with a caption from a bundle..- Parameters:
bundleClass
- the class where to search the resource bundle fromresourceName
- the resource name of the caption in the bundleparams
- some (optional) parameters to the resource- Returns:
- a notification with a caption from a bundle
-
withText
Returns a notification with a text..- Parameters:
text
- the text- Returns:
- a notification with a text
-
withText
@Nonnull public UserNotification withText(@Nonnull Class<?> bundleClass, @Nonnull String resourceName, @Nonnull Object... params) Returns a notification with a text from a bundle..- Parameters:
bundleClass
- the class where to search the resource bundle fromresourceName
- the resource name of the text in the bundleparams
- some (optional) parameters to the resource- Returns:
- a notification with a text from a bundle
-