public class AlertBlock extends AlertBase
Alert. It has a dedicated
heading in an extra row.
<b:AlertBlock heading="Warning." type="ERROR">Something went wrong...</AlertBlock>
All parameters are optional and map to the class's setters.
Alert,
Bootstrap
documentationUIObject.DebugIdImpl, UIObject.DebugIdImplEnabledIndexedPanel.ForIsWidgetHasWidgets.ForIsWidgetDEBUG_ID_PREFIX| Constructor and Description |
|---|
AlertBlock()
Creates an empty widget with a close icon.
|
AlertBlock(AlertType type)
Creates an Alert with a close icon and the given style.
|
AlertBlock(boolean hasClose)
Initializes the widget with an optional close icon.
|
AlertBlock(String html) |
| Modifier and Type | Method and Description |
|---|---|
void |
setHeading(String text)
Sets the text of an optional heading.
|
void |
setType(AlertType type)
Sets the type of the Alert.
|
addClosedHandler, addCloseHandler, clear, close, getAnimation, getHeadingContainer, getHTML, getText, hasClose, onAttach, onClose, onClosed, setAnimation, setClose, setHTML, setTextaddStyle, removeStyle, setHideOn, setShowOn, setStyleadd, add, add, addAndReplaceElement, addAndReplaceElement, addAndReplaceElement, addAndReplaceElement, addAndReplaceElement, createUniqueId, getElementById, wrapadd, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, 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, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfireEventpublic AlertBlock()
public AlertBlock(String html)
public AlertBlock(boolean hasClose)
hasClose - whether the Alert should have a close icon.public AlertBlock(AlertType type)
type - of the Alertpublic void setHeading(String text)
<h4> tags
and placed above the text.setHeading in class AlertBasetext - the new headingCopyright © 2012-2014 gwtbootstrap. All Rights Reserved.