Package org.jboss.hal.ballroom
Class EmptyState
- java.lang.Object
-
- org.jboss.hal.ballroom.EmptyState
-
- All Implemented Interfaces:
org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>
public class EmptyState extends Object implements org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>
Element to be used when a view is empty because no objects exists and you want to guide the user to perform specific actions.Constraints for the primary and secondary actions are encoded as
data-constraintattributes. Please make sure to callElementGuard.processElements(AuthorisationDecision, String)when the empty state element is added to the DOM.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEmptyState.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description elemental2.dom.HTMLElementelement()voidsetDescription(com.google.gwt.safehtml.shared.SafeHtml description)voidsetHeader(String header)voidsetIcon(String icon)voidsetPrimaryAction(String title, org.jboss.hal.spi.Callback callback)voidshowPrimaryAction(boolean visible)
-
-
-
Method Detail
-
setIcon
public void setIcon(String icon)
-
setHeader
public void setHeader(String header)
-
setDescription
public void setDescription(com.google.gwt.safehtml.shared.SafeHtml description)
-
setPrimaryAction
public void setPrimaryAction(String title, org.jboss.hal.spi.Callback callback)
-
showPrimaryAction
public void showPrimaryAction(boolean visible)
-
element
public elemental2.dom.HTMLElement element()
- Specified by:
elementin interfaceorg.jboss.elemento.IsElement<elemental2.dom.HTMLElement>
-
-