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.DebugIdImplEnabled
IndexedPanel.ForIsWidget
HasWidgets.ForIsWidget
DEBUG_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, setText
addStyle, removeStyle, setHideOn, setShowOn, setStyle
add, add, add, addAndReplaceElement, addAndReplaceElement, addAndReplaceElement, addAndReplaceElement, addAndReplaceElement, createUniqueId, getElementById, wrap
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, 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, resolvePotentialElement, 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
fireEvent
public 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 AlertBase
text
- the new headingCopyright © 2012-2014 gwtbootstrap. All Rights Reserved.