Package org.patternfly.components
Class DataTable<T>
- java.lang.Object
-
- org.patternfly.components.BaseComponent<elemental2.dom.HTMLTableElement,DataTable<T>>
-
- org.patternfly.components.DataTable<T>
-
- All Implemented Interfaces:
Container<elemental2.dom.HTMLTableElement,DataTable<T>>,Finder<elemental2.dom.HTMLTableElement>,HasElement<elemental2.dom.HTMLTableElement,DataTable<T>>,HasHTMLElement<elemental2.dom.HTMLTableElement,DataTable<T>>,IsElement<elemental2.dom.HTMLTableElement>,TypedBuilder<elemental2.dom.HTMLTableElement,DataTable<T>>,Component,Display<T>
public class DataTable<T> extends BaseComponent<elemental2.dom.HTMLTableElement,DataTable<T>> implements Display<T>
PatternFly data table.The data table does not manage data by itself. Use a
DataProviderand add the data table as a display to the data provider:DataProvider dataProvider = ...; DataTable table = ...; dataProvider.addDisplay(table); dataProvider.update(...);
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDataTable.BodyDisplay<T>static classDataTable.Column<T>static interfaceDataTable.CompoundDisplay<T>static interfaceDataTable.ExpandableDisplay<T>static interfaceDataTable.HeadDisplay
-
Method Summary
-
Methods inherited from class org.patternfly.components.BaseComponent
componentType, element
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.elemento.Container
add, add, addAll, addAll, addAll, addAll, addAll
-
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, css, id, id, innerHtml, on, textContent, toggle, toggle, toggle
-
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, title
-
-
-
-
Method Detail
-
dataTable
public static <T> DataTable<T> dataTable(DataProvider<T> dataProvider)
-
dataTable
public static <T> DataTable<T> dataTable(DataProvider<T> dataProvider, String caption)
-
expandColumn
public static <T> DataTable.Column<T> expandColumn()
-
checkboxColumn
public static <T> DataTable.Column<T> checkboxColumn()
-
iconColumn
public static <T> DataTable.Column<T> iconColumn(Icon icon)
-
iconColumn
public static <T> DataTable.Column<T> iconColumn(DataTable.BodyDisplay<T> bodyDisplay)
-
actionsColumn
public static <T> DataTable.Column<T> actionsColumn(DataTable.BodyDisplay<T> bodyDisplay)
-
column
public static <T> DataTable.Column<T> column(String name, DataTable.BodyDisplay<T> bodyDisplay)
-
column
public static <T> DataTable.Column<T> column(String name, Comparator<T> comparator, DataTable.BodyDisplay<T> bodyDisplay)
-
column
public static <T> DataTable.Column<T> column(String name, DataTable.HeadDisplay headDisplay, DataTable.BodyDisplay<T> bodyDisplay)
-
that
public DataTable<T> that()
- Specified by:
thatin interfaceTypedBuilder<elemental2.dom.HTMLTableElement,DataTable<T>>
-
add
public DataTable<T> add(DataTable.Column<T> column)
-
expandableRow
public DataTable<T> expandableRow(DataTable.ExpandableDisplay<T> expandableDisplay)
-
expandableRow
public DataTable<T> expandableRow(boolean fullWidth, DataTable.ExpandableDisplay<T> expandableDisplay)
-
expandableRow
public DataTable<T> expandableRow(boolean fullWidth, boolean noPadding, DataTable.ExpandableDisplay<T> expandableDisplay)
-
expandableRow
public DataTable<T> expandableRow(Predicate<T> expandable, DataTable.ExpandableDisplay<T> expandableDisplay)
-
expandableRow
public DataTable<T> expandableRow(Predicate<T> expandable, boolean fullWidth, DataTable.ExpandableDisplay<T> expandableDisplay)
-
expandableRow
public DataTable<T> expandableRow(Predicate<T> expandable, boolean fullWidth, boolean noPadding, DataTable.ExpandableDisplay<T> expandableDisplay)
-
updateSelection
public void updateSelection(SelectionInfo<T> selectionInfo)
- Specified by:
updateSelectionin interfaceDisplay<T>
-
updateSortInfo
public void updateSortInfo(SortInfo<T> sortInfo)
- Specified by:
updateSortInfoin interfaceDisplay<T>
-
-