Package org.jboss.hal.ballroom.listview
Interface ItemDisplay<T>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default List<ItemAction<T>>actions()Defines the action(s) available for the item.default elemental2.dom.HTMLElementelement()If this method returns an element !=nullthis element is used to display the item.default StringgetAdditionalInfo()default Iterable<elemental2.dom.HTMLElement>getAdditionalInfoElements()default com.google.gwt.safehtml.shared.SafeHtmlgetAdditionalInfoHtml()default StringgetDescription()default Iterable<elemental2.dom.HTMLElement>getDescriptionElements()default com.google.gwt.safehtml.shared.SafeHtmlgetDescriptionHtml()default intgetDescriptionLength()The length of the description content.default StringgetId()An unique id for this item.default intgetMaxDescriptionLength()The maximum allowed length of the description content to be displayed by default.default elemental2.dom.HTMLElementgetStatusElement()default StringgetStatusIcon()default Iterable<elemental2.dom.HTMLElement>getTitleElements()default com.google.gwt.safehtml.shared.SafeHtmlgetTitleHtml()default booleanhideDescriptionWhenLarge()
-
-
-
Method Detail
-
getId
default String getId()
An unique id for this item. If you use aDataProvidermake sure to use the same IDs.- Returns:
- an id based on
HasTitle.getTitle()
-
getStatusIcon
default String getStatusIcon()
-
getStatusElement
default elemental2.dom.HTMLElement getStatusElement()
-
getTitleHtml
default com.google.gwt.safehtml.shared.SafeHtml getTitleHtml()
-
getTitleElements
default Iterable<elemental2.dom.HTMLElement> getTitleElements()
-
getDescription
default String getDescription()
-
getDescriptionHtml
default com.google.gwt.safehtml.shared.SafeHtml getDescriptionHtml()
-
getDescriptionElements
default Iterable<elemental2.dom.HTMLElement> getDescriptionElements()
-
getAdditionalInfo
default String getAdditionalInfo()
-
getAdditionalInfoHtml
default com.google.gwt.safehtml.shared.SafeHtml getAdditionalInfoHtml()
-
getAdditionalInfoElements
default Iterable<elemental2.dom.HTMLElement> getAdditionalInfoElements()
-
getDescriptionLength
default int getDescriptionLength()
The length of the description content. Override this method to control when the display content
-
getMaxDescriptionLength
default int getMaxDescriptionLength()
The maximum allowed length of the description content to be displayed by default.
-
hideDescriptionWhenLarge
default boolean hideDescriptionWhenLarge()
-
actions
default List<ItemAction<T>> actions()
Defines the action(s) available for the item.- Returns:
- an empty map by default.
-
element
default elemental2.dom.HTMLElement element()
If this method returns an element !=nullthis element is used to display the item.- Specified by:
elementin interfaceorg.jboss.elemento.IsElement<T>- Returns:
nullby default
-
-