Class TemplateItem

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

public class TemplateItem extends SubComponent<elemental2.dom.HTMLElement, TemplateItem> implements ComponentContext<elemental2.dom.HTMLElement, TemplateItem>, HasIdentifier<elemental2.dom.HTMLElement, TemplateItem>
A selectable item within a
invalid reference
Template
component.
  • Field Details

  • Method Details

    • templateItem

      public static TemplateItem templateItem(String identifier)
    • store

      public <T> TemplateItem 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.HTMLElement, TemplateItem>
      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 TemplateItem that()
      Specified by:
      that in interface TypedBuilder<elemental2.dom.HTMLElement, TemplateItem>
    • onClick

      public TemplateItem onClick(ComponentHandler<TemplateItem> actionHandler)
    • identifier

      public String identifier()
      Description copied from interface: HasIdentifier
      Retrieves the identifier associated with this component.
      Specified by:
      identifier in interface HasIdentifier<elemental2.dom.HTMLElement, TemplateItem>
      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.HTMLElement, TemplateItem>
      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.HTMLElement, TemplateItem>
      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