public class AlertViewElement
extends com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElement
com.foreach.across.modules.web.ui.ViewElement.Wither<T extends com.foreach.across.modules.web.ui.ViewElement>, com.foreach.across.modules.web.ui.ViewElement.WitherGetter<T extends com.foreach.across.modules.web.ui.ViewElement,U>, com.foreach.across.modules.web.ui.ViewElement.WitherRemover<T extends com.foreach.across.modules.web.ui.ViewElement>, com.foreach.across.modules.web.ui.ViewElement.WitherSetter<T extends com.foreach.across.modules.web.ui.ViewElement>| Modifier and Type | Field and Description |
|---|---|
static String |
CSS_LINK
CSS class to add to a link inside an alert box.
|
| Constructor and Description |
|---|
AlertViewElement() |
| Modifier and Type | Method and Description |
|---|---|
AlertViewElement |
addAttributes(Map<String,Object> attributes) |
AlertViewElement |
addChild(com.foreach.across.modules.web.ui.ViewElement element) |
AlertViewElement |
addChildren(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements) |
AlertViewElement |
addCssClass(String... cssClass) |
AlertViewElement |
addFirstChild(com.foreach.across.modules.web.ui.ViewElement element) |
AlertViewElement |
apply(Consumer<com.foreach.across.modules.web.ui.elements.ContainerViewElement> consumer) |
<U extends com.foreach.across.modules.web.ui.ViewElement> |
applyUnsafe(Consumer<U> consumer) |
AlertViewElement |
clearChildren() |
List<com.foreach.across.modules.web.ui.ViewElement> |
getChildren() |
boolean |
hasChildren() |
boolean |
isDismissible() |
AlertViewElement |
remove(com.foreach.across.modules.web.ui.ViewElement.WitherRemover... functions) |
AlertViewElement |
removeAttribute(String attributeName) |
AlertViewElement |
removeCssClass(String... cssClass) |
AlertViewElement |
set(com.foreach.across.modules.web.ui.ViewElement.WitherSetter... setters) |
AlertViewElement |
setAttribute(String attributeName,
Object attributeValue) |
AlertViewElement |
setAttributes(Map<String,Object> attributes) |
AlertViewElement |
setCustomTemplate(String customTemplate) |
AlertViewElement |
setDismissible(boolean dismissible)
Should the alert be dismissible or not? If so a button will be added.
|
protected AlertViewElement |
setElementType(String elementType) |
AlertViewElement |
setHtmlId(String htmlId) |
AlertViewElement |
setName(String name) |
AlertViewElement |
setStyle(Style style) |
protected AlertViewElement |
setTagName(String tagName) |
AlertViewElement |
setText(String text) |
getTextget, getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClass, returnIfTypeelementStream, find, find, findAll, findAll, findAll, findOrSelf, findOrSelf, flatStream, getCustomTemplate, getElementType, getName, removeAllFromTree, removeChild, removeFromTree, removeFromTreepublic static final String CSS_LINK
public AlertViewElement setStyle(Style style)
public AlertViewElement setDismissible(boolean dismissible)
dismissible - should the button be addedpublic boolean isDismissible()
public boolean hasChildren()
hasChildren in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic List<com.foreach.across.modules.web.ui.ViewElement> getChildren()
getChildren in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementprotected AlertViewElement setTagName(String tagName)
setTagName in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic AlertViewElement setHtmlId(String htmlId)
setHtmlId in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementsetHtmlId in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic AlertViewElement addCssClass(String... cssClass)
addCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementaddCssClass in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic AlertViewElement removeCssClass(String... cssClass)
removeCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementremoveCssClass in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic AlertViewElement setAttributes(Map<String,Object> attributes)
setAttributes in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementsetAttributes in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic AlertViewElement setAttribute(String attributeName, Object attributeValue)
setAttribute in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementsetAttribute in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic AlertViewElement addAttributes(Map<String,Object> attributes)
addAttributes in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementaddAttributes in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic AlertViewElement removeAttribute(String attributeName)
removeAttribute in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementremoveAttribute in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic AlertViewElement setName(String name)
setName in interface com.foreach.across.modules.web.ui.MutableViewElementsetName in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic AlertViewElement setCustomTemplate(String customTemplate)
setCustomTemplate in interface com.foreach.across.modules.web.ui.MutableViewElementsetCustomTemplate in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementprotected AlertViewElement setElementType(String elementType)
setElementType in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic AlertViewElement addChild(com.foreach.across.modules.web.ui.ViewElement element)
addChild in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic AlertViewElement addChildren(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements)
addChildren in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic AlertViewElement addFirstChild(com.foreach.across.modules.web.ui.ViewElement element)
addFirstChild in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic AlertViewElement clearChildren()
clearChildren in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic AlertViewElement apply(Consumer<com.foreach.across.modules.web.ui.elements.ContainerViewElement> consumer)
apply in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic <U extends com.foreach.across.modules.web.ui.ViewElement> AlertViewElement applyUnsafe(Consumer<U> consumer)
applyUnsafe in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic AlertViewElement setText(String text)
setText in interface com.foreach.across.modules.web.ui.elements.ConfigurableTextViewElementsetText in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic AlertViewElement set(com.foreach.across.modules.web.ui.ViewElement.WitherSetter... setters)
set in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementset in interface com.foreach.across.modules.web.ui.MutableViewElementset in interface com.foreach.across.modules.web.ui.ViewElementset in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementpublic AlertViewElement remove(com.foreach.across.modules.web.ui.ViewElement.WitherRemover... functions)
remove in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementremove in interface com.foreach.across.modules.web.ui.MutableViewElementremove in interface com.foreach.across.modules.web.ui.ViewElementremove in class com.foreach.across.modules.web.ui.elements.AbstractTextNodeViewElementCopyright © 2020. All rights reserved.