Class Tbody
java.lang.Object
org.patternfly.component.SubComponent<elemental2.dom.HTMLTableSectionElement, Tbody>
org.patternfly.component.table.Tbody
- All Implemented Interfaces:
Iterable<Tr>, ElementAttributeMethods<elemental2.dom.HTMLTableSectionElement, Tbody>, ElementClassListMethods<elemental2.dom.HTMLTableSectionElement, Tbody>, ElementConsumerMethods<elemental2.dom.HTMLTableSectionElement, Tbody>, ElementContainerMethods<elemental2.dom.HTMLTableSectionElement, Tbody>, ElementEventMethods<elemental2.dom.HTMLTableSectionElement, Tbody>, ElementIdMethods<elemental2.dom.HTMLTableSectionElement, Tbody>, ElementQueryMethods<elemental2.dom.HTMLTableSectionElement>, HTMLElementAttributeMethods<elemental2.dom.HTMLTableSectionElement, Tbody>, HTMLElementDataMethods<elemental2.dom.HTMLTableSectionElement, Tbody>, HTMLElementStyleMethods<elemental2.dom.HTMLTableSectionElement, Tbody>, HTMLElementVisibilityMethods<elemental2.dom.HTMLTableSectionElement, Tbody>, IsElement<elemental2.dom.HTMLTableSectionElement>, TypedBuilder<elemental2.dom.HTMLTableSectionElement, Tbody>, ComponentContext<elemental2.dom.HTMLTableSectionElement, Tbody>, HasIdentifier<elemental2.dom.HTMLTableSectionElement, Tbody>, HasItems<elemental2.dom.HTMLTableSectionElement, Tbody, Tr>, Ordered<elemental2.dom.HTMLTableSectionElement, Tbody, Tr>, OuiaSupport<elemental2.dom.HTMLTableSectionElement, Tbody>
public class Tbody
extends SubComponent<elemental2.dom.HTMLTableSectionElement, Tbody>
implements ComponentContext<elemental2.dom.HTMLTableSectionElement, Tbody>, HasIdentifier<elemental2.dom.HTMLTableSectionElement, Tbody>, Ordered<elemental2.dom.HTMLTableSectionElement, Tbody, Tr>
A table body within a
Table component.-
Field Summary
FieldsFields inherited from interface Ordered
DATA_ORDER -
Method Summary
Modifier and TypeMethodDescriptionAdds an item to the component.Same asHasItems.addItem(HasIdentifier)<T> Tbodyvoidclear()Clears all items from the component.voidRetrieves the comparator used for ordering elements in a component.booleanChecks whether the component contains an item associated with the given identifier.empty(int colSpan, EmptyState emptyState) boolean<T> TRetrieves the value associated with the given key from the ComponentContext.booleanDetermines whether a value is stored with the specified key.inthashCode()Retrieves the identifier associated with this component.booleanisEmpty()Checks whether the collection of items in the component is empty.Retrieves the item associated with the specified identifier from the component.iterator()onAdd(AddItemHandler<Tbody, Tr> onAdd) Registers a callback to be invoked whenever a new item is added to the component.onRemove(RemoveItemHandler<Tbody, Tr> onRemove) Registers a callback to be invoked whenever an item is removed from the component.onUpdate(UpdateItemHandler<Tbody, Tr> onUpdate) Registers a callback to be invoked whenever an item is updated in the component.ordered(Comparator<Tr> comparator) Orders the elements contained in the component using the specified comparator.voidremoveItem(String identifier) Removes an item from the component based on the provided identifier.intsize()Retrieves the total number of items currently contained in the component.<T> TbodyStores a value associated with a key.static Tbodytbody()Factory method to create a new instance of this component.static Tbodythat()voidupdateItem(Tr item) Updates an existing item in the component.Methods inherited from class SubComponent
element, ouiaComponentType, registerSubComponentMethods inherited from interface ComponentContext
get, getMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface HasItems
addItem, addItems, items, replaceItemElement, updateItem, updateItemMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hiddenMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Ordered
addOrdered, defaultOrder, orderedMethods inherited from interface OuiaSupport
initOuia, ouiaId, ouiaSafe, ouiaTransition
-
Field Details
-
SUB_COMPONENT_ID
- See Also:
-
SUB_COMPONENT_NAME
- See Also:
-
-
Method Details
-
tbody
Factory method to create a new instance of this component. -
tbody
-
equals
-
hashCode
-
addRows
-
addRow
Same asHasItems.addItem(HasIdentifier) -
add
Description copied from interface:HasItemsAdds an item to the component. -
ordered
Description copied from interface:OrderedOrders the elements contained in the component using the specified comparator. The comparator determines the order in which the elements are arranged. -
store
Description copied from interface:ComponentContextStores a value associated with a key.- Specified by:
storein interfaceComponentContext<elemental2.dom.HTMLTableSectionElement, Tbody>- Type Parameters:
T- the type of the value being stored- Parameters:
key- the key associated with the valuevalue- the value to be stored
-
that
- Specified by:
thatin interfaceTypedBuilder<elemental2.dom.HTMLTableSectionElement, Tbody>
-
onAdd
Description copied from interface:HasItemsRegisters a callback to be invoked whenever a new item is added to the component.- Specified by:
onAddin interfaceHasItems<elemental2.dom.HTMLTableSectionElement, Tbody, Tr>- Parameters:
onAdd- aAddItemHandlerthat takes the builder instance and the item being added as arguments- Returns:
- the builder instance after adding the callback
-
onUpdate
Description copied from interface:HasItemsRegisters a callback to be invoked whenever an item is updated in the component.- Specified by:
onUpdatein interfaceHasItems<elemental2.dom.HTMLTableSectionElement, Tbody, Tr>- Parameters:
onUpdate- aUpdateItemHandlerthat takes the component, the previous state of the item, and the updated state of the item as arguments- Returns:
- the builder instance after adding the callback
-
onRemove
Description copied from interface:HasItemsRegisters a callback to be invoked whenever an item is removed from the component.- Specified by:
onRemovein interfaceHasItems<elemental2.dom.HTMLTableSectionElement, Tbody, Tr>- Parameters:
onRemove- aRemoveItemHandlerthat takes the component and the item being removed as arguments- Returns:
- the builder instance after adding the callback
-
identifier
Description copied from interface:HasIdentifierRetrieves the identifier associated with this component.- Specified by:
identifierin interfaceHasIdentifier<elemental2.dom.HTMLTableSectionElement, Tbody>- Returns:
- the identifier of the component
-
has
Description copied from interface:ComponentContextDetermines whether a value is stored with the specified key.- Specified by:
hasin interfaceComponentContext<elemental2.dom.HTMLTableSectionElement, Tbody>- Parameters:
key- the key to check- Returns:
- true if a value is stored with the specified key, false otherwise
-
get
Description copied from interface:ComponentContextRetrieves the value associated with the given key from the ComponentContext.- Specified by:
getin interfaceComponentContext<elemental2.dom.HTMLTableSectionElement, Tbody>- 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
-
comparator
Description copied from interface:OrderedRetrieves the comparator used for ordering elements in a component.- Specified by:
comparatorin interfaceOrdered<elemental2.dom.HTMLTableSectionElement, Tbody, Tr>- Returns:
- the comparator that determines the order of elements
-
empty
-
clearEmpty
public void clearEmpty() -
iterator
-
size
-
isEmpty
-
contains
Description copied from interface:HasItemsChecks whether the component contains an item associated with the given identifier. -
item
Description copied from interface:HasItemsRetrieves the item associated with the specified identifier from the component. -
updateItem
-
removeItem
Description copied from interface:HasItemsRemoves an item from the component based on the provided identifier.- Specified by:
removeItemin interfaceHasItems<elemental2.dom.HTMLTableSectionElement, Tbody, Tr>- Parameters:
identifier- the identifier of the item to be removed
-
clear
public void clear()Description copied from interface:HasItemsClears all items from the component. This method removes any existing items within the component, leaving it empty. Any associated or registered callbacks related to the removal of items may be invoked as part of this operation.
-