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 TypeMethodDescriptionvoid
Cancel the Hide-In timervoid
hide()
Hide the Notification nowvoid
Hide this Notification in duration ms HINT: did you want to use setAutoHideDuration instead?void
onShow
(Notification.HideHandler handler) Called when the Notification is shownvoid
setAutoHideDuration
(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, wait
Methods 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:Notification
Called when the Notification is shown- Specified by:
onShow
in interfaceNotification
- Parameters:
handler
- handler to hide the Notification
-
hide
public void hide()Hide the Notification now
-