com.github.gwtbootstrap.client.ui
Class AlertBlock
java.lang.Object
com.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
com.github.gwtbootstrap.client.ui.AlertBlock
- All Implemented Interfaces:
- HasStyle, HasType<AlertType>, IsAnimated, IsResponsive, HasCloseHandlers, HasAttachHandlers, HasHandlers, EventListener, HasVisibility, HasWidgets, HasWidgets.ForIsWidget, IndexedPanel, IndexedPanel.ForIsWidget, IsWidget, Iterable<Widget>
public class AlertBlock
- extends AlertBase
Alert block widget with more padding than Alert
. It has a dedicated
heading in an extra row.
UiBinder Usage:
<b:AlertBlock heading="Warning." type="ERROR">Something went wrong...</AlertBlock>
All parameters are optional and map to the class's setters.
- Since:
- 2.0.4.0
- Author:
- Dominik Mayer
- See Also:
Alert
,
Bootstrap
documentation
Methods inherited from class com.github.gwtbootstrap.client.ui.base.AlertBase |
addClosedHandler, addCloseHandler, clear, close, getAnimation, getHeadingContainer, getHTML, getText, hasClose, onAttach, onClose, onClosed, onLoad, setAnimation, setClose, setHTML, setText |
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.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 |
AlertBlock
public AlertBlock()
- Creates an empty widget with a close icon.
AlertBlock
public AlertBlock(String html)
AlertBlock
public AlertBlock(boolean hasClose)
- Initializes the widget with an optional close icon.
- Parameters:
hasClose
- whether the Alert should have a close icon.
AlertBlock
public AlertBlock(AlertType type)
- Creates an Alert with a close icon and the given style.
- Parameters:
type
- of the Alert
setType
public void setType(AlertType type)
- Sets the type of the Alert.
- Specified by:
setType
in interface HasType<AlertType>
- Overrides:
setType
in class AlertBase
setHeading
public void setHeading(String text)
- Sets the text of an optional heading. It is wrapped in
<h4>
tags
and placed above the text.
- Overrides:
setHeading
in class AlertBase
- Parameters:
text
- the new heading
Copyright © 2012 gwtbootstrap. All Rights Reserved.