Class Tab

java.lang.Object
org.patternfly.component.SubComponent<elemental2.dom.HTMLElement, Tab>
org.patternfly.component.tabs.Tab
All Implemented Interfaces:
ElementAttributeMethods<elemental2.dom.HTMLElement, Tab>, ElementClassListMethods<elemental2.dom.HTMLElement, Tab>, ElementConsumerMethods<elemental2.dom.HTMLElement, Tab>, ElementContainerMethods<elemental2.dom.HTMLElement, Tab>, ElementEventMethods<elemental2.dom.HTMLElement, Tab>, ElementIdMethods<elemental2.dom.HTMLElement, Tab>, ElementQueryMethods<elemental2.dom.HTMLElement>, ElementTextDelegate<elemental2.dom.HTMLElement, Tab>, ElementTextMethods<elemental2.dom.HTMLElement, Tab>, HTMLElementAttributeMethods<elemental2.dom.HTMLElement, Tab>, HTMLElementDataMethods<elemental2.dom.HTMLElement, Tab>, HTMLElementStyleMethods<elemental2.dom.HTMLElement, Tab>, HTMLElementVisibilityMethods<elemental2.dom.HTMLElement, Tab>, IsElement<elemental2.dom.HTMLElement>, TypedBuilder<elemental2.dom.HTMLElement, Tab>, Closeable<elemental2.dom.HTMLElement, Tab>, ComponentIcon<elemental2.dom.HTMLElement, Tab>, ComponentContext<elemental2.dom.HTMLElement, Tab>, HasIdentifier<elemental2.dom.HTMLElement, Tab>, OuiaSupport<elemental2.dom.HTMLElement, Tab>, Modifiers.Disabled<elemental2.dom.HTMLElement, Tab>

public class Tab extends SubComponent<elemental2.dom.HTMLElement, Tab> implements Closeable<elemental2.dom.HTMLElement, Tab>, ComponentContext<elemental2.dom.HTMLElement, Tab>, ComponentIcon<elemental2.dom.HTMLElement, Tab>, Modifiers.Disabled<elemental2.dom.HTMLElement, Tab>, ElementTextDelegate<elemental2.dom.HTMLElement, Tab>, HasIdentifier<elemental2.dom.HTMLElement, Tab>
A tab within a Tabs component.
  • Field Details

  • Method Details

    • tab

      public static Tab tab(String identifier)
    • tab

      public static Tab tab(String identifier, String text)
    • tab

      public static <E extends elemental2.dom.HTMLElement> Tab tab(HTMLContainerBuilder<E> builder, String identifier, String text)
    • textDelegate

      public elemental2.dom.Element textDelegate()
      Specified by:
      textDelegate in interface ElementTextDelegate<elemental2.dom.HTMLElement, Tab>
    • addContent

      public Tab addContent(TabContent content)
    • add

      public Tab add(TabContent content)
    • addContent

      public Tab addContent(Function<Tabs, elemental2.promise.Promise<TabContent>> content)
    • add

      public Tab add(Function<Tabs, elemental2.promise.Promise<TabContent>> content)
    • closeable

      public Tab closeable()
    • closeable

      public Tab closeable(CloseHandler<Tab> closeHandler)
    • icon

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

      public Tab removeIcon()
      Specified by:
      removeIcon in interface ComponentIcon<elemental2.dom.HTMLElement, Tab>
    • disabled

      public Tab disabled(boolean disabled)
      Description copied from interface: Modifiers.Disabled
      Adds/removes modifier(disabled)
      Specified by:
      disabled in interface Modifiers.Disabled<elemental2.dom.HTMLElement, Tab>
    • ariaDisabled

      public Tab ariaDisabled()
    • ariaDisabled

      public Tab ariaDisabled(boolean disabled)
    • hidden

      public Tab hidden(boolean hidden)
      Specified by:
      hidden in interface HTMLElementVisibilityMethods<elemental2.dom.HTMLElement, Tab>
    • href

      public Tab href(String href)
    • help

      public Tab help(Popover help)
    • selected

      public Tab selected()
    • tooltip

      public Tab tooltip(Tooltip tooltip)
    • store

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

      public Tab ariaLabel(String label)
    • ariaCloseLabel

      public Tab ariaCloseLabel(String label)
    • ariaHelpLabel

      public Tab ariaHelpLabel(String label)
    • onClose

      public Tab onClose(CloseHandler<Tab> closeHandler)
      Specified by:
      onClose in interface Closeable<elemental2.dom.HTMLElement, Tab>
    • close

      public void close(elemental2.dom.Event event, boolean fireEvent)
      Specified by:
      close in interface Closeable<elemental2.dom.HTMLElement, Tab>
    • hidden

      public boolean hidden()
    • tabs

      public Tabs tabs()
      Returns the enclosing Tabs component. Only valid after the tabs component has been attached!
    • 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, Tab>
      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, Tab>
      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, Tab>
      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