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

public abstract class AbstractNotification extends Object implements Notification
Simple Notification-Superclass, providing - hide method - autohide-feature
  • Constructor Details

    • AbstractNotification

      public AbstractNotification()
  • Method Details

    • setAutoHideDuration

      public void setAutoHideDuration(Integer autoDuration)
      Set the time the notification should be visible This feature starts the hideIn-Timer when the Notification is shown
      Parameters:
      autoDuration - ms to show. if null, turn off
    • cancelHideIn

      public void cancelHideIn()
      Cancel the Hide-In timer
    • hideIn

      public void hideIn(Integer duration)
      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

      public void onShow(Notification.HideHandler handler)
      Description copied from interface: Notification
      Called when the Notification is shown
      Specified by:
      onShow in interface Notification
      Parameters:
      handler - handler to hide the Notification
    • hide

      public void hide()
      Hide the Notification now