Class Table
java.lang.Object
org.patternfly.component.BaseComponent<HTMLTableElement, Table>
org.patternfly.component.table.Table
- All Implemented Interfaces:
Attachable, ElementAttributeMethods<HTMLTableElement, Table>, ElementClassListMethods<HTMLTableElement, Table>, ElementConsumerMethods<HTMLTableElement, Table>, ElementContainerMethods<HTMLTableElement, Table>, ElementEventMethods<HTMLTableElement, Table>, ElementIdMethods<HTMLTableElement, Table>, ElementQueryMethods<HTMLTableElement>, HTMLElementAttributeMethods<HTMLTableElement, Table>, HTMLElementDataMethods<HTMLTableElement, Table>, HTMLElementStyleMethods<HTMLTableElement, Table>, HTMLElementVisibilityMethods<HTMLTableElement, Table>, IsElement<HTMLTableElement>, TypedBuilder<HTMLTableElement, Table>, Component, Modifiers.Compact<HTMLTableElement, Table>
public class Table
extends BaseComponent<HTMLTableElement, Table>
implements Modifiers.Compact<HTMLTableElement, Table>, Attachable
A table is used to display large data sets that can be easily laid out in a simple grid with column headers.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddCaption(TableCaption caption) voidattach(MutationRecord mutationRecord) gridBreakpoint(GridBreakpoint breakpoint) Same as borders(true)noBorders(boolean borders) Adds/removes modifier(noBorderRows)onMultiSelect(MultiSelectHandler<Table, Tr> selectHandler) onSingleSelect(SelectHandler<Tr> selectHandler) voidreset()voidvoidvoidvoidvoidvoidvoidvoidselectAll(boolean fireEvent) selectionMode(SelectionMode selectionMode) Sets the selection mode for the table.voidvoidselectNone(boolean fireEvent) static Tabletable()static Tabletbody()that()thead()treeViewGridBreakpoint(TreeViewGridBreakpoint breakpoint) Methods inherited from class BaseComponent
componentType, element, registerComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Attachable
detachMethods 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 HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hiddenMethods inherited from interface Modifiers.Compact
compact, compact
-
Method Details
-
table
-
table
-
attach
- Specified by:
attachin interfaceAttachable
-
addCaption
-
addHead
-
addBody
-
add
-
noBorders
Same as borders(true) -
noBorders
Adds/removes modifier(noBorderRows) -
gridBreakpoint
-
selectionMode
Sets the selection mode for the table. If not set, the table does not support selection.- Parameters:
selectionMode- theSelectionModethat specifies how rows are selected in the table. Supported modes include:single- Only a single item can be selected at any time.multi- Multiple items can be selected simultaneously.
- Returns:
- the current
Tableinstance to allow for method chaining.
-
treeViewGridBreakpoint
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLTableElement, Table>
-
ariaLabel
-
onSingleSelect
-
onMultiSelect
-
reset
public void reset() -
select
-
select
-
select
-
select
-
select
-
select
-
selectAll
public void selectAll() -
selectAll
public void selectAll(boolean fireEvent) -
selectNone
public void selectNone() -
selectNone
public void selectNone(boolean fireEvent) -
selectedItems
-
thead
-
tbody
-