public class VNotification extends VOverlay
| Modifier and Type | Class and Description |
|---|---|
static interface |
VNotification.EventListener |
class |
VNotification.HideEvent |
Overlay.PositionAndSize, Overlay.ResizeAnimationcom.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback| Modifier and Type | Field and Description |
|---|---|
static Position |
ASSISTIVE
Position that is only accessible for assistive devices, invisible for
visual users.
|
static Position |
BOTTOM_LEFT |
static Position |
BOTTOM_RIGHT |
static String |
CAPTION |
static Position |
CENTERED |
static Position |
CENTERED_BOTTOM |
static Position |
CENTERED_TOP |
static int |
DELAY_FOREVER |
static int |
DELAY_NONE |
static String |
DESCRIPTION |
static String |
DETAILS |
static String |
STYLE_SYSTEM |
static Position |
TOP_LEFT |
static Position |
TOP_RIGHT |
ADDITIONAL_CLASSNAME_ANIMATE_IN, ADDITIONAL_CLASSNAME_ANIMATE_OUT, CLASSNAME_CONTAINER, CLASSNAME_SHADOW, Z_INDEX| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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,
com.google.gwt.user.client.ui.Widget owner) |
static String |
getDependentStyle(ApplicationConnection client,
String style)
Meant for internal usage only.
|
void |
hide() |
protected void |
hideAfterDelay() |
void |
onBrowserEvent(com.google.gwt.user.client.Event event) |
boolean |
onEventPreview(com.google.gwt.user.client.Event event) |
protected void |
onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent event) |
void |
removeEventListener(VNotification.EventListener listener) |
void |
setPosition(Position position) |
void |
show() |
void |
show(Position position) |
void |
show(Position position,
String style) |
void |
show(String style) |
void |
show(String html,
Position position,
String style) |
void |
show(com.google.gwt.user.client.ui.Widget widget,
Position position,
String style) |
static void |
showError(ApplicationConnection connection,
String caption,
String message,
String details,
String url)
Shows an error notification and redirects the user to the given URL when
she clicks on the notification.
|
static void |
showNotification(ApplicationConnection client,
UIDL notification) |
getApplicationConnection, getOverlayContainer, getOverlayContainer, setOverlayContainerLabelcenter, getOwner, hide, hide, isFitInWindow, isShadowEnabled, isShimElementEnabled, isSinkShadowEvents, needsShimElement, onAttach, onClose, onDetach, positionOrSizeUpdated, setFitInWindow, setHeight, setOwner, setPopupPosition, setShadowEnabled, setShadowStyle, setSinkShadowEvents, setVisible, setWidth, setZIndex, sinkEvents, updateShadowSizeAndPosition, useShadowDivaddAutoHidePartner, addCloseHandler, addPopupListener, getAnimationType, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAnimationType, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setModal, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setWidget, showRelativeToadd, getWidget, iterator, remove, setWidgetadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onLoad, removeFromParent, setLayoutData, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final Position CENTERED
public static final Position CENTERED_TOP
public static final Position CENTERED_BOTTOM
public static final Position TOP_LEFT
public static final Position TOP_RIGHT
public static final Position BOTTOM_LEFT
public static final Position BOTTOM_RIGHT
public static final String CAPTION
public static final String DESCRIPTION
public static final String DETAILS
public static final Position ASSISTIVE
public static final int DELAY_FOREVER
public static final int DELAY_NONE
public static final String STYLE_SYSTEM
public VNotification()
@Deprecated public VNotification(int delayMsec)
#createNotification(int) instead to enable
GWT deferred binding.delayMsec - @Deprecated public VNotification(int delayMsec, int fadeMsec, int startOpacity)
#createNotification(int, int, int) instead
to enable GWT deferred binding.delayMsec - fadeMsec - startOpacity - public void show(String style)
public void show(Position position)
protected void hideAfterDelay()
public void setPosition(Position position)
public void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class com.google.gwt.user.client.ui.Widgetprotected void onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent event)
onPreviewNativeEvent in class com.google.gwt.user.client.ui.PopupPanelpublic boolean onEventPreview(com.google.gwt.user.client.Event event)
onEventPreview in interface com.google.gwt.user.client.EventPreviewonEventPreview in class com.google.gwt.user.client.ui.PopupPanelpublic void addEventListener(VNotification.EventListener listener)
public void removeEventListener(VNotification.EventListener listener)
public static void showNotification(ApplicationConnection client, UIDL notification)
public static String getDependentStyle(ApplicationConnection client, String style)
client - application connectionstyle - the dependent style namepublic static VNotification createNotification(int delayMsec, com.google.gwt.user.client.ui.Widget owner)
public static void bringNotificationsToFront()
public static void showError(ApplicationConnection connection, String caption, String message, String details, String url)
connection - A reference to the ApplicationConnectioncaption - The caption for the error or null to exclude the captionmessage - The message for the error or null to exclude the messagedetails - A details message or null to exclude the detailsurl - A url to redirect to after the user clicks the error
notificationCopyright © 2016 Vaadin Ltd. All rights reserved.