public abstract class A_CmsNotificationWidget extends com.google.gwt.user.client.ui.Composite implements I_CmsNotificationWidget
构造器和说明 |
---|
A_CmsNotificationWidget() |
限定符和类型 | 方法和说明 |
---|---|
protected abstract void |
animateHide()
Animates the notification out of view.
|
protected abstract void |
animateShow()
Animates the notification into view.
|
protected A_CmsAnimation |
getAnimation()
Returns the currently running animation.
|
protected abstract java.lang.String |
getMessage()
Returns the current notification message.
|
CmsNotification.Mode |
getMode()
Returns the mode.
|
com.google.gwt.user.client.Timer |
getTimer()
Returns the timer.
|
CmsNotification.Type |
getType()
Returns the type.
|
void |
hide()
Hides the widget.
|
protected void |
hide(boolean force)
Hides the notification message.
|
protected abstract void |
onHideComplete()
Execute when hiding is complete.
|
protected abstract void |
onShowComplete()
Execute when notification is completely visible.
|
protected void |
setAnimation(A_CmsAnimation animation)
Sets the currently running animation.
|
protected abstract void |
setClassForType(CmsNotification.Type type)
Sets the appropriate css class for the given type.
|
protected abstract void |
setMessage(java.lang.String message)
Sets the current notification message.
|
void |
show(CmsNotification.Mode mode,
CmsNotification.Type type,
java.lang.String message)
Sets the notification.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setBlocking
public CmsNotification.Mode getMode()
public com.google.gwt.user.client.Timer getTimer()
public CmsNotification.Type getType()
public void hide()
I_CmsNotificationWidget
hide
在接口中 I_CmsNotificationWidget
I_CmsNotificationWidget.hide()
public void show(CmsNotification.Mode mode, CmsNotification.Type type, java.lang.String message)
I_CmsNotificationWidget
show
在接口中 I_CmsNotificationWidget
mode
- the current notification modetype
- the notification typemessage
- the message to setI_CmsNotificationWidget.show(org.opencms.gwt.client.ui.CmsNotification.Mode, org.opencms.gwt.client.ui.CmsNotification.Type, java.lang.String)
protected abstract void animateHide()
protected abstract void animateShow()
protected A_CmsAnimation getAnimation()
protected abstract java.lang.String getMessage()
protected void hide(boolean force)
force
- if true
will also hide the message if mode is fixedprotected abstract void onHideComplete()
protected abstract void onShowComplete()
protected void setAnimation(A_CmsAnimation animation)
animation
- the animationprotected abstract void setClassForType(CmsNotification.Type type)
type
- the message typeprotected abstract void setMessage(java.lang.String message)
message
- the notification message