Interface ItemDisplay<T>

  • All Superinterfaces:
    HasTitle, org.jboss.elemento.IsElement

    public interface ItemDisplay<T>
    extends org.jboss.elemento.IsElement, HasTitle
    Controls the layout of a list view item.
    • Method Detail

      • 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 != null this element is used to display the item.
        Specified by:
        element in interface org.jboss.elemento.IsElement<T>
        Returns:
        null by default