public class NotificationBox extends com.google.gwt.user.client.ui.Composite implements com.google.gwt.user.client.ui.HasWidgets, IsSWMMobileWidget
NotificationBox.showPopupDialog(container, "Message1", "Message2");| Modifier and Type | Field and Description |
|---|---|
protected com.google.gwt.user.client.ui.Anchor |
closeButton |
protected NotificationBoxCss |
css |
static NotificationBox |
HIGH_LANDER
There should only be one NotificationBox!
|
protected com.google.gwt.user.client.ui.HasWidgets |
panelToOverlay |
protected com.google.gwt.user.client.ui.FlowPanel |
slideUpPanel |
| Constructor and Description |
|---|
NotificationBox()
Construct a popin dialog
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget w) |
void |
addText(String toAdd)
Wil show the notificationf or 5 secs.
|
void |
clear() |
com.google.gwt.user.client.ui.HasWidgets |
getPanelToOverlay()
get the panel that the dialog overlays
|
boolean |
isVisible()
Returns true if this notification is currently visible.
|
Iterator<com.google.gwt.user.client.ui.Widget> |
iterator() |
void |
onInitialLoad()
When the widget is loaded first time.
|
void |
onTransitionEnd()
When an transition containing this widget ends.
|
boolean |
remove(com.google.gwt.user.client.ui.Widget w) |
void |
setPanelToOverlay(com.google.gwt.user.client.ui.HasWidgets widgetToCover)
Set the area to cover
|
void |
setSecondaryStyle(String style)
Will set the secondary style.
|
void |
showCloseButton(boolean show,
com.google.gwt.user.client.ui.HasWidgets containerForThisWidget)
Defines if the notificationbox should have a close button or not.
|
static void |
showPopupDialog(com.google.gwt.user.client.ui.HasWidgets containerForThisWidget,
int fadeInAfter,
int fadeOutAfter,
boolean showCloseButton,
String... messages)
Will display a notification box, which will fade in and out after a specified time and defines if it should
have a close button or not.
|
static void |
showPopupDialog(com.google.gwt.user.client.ui.HasWidgets containerForThisWidget,
int fadeInAfter,
int fadeOutAfter,
String... messages)
Will display a notification box, which will fade in and out after a specified time.
|
static void |
showPopupDialog(com.google.gwt.user.client.ui.HasWidgets containerForThisWidget,
String... messages)
Will dispay a notification for 5 seconds and hide it again.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringpublic static NotificationBox HIGH_LANDER
protected final com.google.gwt.user.client.ui.FlowPanel slideUpPanel
protected com.google.gwt.user.client.ui.HasWidgets panelToOverlay
protected final NotificationBoxCss css
protected final com.google.gwt.user.client.ui.Anchor closeButton
public void addText(String toAdd)
toAdd - public void add(com.google.gwt.user.client.ui.Widget w)
add in interface com.google.gwt.user.client.ui.HasWidgetspublic void clear()
clear in interface com.google.gwt.user.client.ui.HasWidgetspublic Iterator<com.google.gwt.user.client.ui.Widget> iterator()
public boolean remove(com.google.gwt.user.client.ui.Widget w)
remove in interface com.google.gwt.user.client.ui.HasWidgetspublic void setPanelToOverlay(com.google.gwt.user.client.ui.HasWidgets widgetToCover)
widgetToCover - the widet to coverpublic com.google.gwt.user.client.ui.HasWidgets getPanelToOverlay()
public boolean isVisible()
isVisible in interface com.google.gwt.user.client.ui.HasVisibilityisVisible in class com.google.gwt.user.client.ui.UIObjectpublic void onInitialLoad()
onInitialLoad in interface IsSWMMobileWidgetpublic void onTransitionEnd()
onTransitionEnd in interface IsSWMMobileWidgetpublic void setSecondaryStyle(String style)
setSecondaryStyle in interface IsSWMMobileWidgetstyle - the style to set.public void showCloseButton(boolean show,
com.google.gwt.user.client.ui.HasWidgets containerForThisWidget)
show - .containerForThisWidget - .public static void showPopupDialog(com.google.gwt.user.client.ui.HasWidgets containerForThisWidget,
String... messages)
containerForThisWidget - the container (may outer HTML pannel of a Page)messages - messages to displaypublic static void showPopupDialog(com.google.gwt.user.client.ui.HasWidgets containerForThisWidget,
int fadeInAfter,
int fadeOutAfter,
String... messages)
containerForThisWidget - -fadeInAfter - .fadeOutAfter - .messages - .public static void showPopupDialog(com.google.gwt.user.client.ui.HasWidgets containerForThisWidget,
int fadeInAfter,
int fadeOutAfter,
boolean showCloseButton,
String... messages)
containerForThisWidget - .fadeInAfter - .fadeOutAfter - .showCloseButton - .messages - .Copyright © 2011–2015 SWM. All rights reserved.