Class GridComponentWrapper<ROW>
- java.lang.Object
-
- org.linkki.core.ui.wrapper.VaadinComponentWrapper
-
- org.linkki.core.ui.creation.table.AbstractGridComponentWrapper<ROW>
-
- org.linkki.core.ui.creation.table.GridComponentWrapper<ROW>
-
- Type Parameters:
ROW- a class annotated with linkki annotations used as PMO for a row in the table
- All Implemented Interfaces:
Serializable,ComponentWrapper,ColumnBasedComponentWrapper<ROW>
public class GridComponentWrapper<ROW> extends AbstractGridComponentWrapper<ROW>
Wraps a vaadinGrid.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.linkki.core.defaults.columnbased.ColumnBasedComponentWrapper
COLUMN_BASED_TYPE
-
-
Constructor Summary
Constructors Constructor Description GridComponentWrapper(com.vaadin.flow.component.grid.Grid<ROW> grid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetItems(List<ROW> newItems)Sets the items displayed in theGridby updating the items in the data provider if the given items are not the ones currently displayed.voidsetLabel(String labelText)voidupdateFooter(Optional<TableFooterPmo> footerPmo)Updates the footer in all columns.-
Methods inherited from class org.linkki.core.ui.creation.table.AbstractGridComponentWrapper
getComponent, setPageLength
-
Methods inherited from class org.linkki.core.ui.wrapper.VaadinComponentWrapper
getType, registerBinding, setEnabled, setId, setTooltip, setValidationMessages, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.linkki.core.defaults.columnbased.ColumnBasedComponentWrapper
getType
-
Methods inherited from interface org.linkki.core.binding.wrapper.ComponentWrapper
postUpdate, registerBinding, setEnabled, setId, setTooltip, setValidationMessages, setVisible
-
-
-
-
Constructor Detail
-
GridComponentWrapper
public GridComponentWrapper(com.vaadin.flow.component.grid.Grid<ROW> grid)
-
-
Method Detail
-
setLabel
public void setLabel(String labelText)
- Specified by:
setLabelin interfaceComponentWrapper- Overrides:
setLabelin classAbstractGridComponentWrapper<ROW>
-
updateFooter
public void updateFooter(Optional<TableFooterPmo> footerPmo)
Updates the footer in all columns. If the givenOptional<TableFooterPmo> isempty, no footer will be visible, otherwise the the column footers will be set according toTableFooterPmo.getFooterText(String).- Specified by:
updateFooterin interfaceColumnBasedComponentWrapper<ROW>- Overrides:
updateFooterin classAbstractGridComponentWrapper<ROW>
-
-