Class Cell<B extends TypedBuilder<elemental2.dom.HTMLTableCellElement, B>>

java.lang.Object
org.patternfly.component.SubComponent<elemental2.dom.HTMLTableCellElement, B>
org.patternfly.component.table.Cell<B>
All Implemented Interfaces:
ElementAttributeMethods<elemental2.dom.HTMLTableCellElement, B>, ElementClassListMethods<elemental2.dom.HTMLTableCellElement, B>, ElementConsumerMethods<elemental2.dom.HTMLTableCellElement, B>, ElementContainerMethods<elemental2.dom.HTMLTableCellElement, B>, ElementEventMethods<elemental2.dom.HTMLTableCellElement, B>, ElementIdMethods<elemental2.dom.HTMLTableCellElement, B>, ElementQueryMethods<elemental2.dom.HTMLTableCellElement>, ElementTextMethods<elemental2.dom.HTMLTableCellElement, B>, HTMLElementAttributeMethods<elemental2.dom.HTMLTableCellElement, B>, HTMLElementDataMethods<elemental2.dom.HTMLTableCellElement, B>, HTMLElementStyleMethods<elemental2.dom.HTMLTableCellElement, B>, HTMLElementVisibilityMethods<elemental2.dom.HTMLTableCellElement, B>, IsElement<elemental2.dom.HTMLTableCellElement>, TypedBuilder<elemental2.dom.HTMLTableCellElement, B>, ComponentContext<elemental2.dom.HTMLTableCellElement, B>, HasIdentifier<elemental2.dom.HTMLTableCellElement, B>, OuiaSupport<elemental2.dom.HTMLTableCellElement, B>, Modifiers.Center<elemental2.dom.HTMLTableCellElement, B>
Direct Known Subclasses:
Td, Th, TitleCell

public abstract class Cell<B extends TypedBuilder<elemental2.dom.HTMLTableCellElement, B>> extends SubComponent<elemental2.dom.HTMLTableCellElement, B> implements Modifiers.Center<elemental2.dom.HTMLTableCellElement, B>, ComponentContext<elemental2.dom.HTMLTableCellElement, B>, ElementTextMethods<elemental2.dom.HTMLTableCellElement, B>, HasIdentifier<elemental2.dom.HTMLTableCellElement, B>
Base class for table cells in a Table component.
  • Method Details

    • addText

      public B addText(TableText text)
    • colSpan

      public B colSpan(int columns)
    • width

      public B width(Width width)
    • wrap

      public B wrap(Wrap wrap)
    • store

      public <T> B 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.HTMLTableCellElement, B extends TypedBuilder<elemental2.dom.HTMLTableCellElement, B>>
      Type Parameters:
      T - the type of the value being stored
      Parameters:
      key - the key associated with the value
      value - the value to be stored
    • identifier

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