Class Tbody
java.lang.Object
org.patternfly.component.SubComponent<HTMLTableSectionElement, Tbody>
org.patternfly.component.table.Tbody
- All Implemented Interfaces:
Iterable<Tr>,ElementAttributeMethods<HTMLTableSectionElement, Tbody>,ElementClassListMethods<HTMLTableSectionElement, Tbody>,ElementConsumerMethods<HTMLTableSectionElement, Tbody>,ElementContainerMethods<HTMLTableSectionElement, Tbody>,ElementEventMethods<HTMLTableSectionElement, Tbody>,ElementIdMethods<HTMLTableSectionElement, Tbody>,ElementQueryMethods<HTMLTableSectionElement>,HTMLElementAttributeMethods<HTMLTableSectionElement, Tbody>,HTMLElementDataMethods<HTMLTableSectionElement, Tbody>,HTMLElementStyleMethods<HTMLTableSectionElement, Tbody>,HTMLElementVisibilityMethods<HTMLTableSectionElement, Tbody>,IsElement<HTMLTableSectionElement>,TypedBuilder<HTMLTableSectionElement, Tbody>,HasItems<HTMLTableSectionElement, Tbody, Tr>,Ordered<HTMLTableSectionElement, Tbody, Tr>
public class Tbody
extends SubComponent<HTMLTableSectionElement, Tbody>
implements Ordered<HTMLTableSectionElement, Tbody, Tr>
-
Field Summary
FieldsFields inherited from interface org.patternfly.component.Ordered
DATA_ORDER -
Method Summary
Modifier and TypeMethodDescriptionSame asHasItems.addItem(Object)<T> Tbodyvoidclear()voidRetrieves the comparator used for ordering elements in a component.booleanempty(int colSpan, EmptyState emptyState) booleanisEmpty()iterator()onAdd(BiConsumer<Tbody, Tr> onAdd) onRemove(BiConsumer<Tbody, Tr> onRemove) ordered(Comparator<Tr> comparator) Orders the elements contained in the component using the specified comparator.voidremoveItem(String identifier) intsize()static Tbodytbody()Factory method to create a new instance of this component.that()Methods inherited from class org.patternfly.component.SubComponent
element, registerSubComponentMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.elemento.ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface org.jboss.elemento.ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface org.jboss.elemento.ElementConsumerMethods
apply, runMethods inherited from interface org.jboss.elemento.ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.ElementEventMethods
on, on, onMethods inherited from interface org.jboss.elemento.ElementIdMethods
id, uniqueIdMethods inherited from interface org.jboss.elemento.ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface org.jboss.elemento.HTMLElementAttributeMethods
titleMethods inherited from interface org.jboss.elemento.HTMLElementDataMethods
dataMethods inherited from interface org.jboss.elemento.HTMLElementStyleMethods
style, style, style, style, style, styleMethods inherited from interface org.jboss.elemento.HTMLElementVisibilityMethods
hiddenMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.patternfly.component.Ordered
addOrdered, defaultOrder, ordered
-
Field Details
-
SUB_COMPONENT_NAME
- See Also:
-
-
Method Details
-
tbody
Factory method to create a new instance of this component. -
addRows
-
addRow
Same asHasItems.addItem(Object) -
add
-
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.- Specified by:
orderedin interfaceOrdered<HTMLTableSectionElement, Tbody, Tr>- Parameters:
comparator- the comparator used to define the ordering of the elements- Returns:
- the builder instance with the elements ordered
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLTableSectionElement, Tbody>
-
onAdd
- Specified by:
onAddin interfaceHasItems<HTMLTableSectionElement, Tbody, Tr>
-
onRemove
- Specified by:
onRemovein interfaceHasItems<HTMLTableSectionElement, Tbody, Tr>
-
comparator
Description copied from interface:OrderedRetrieves the comparator used for ordering elements in a component.- Specified by:
comparatorin interfaceOrdered<HTMLTableSectionElement, Tbody, Tr>- Returns:
- the comparator that determines the order of elements
-
empty
-
clearEmpty
public void clearEmpty() -
iterator
-
size
public int size()- Specified by:
sizein interfaceHasItems<HTMLTableSectionElement, Tbody, Tr>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceHasItems<HTMLTableSectionElement, Tbody, Tr>
-
contains
-
item
-
removeItem
- Specified by:
removeItemin interfaceHasItems<HTMLTableSectionElement, Tbody, Tr>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<HTMLTableSectionElement, Tbody, Tr>
-