@Templated(value="/org/overlord/sramp/ui/client/local/site/artifacts_dialogs.html#growl-dialog") @Dependent public class NotificationWidget extends com.google.gwt.user.client.ui.Composite implements MouseInEvent.HasMouseInHandlers, MouseOutEvent.HasMouseOutHandlers
| Constructor and Description |
|---|
NotificationWidget()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addMouseInHandler(MouseInEvent.Handler handler)
Adds an ok/cancel handler to the widget.
|
com.google.gwt.event.shared.HandlerRegistration |
addMouseOutHandler(MouseOutEvent.Handler handler)
Adds an ok/cancel handler to the widget.
|
com.google.gwt.user.client.ui.Button |
getCloseButton() |
protected void |
onMouseIn()
Called when the mouse enters the dialog.
|
protected void |
onMouseOut()
Called when the mouse leaves the dialog.
|
protected void |
onPostConstruct()
Called after the widget is constructed.
|
protected void |
onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent event)
Processes a native event so that we can track mouse movements in and
out of this widget.
|
void |
positionBottom(int bottom,
int right)
Positions the notifiaction widget.
|
void |
setNotificationMessage(String message,
NotificationType notificationType)
Sets the notification message.
|
void |
setNotificationMessage(com.google.gwt.user.client.ui.Widget message)
Sets the notification message.
|
void |
setNotificationTitle(String title)
Sets the notification title.
|
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, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents@PostConstruct protected void onPostConstruct()
public void setNotificationTitle(String title)
title - public void setNotificationMessage(String message, NotificationType notificationType)
message - notificationType - public void setNotificationMessage(com.google.gwt.user.client.ui.Widget message)
message - public void positionBottom(int bottom,
int right)
bottom - right - public com.google.gwt.user.client.ui.Button getCloseButton()
protected void onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent event)
event - protected void onMouseIn()
protected void onMouseOut()
public com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(MouseOutEvent.Handler handler)
MouseOutEvent.HasMouseOutHandlerspublic com.google.gwt.event.shared.HandlerRegistration addMouseInHandler(MouseInEvent.Handler handler)
MouseInEvent.HasMouseInHandlersCopyright © 2012-2013 JBoss, a division of Red Hat. All Rights Reserved.