|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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.ComplexPanel
com.google.gwt.user.client.ui.HTMLPanel
com.github.gwtbootstrap.client.ui.base.HtmlWidget
com.github.gwtbootstrap.client.ui.base.AlertBase
public abstract class AlertBase
Base class for Alert widgets.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel |
---|
IndexedPanel.ForIsWidget |
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
---|
HasWidgets.ForIsWidget |
Field Summary |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
AlertBase()
Initializes an Alert with a close icon. |
|
AlertBase(AlertType type)
Initializes an Alert of given Type with a close icon. |
|
AlertBase(String html)
Initializes an Alert with a inner HTML. |
|
AlertBase(String html,
boolean hasClose)
Initializes an Alert with an optional close icon. |
Method Summary | |
---|---|
HandlerRegistration |
addClosedHandler(ClosedHandler handler)
Adds a ClosedHandler to the widget. |
HandlerRegistration |
addCloseHandler(CloseHandler handler)
Adds a CloseHandler to the widget. |
void |
clear()
Delete the whole content of the Alert. |
void |
close()
Close this alert. |
boolean |
getAnimation()
Gets whether the widget is animated. |
protected HasWidgets |
getHeadingContainer()
Gets heading's container widget |
String |
getHTML()
|
String |
getText()
|
boolean |
hasClose()
has Close |
protected void |
onAttach()
|
protected void |
onClose()
This method is called immediately when the widget's close method is executed. |
protected void |
onClosed()
This method is called once the widget is completely closed. |
protected void |
onLoad()
|
void |
setAnimation(boolean animated)
Sets whether the Alert should be animated. |
void |
setClose(boolean hasClose)
Sets whether the Alert has a close icon or not. |
void |
setHeading(String text)
Sets the text of an optional heading. |
void |
setHTML(String html)
|
void |
setText(String text)
|
void |
setType(AlertType type)
Sets the type of the Alert. |
Methods inherited from class com.github.gwtbootstrap.client.ui.base.HtmlWidget |
---|
addStyle, removeStyle, setHideOn, setShowOn, setStyle |
Methods inherited from class com.google.gwt.user.client.ui.HTMLPanel |
---|
add, add, add, addAndReplaceElement, addAndReplaceElement, addAndReplaceElement, addAndReplaceElement, addAndReplaceElement, createUniqueId, getElementById, wrap |
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
---|
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
---|
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, remove |
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, onBrowserEvent, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AlertBase()
public AlertBase(String html)
html
- inner HTMLpublic AlertBase(String html, boolean hasClose)
html
- inner HTMLhasClose
- whether the Alert should have a close icon.public AlertBase(AlertType type)
type
- of the AlertMethod Detail |
---|
public void setClose(boolean hasClose)
hasClose
- false
if you don't want to have a close icon.
Default: true
protected void onAttach()
onAttach
in class Widget
public boolean hasClose()
protected HasWidgets getHeadingContainer()
protected void onClose()
protected void onClosed()
public void setType(AlertType type)
setType
in interface HasType<AlertType>
type
- public void setHeading(String text)
text
- the new headingpublic void setAnimation(boolean animated)
setAnimation
in interface IsAnimated
animated
- true
if the Alert should fade out. Default:
false
public boolean getAnimation()
getAnimation
in interface IsAnimated
true
if the widget is animatedpublic void clear()
clear
in interface HasWidgets
clear
in class Panel
public String getText()
public void setText(String text)
public String getHTML()
public void setHTML(String html)
public void close()
protected void onLoad()
onLoad
in class Widget
public HandlerRegistration addCloseHandler(CloseHandler handler)
CloseHandler
to the widget.
addCloseHandler
in interface HasCloseHandlers
handler
- the handler
HandlerRegistration
used to remove this handlerpublic HandlerRegistration addClosedHandler(ClosedHandler handler)
ClosedHandler
to the widget.
addClosedHandler
in interface HasCloseHandlers
handler
- the handler
HandlerRegistration
used to remove this handler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |