com.vaadin.client.ui
Class VNotification

java.lang.Object
  extended by PopupPanel
      extended by com.vaadin.client.ui.VOverlay
          extended by com.vaadin.client.ui.VNotification
All Implemented Interfaces:
com.google.gwt.event.logical.shared.CloseHandler<PopupPanel>, com.google.gwt.event.shared.EventHandler

public class VNotification
extends VOverlay


Nested Class Summary
static interface VNotification.EventListener
           
 class VNotification.HideEvent
           
 
Nested classes/interfaces inherited from class com.vaadin.client.ui.VOverlay
VOverlay.PositionAndSize, VOverlay.ResizeAnimation
 
Field Summary
static com.vaadin.shared.Position ASSISTIVE
          Position that is only accessible for assistive devices, invisible for visual users.
static com.vaadin.shared.Position BOTTOM_LEFT
           
static com.vaadin.shared.Position BOTTOM_RIGHT
           
static com.vaadin.shared.Position CENTERED
           
static com.vaadin.shared.Position CENTERED_BOTTOM
           
static com.vaadin.shared.Position CENTERED_TOP
           
static int DELAY_FOREVER
           
static int DELAY_NONE
           
static java.lang.String STYLE_SYSTEM
           
static com.vaadin.shared.Position TOP_LEFT
           
static com.vaadin.shared.Position TOP_RIGHT
           
 
Fields inherited from class com.vaadin.client.ui.VOverlay
ac, ADDITIONAL_CLASSNAME_ANIMATE_IN, ADDITIONAL_CLASSNAME_ANIMATE_OUT, CLASSNAME_CONTAINER, CLASSNAME_SHADOW, current, Z_INDEX
 
Constructor Summary
VNotification()
          Default constructor.
VNotification(int delayMsec)
          Deprecated. Use static #createNotification(int) instead to enable GWT deferred binding.
VNotification(int delayMsec, int fadeMsec, int startOpacity)
          Deprecated. Use static #createNotification(int, int, int) instead to enable GWT deferred binding.
 
Method Summary
 void addEventListener(VNotification.EventListener listener)
           
static void bringNotificationsToFront()
          Moves currently visible notifications to the top of the event preview stack.
static VNotification createNotification(int delayMsec, Widget owner)
           
 void hide()
           
protected  void hideAfterDelay()
           
 void onBrowserEvent(Event event)
           
 boolean onEventPreview(Event event)
           
protected  void onPreviewNativeEvent(NativePreviewEvent event)
           
 void removeEventListener(VNotification.EventListener listener)
           
 void setPosition(com.vaadin.shared.Position position)
           
 void show()
           
 void show(com.vaadin.shared.Position position)
           
 void show(com.vaadin.shared.Position position, java.lang.String style)
           
 void show(java.lang.String style)
           
 void show(Widget widget, com.vaadin.shared.Position position, java.lang.String style)
           
static void showNotification(ApplicationConnection client, UIDL notification)
           
 
Methods inherited from class com.vaadin.client.ui.VOverlay
center, getApplicationConnection, getOverlayContainer, getOverlayContainer, getOwner, hide, hide, isShadowEnabled, isShimElementEnabled, isSinkShadowEvents, needsShimElement, onClose, onDetach, positionOrSizeUpdated, setHeight, setOverlayContainerLabel, setOwner, setPopupPosition, setShadowEnabled, setShadowStyle, setSinkShadowEvents, setVisible, setWidth, setZIndex, sinkEvents, updateShadowSizeAndPosition, useShadowDiv
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.logical.shared.CloseHandler
onClose
 

Field Detail

CENTERED

public static final com.vaadin.shared.Position CENTERED

CENTERED_TOP

public static final com.vaadin.shared.Position CENTERED_TOP

CENTERED_BOTTOM

public static final com.vaadin.shared.Position CENTERED_BOTTOM

TOP_LEFT

public static final com.vaadin.shared.Position TOP_LEFT

TOP_RIGHT

public static final com.vaadin.shared.Position TOP_RIGHT

BOTTOM_LEFT

public static final com.vaadin.shared.Position BOTTOM_LEFT

BOTTOM_RIGHT

public static final com.vaadin.shared.Position BOTTOM_RIGHT

ASSISTIVE

public static final com.vaadin.shared.Position ASSISTIVE
Position that is only accessible for assistive devices, invisible for visual users.


DELAY_FOREVER

public static final int DELAY_FOREVER
See Also:
Constant Field Values

DELAY_NONE

public static final int DELAY_NONE
See Also:
Constant Field Values

STYLE_SYSTEM

public static final java.lang.String STYLE_SYSTEM
See Also:
Constant Field Values
Constructor Detail

VNotification

public VNotification()
Default constructor. You should use GWT.create instead.


VNotification

@Deprecated
public VNotification(int delayMsec)
Deprecated. Use static #createNotification(int) instead to enable GWT deferred binding.

Parameters:
delayMsec -

VNotification

@Deprecated
public VNotification(int delayMsec,
                                int fadeMsec,
                                int startOpacity)
Deprecated. Use static #createNotification(int, int, int) instead to enable GWT deferred binding.

Parameters:
delayMsec -
fadeMsec -
startOpacity -
Method Detail

show

public void show()
Overrides:
show in class VOverlay

show

public void show(java.lang.String style)

show

public void show(com.vaadin.shared.Position position)

show

public void show(Widget widget,
                 com.vaadin.shared.Position position,
                 java.lang.String style)

show

public void show(com.vaadin.shared.Position position,
                 java.lang.String style)

hideAfterDelay

protected void hideAfterDelay()

hide

public void hide()
Overrides:
hide in class VOverlay

setPosition

public void setPosition(com.vaadin.shared.Position position)

onBrowserEvent

public void onBrowserEvent(Event event)

onPreviewNativeEvent

protected void onPreviewNativeEvent(NativePreviewEvent event)

onEventPreview

public boolean onEventPreview(Event event)

addEventListener

public void addEventListener(VNotification.EventListener listener)

removeEventListener

public void removeEventListener(VNotification.EventListener listener)

showNotification

public static void showNotification(ApplicationConnection client,
                                    UIDL notification)

createNotification

public static VNotification createNotification(int delayMsec,
                                               Widget owner)

bringNotificationsToFront

public static void bringNotificationsToFront()
Moves currently visible notifications to the top of the event preview stack. Can be called when opening other overlays such as subwindows to ensure the notifications receive the events they need and don't linger indefinitely. See #7136. TODO Should this be a generic Overlay feature instead?



Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.