Class GraniteAlert
java.lang.Object
com.vaadin.flow.component.Component
com.flowingcode.vaadin.addons.granitealert.GraniteAlert
- All Implemented Interfaces:
AttachNotifier,DetachNotifier,HasComponents,HasElement,HasEnabled,HasStyle,Serializable
@Tag("granite-alert-mixin")
@JsModule("./granite-alert/granite-alert.js") @JsModule("./granite-alert-mixin/granite-alert-mixin.js")
public class GraniteAlert
extends Component
implements HasComponents, HasStyle
Wrapper for
granite-alert Polymer element- Author:
- Javier Godoy / Flowing Code
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe level of the alert -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLevel()Returns the level of the alertvoidsetCompact(boolean value) Set thecompactattribute of the element.voidSet the level of the alertMethods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
GraniteAlert
public GraniteAlert()
-
-
Method Details
-
setLevel
Set the level of the alert -
getLevel
Returns the level of the alert -
setCompact
public void setCompact(boolean value) Set thecompactattribute of the element.
-