Class AbstractGridComponentWrapper<ROW>
- java.lang.Object
-
- org.linkki.core.ui.wrapper.VaadinComponentWrapper
-
- org.linkki.core.ui.creation.table.AbstractGridComponentWrapper<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>
- Direct Known Subclasses:
GridComponentWrapper,TreeGridComponentWrapper
public abstract class AbstractGridComponentWrapper<ROW> extends VaadinComponentWrapper implements ColumnBasedComponentWrapper<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 AbstractGridComponentWrapper(com.vaadin.flow.component.grid.Grid<ROW> grid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.component.grid.Grid<ROW>getComponent()voidsetLabel(String labelText)voidsetPageLength(int pageLength)Sets thepage sizeof the grid.voidupdateFooter(Optional<TableFooterPmo> footerPmo)Updates the footer in all columns.-
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, setItems
-
Methods inherited from interface org.linkki.core.binding.wrapper.ComponentWrapper
postUpdate, registerBinding, setEnabled, setId, setTooltip, setValidationMessages, setVisible
-
-
-
-
Constructor Detail
-
AbstractGridComponentWrapper
public AbstractGridComponentWrapper(com.vaadin.flow.component.grid.Grid<ROW> grid)
-
-
Method Detail
-
getComponent
public com.vaadin.flow.component.grid.Grid<ROW> getComponent()
- Specified by:
getComponentin interfaceComponentWrapper- Overrides:
getComponentin classVaadinComponentWrapper
-
setLabel
public void setLabel(String labelText)
- Specified by:
setLabelin interfaceComponentWrapper
-
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>
-
setPageLength
public void setPageLength(int pageLength)
Sets thepage sizeof the grid.- Specified by:
setPageLengthin interfaceColumnBasedComponentWrapper<ROW>
-
-