Class ListItem

java.lang.Object
org.patternfly.component.SubComponent<elemental2.dom.HTMLLIElement, ListItem>
org.patternfly.component.list.ListItem
All Implemented Interfaces:
ElementAttributeMethods<elemental2.dom.HTMLLIElement, ListItem>, ElementClassListMethods<elemental2.dom.HTMLLIElement, ListItem>, ElementConsumerMethods<elemental2.dom.HTMLLIElement, ListItem>, ElementContainerMethods<elemental2.dom.HTMLLIElement, ListItem>, ElementEventMethods<elemental2.dom.HTMLLIElement, ListItem>, ElementIdMethods<elemental2.dom.HTMLLIElement, ListItem>, ElementQueryMethods<elemental2.dom.HTMLLIElement>, ElementTextMethods<elemental2.dom.HTMLLIElement, ListItem>, HTMLElementAttributeMethods<elemental2.dom.HTMLLIElement, ListItem>, HTMLElementDataMethods<elemental2.dom.HTMLLIElement, ListItem>, HTMLElementStyleMethods<elemental2.dom.HTMLLIElement, ListItem>, HTMLElementVisibilityMethods<elemental2.dom.HTMLLIElement, ListItem>, IsElement<elemental2.dom.HTMLLIElement>, TypedBuilder<elemental2.dom.HTMLLIElement, ListItem>, ComponentIcon<elemental2.dom.HTMLLIElement, ListItem>, ComponentContext<elemental2.dom.HTMLLIElement, ListItem>, HasIdentifier<elemental2.dom.HTMLLIElement, ListItem>, OuiaSupport<elemental2.dom.HTMLLIElement, ListItem>

public class ListItem extends SubComponent<elemental2.dom.HTMLLIElement, ListItem> implements ComponentContext<elemental2.dom.HTMLLIElement, ListItem>, ComponentIcon<elemental2.dom.HTMLLIElement, ListItem>, ElementTextMethods<elemental2.dom.HTMLLIElement, ListItem>, HasIdentifier<elemental2.dom.HTMLLIElement, ListItem>
A list item within a List component.
  • Field Details

  • Method Details

    • listItem

      public static ListItem listItem()
    • listItem

      public static ListItem listItem(String identifier)
    • icon

      public ListItem icon(elemental2.dom.Element icon)
      Specified by:
      icon in interface ComponentIcon<elemental2.dom.HTMLLIElement, ListItem>
    • removeIcon

      public ListItem removeIcon()
      Specified by:
      removeIcon in interface ComponentIcon<elemental2.dom.HTMLLIElement, ListItem>
    • store

      public <T> ListItem store(String key, T value)
      Description copied from interface: ComponentContext
      Stores a value associated with a key.
      Specified by:
      store in interface ComponentContext<elemental2.dom.HTMLLIElement, ListItem>
      Type Parameters:
      T - the type of the value being stored
      Parameters:
      key - the key associated with the value
      value - the value to be stored
    • that

      public ListItem that()
      Specified by:
      that in interface TypedBuilder<elemental2.dom.HTMLLIElement, ListItem>
    • identifier

      public String identifier()
      Description copied from interface: HasIdentifier
      Retrieves the identifier associated with this component.
      Specified by:
      identifier in interface HasIdentifier<elemental2.dom.HTMLLIElement, ListItem>
      Returns:
      the identifier of the component
    • has

      public boolean has(String key)
      Description copied from interface: ComponentContext
      Determines whether a value is stored with the specified key.
      Specified by:
      has in interface ComponentContext<elemental2.dom.HTMLLIElement, ListItem>
      Parameters:
      key - the key to check
      Returns:
      true if a value is stored with the specified key, false otherwise
    • get

      public <T> T get(String key)
      Description copied from interface: ComponentContext
      Retrieves the value associated with the given key from the ComponentContext.
      Specified by:
      get in interface ComponentContext<elemental2.dom.HTMLLIElement, ListItem>
      Type Parameters:
      T - the type of the value being retrieved
      Parameters:
      key - the key associated with the value
      Returns:
      the value associated with the key, or null if no value is found