Class NotificationPopupView
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Panel
-
- com.google.gwt.user.client.ui.SimplePanel
-
- com.google.gwt.user.client.ui.PopupPanel
-
- com.google.gwt.user.client.ui.DecoratedPopupPanel
-
- org.uberfire.client.views.pfly.notifications.NotificationPopupView
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.EventPreview,com.google.gwt.user.client.ui.AcceptsOneWidget,com.google.gwt.user.client.ui.HasAnimation,com.google.gwt.user.client.ui.HasOneWidget,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.HasWidgets,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget,com.google.gwt.user.client.ui.IsWidget,com.google.gwt.user.client.ui.SourcesPopupEvents,Iterable<com.google.gwt.user.client.ui.Widget>
public class NotificationPopupView extends com.google.gwt.user.client.ui.DecoratedPopupPanelThe view for an individual newly created notification message.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback
-
-
Constructor Summary
Constructors Constructor Description NotificationPopupView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNavigation(String text, com.google.gwt.user.client.Command command)voidsetNotification(String text)Set the text to displayvoidsetNotificationWidth(String width)Set the width of the Notification pop-upvoidsetType(org.uberfire.workbench.events.NotificationEvent.NotificationType type)voidshow(com.google.gwt.user.client.Command onCompleteCommand)voidshow(com.google.gwt.user.client.Command onCompleteCommand, boolean autoHide)Show the Notification pop-up.-
Methods inherited from class com.google.gwt.user.client.ui.DecoratedPopupPanel
clear, doAttachChildren, doDetachChildren, getCellElement, getWidget, iterator, remove, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addAutoHidePartner, addCloseHandler, addPopupListener, center, getAnimationType, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, hide, hide, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onPreviewNativeEvent, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAnimationType, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setHeight, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, setWidth, show, showRelativeTo
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, 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, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
setNotification
public void setNotification(String text)
Set the text to display- Parameters:
text-
-
setType
public void setType(org.uberfire.workbench.events.NotificationEvent.NotificationType type)
-
setNotificationWidth
public void setNotificationWidth(String width)
Set the width of the Notification pop-up- Parameters:
width-
-
show
public void show(com.google.gwt.user.client.Command onCompleteCommand)
-
show
public void show(com.google.gwt.user.client.Command onCompleteCommand, boolean autoHide)Show the Notification pop-up. This consists of fading the pop-up into view and pausing. Once complete the onCompleteCommand will be executed.- Parameters:
onCompleteCommand-
-
addNavigation
public void addNavigation(String text, com.google.gwt.user.client.Command command)
-
-