Class GridSection
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.HtmlComponent
-
- org.linkki.core.vaadin.component.section.LinkkiSection
-
- org.linkki.core.vaadin.component.section.GridSection
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,Serializable,HasCaption
public class GridSection extends LinkkiSection
A section containing a single table. This kind of section is created by thePmoBasedSectionFactoryif the presentation model object is aContainerPmo.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.linkki.core.vaadin.component.section.LinkkiSection
CLASS_SECTION_SECONDARY_CAPTION, CLASS_SECTION_STYLE_CARD, THEME_VARIANT_FORM, THEME_VARIANT_HORIZONTAL
-
-
Constructor Summary
Constructors Constructor Description GridSection(String caption, boolean closeable)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.vaadin.flow.component.grid.Grid<?>getGrid()Returns the table shown in the section.com.vaadin.flow.component.grid.Grid<?>getSectionContent()Deprecated.UsegetGrid()instead.voidsetColumnVisible(String columnKey, boolean visible)Use this method to setGrid.Columnvisibility afterGridSectionhas already been created.voidsetGrid(com.vaadin.flow.component.grid.Grid<?> grid)StringtoString()-
Methods inherited from class org.linkki.core.vaadin.component.section.LinkkiSection
addHeaderButton, addHeaderComponent, addRightHeaderComponent, close, getCaption, getContentWrapper, getHeaderComponents, isClosed, isOpen, open, setCaption, switchOpenStatus
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
-
-
-
-
Constructor Detail
-
GridSection
public GridSection(String caption, boolean closeable)
-
-
Method Detail
-
getGrid
public com.vaadin.flow.component.grid.Grid<?> getGrid()
Returns the table shown in the section.
-
setGrid
public void setGrid(com.vaadin.flow.component.grid.Grid<?> grid)
-
setColumnVisible
public void setColumnVisible(String columnKey, boolean visible)
Use this method to setGrid.Columnvisibility afterGridSectionhas already been created. This method will also update the checked state of thecolumnsMenuItemcorrectly.- Parameters:
columnKey- Thekeyof theGrid.Columnto set the visible statevisible-truesets theGrid.Columnand the it'sMenuItemto checked, otherwisefalseand unchecked
-
getSectionContent
@Deprecated(since="2.0.0") public com.vaadin.flow.component.grid.Grid<?> getSectionContent()
Deprecated.UsegetGrid()instead.- Overrides:
getSectionContentin classLinkkiSection- Returns:
- the content of this section
-
-