Class AbstractNotification
java.lang.Object
com.levigo.jadice.web.demo.common.client.widgets.notification.AbstractNotification
- All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget,Notification
- Direct Known Subclasses:
DialogNotification
Simple Notification-Superclass, providing
- hide method - autohide-feature
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.levigo.jadice.web.demo.common.client.widgets.notification.Notification
Notification.HideHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCancel the Hide-In timervoidhide()Hide the Notification nowvoidHide this Notification in duration ms HINT: did you want to use setAutoHideDuration instead?voidonShow(Notification.HideHandler handler) Called when the Notification is shownvoidsetAutoHideDuration(Integer autoDuration) Set the time the notification should be visible This feature starts the hideIn-Timer when the Notification is shownMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.gwt.user.client.ui.IsWidget
asWidget
-
Constructor Details
-
AbstractNotification
public AbstractNotification()
-
-
Method Details
-
setAutoHideDuration
Set the time the notification should be visible This feature starts the hideIn-Timer when the Notification is shown- Parameters:
autoDuration- ms to show. ifnull, turn off
-
cancelHideIn
public void cancelHideIn()Cancel the Hide-In timer -
hideIn
Hide this Notification in duration ms HINT: did you want to use setAutoHideDuration instead?- Parameters:
duration- duration in ms the Notification should hide it selves (null=disable the timer)
-
onShow
Description copied from interface:NotificationCalled when the Notification is shown- Specified by:
onShowin interfaceNotification- Parameters:
handler- handler to hide the Notification
-
hide
public void hide()Hide the Notification now
-