Class ToolbarItem

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

public class ToolbarItem extends SubComponent<elemental2.dom.HTMLDivElement, ToolbarItem> implements ComponentContext<elemental2.dom.HTMLDivElement, ToolbarItem>, HasIdentifier<elemental2.dom.HTMLDivElement, ToolbarItem>
Container for a toolbar item.
  • Field Details

  • Method Details

    • toolbarItem

      public static ToolbarItem toolbarItem()
    • toolbarItem

      public static ToolbarItem toolbarItem(ToolbarItemType type)
    • toolbarItem

      public static ToolbarItem toolbarItem(String identifier)
    • toolbarItem

      public static ToolbarItem toolbarItem(String identifier, ToolbarItemType type)
    • overflow

      public ToolbarItem overflow()
    • store

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

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