Class EasyGrid<T>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<GRID>
com.flowingcode.vaadin.addons.easygrid.EasyGridWrapper<T,Grid<T>>
com.flowingcode.vaadin.addons.easygrid.EasyGrid<T>
- Type Parameters:
T- the grid bean type
- All Implemented Interfaces:
AttachNotifier,BlurNotifier<Grid<T>>,DetachNotifier,Focusable<Grid<T>>,FocusNotifier<Grid<T>>,HasElement,HasEnabled,HasSize,HasStyle,HasTheme,HasDataGenerators<T>,HasDataView<T,,Void, GridDataView<T>> HasLazyDataView<T,,Void, GridLazyDataView<T>> HasListDataView<T,,GridListDataView<T>> Serializable
Concrete
EasyGridWrapper that always wraps a plain Grid, creating it
internally. This is the standard entry point for using the Easy Grid Add-on.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.flow.component.BlurNotifier
BlurNotifier.BlurEvent<C extends Component>Nested classes/interfaces inherited from interface com.vaadin.flow.component.FocusNotifier
FocusNotifier.FocusEvent<C extends Component> -
Constructor Summary
ConstructorsConstructorDescriptionCreates anEasyGridthat discovers all top-level bean properties and adds a column for each.Creates anEasyGridfor the given bean type, optionally auto-creating columns.Creates anEasyGridthat adds columns for the specified properties in order. -
Method Summary
Modifier and TypeMethodDescriptionvoidPasses the wrapped grid to the given customizer, allowing direct configuration of the grid.Returns the wrapped grid.Methods inherited from class com.flowingcode.vaadin.addons.easygrid.EasyGridWrapper
addColumn, addColumn, addColumns, createEasyColumn, getColumn, hideColumns, setColumnOrder, typeConfigurationMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.BlurNotifier
addBlurListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focus, getTabIndex, setTabIndexMethods inherited from interface com.vaadin.flow.component.FocusNotifier
addFocusListenerMethods inherited from interface com.vaadin.flow.data.provider.HasDataGenerators
addDataGeneratorMethods inherited from interface com.vaadin.flow.data.provider.HasDataView
getGenericDataView, setItems, setItemsMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.data.provider.HasLazyDataView
getLazyDataView, setItems, setItems, setItemsMethods inherited from interface com.vaadin.flow.data.provider.HasListDataView
getListDataView, setItems, setItems, setItemsMethods 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, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
-
Constructor Details
-
EasyGrid
Creates anEasyGridthat discovers all top-level bean properties and adds a column for each.- Parameters:
beanType- the bean type to use, notnull- Throws:
NullPointerException- ifbeanTypeisnull
-
EasyGrid
Creates anEasyGridfor the given bean type, optionally auto-creating columns.- Parameters:
beanType- the bean type to use, notnullautoCreateColumns- whentrue, columns are created automatically for the properties of the bean type- Throws:
NullPointerException- ifbeanTypeisnull
-
EasyGrid
Creates anEasyGridthat adds columns for the specified properties in order.- Parameters:
beanType- the bean type to use, notnullpropertyNames- the names of the properties for which columns are created- Throws:
NullPointerException- ifbeanTypeorpropertyNamesisnull
-
-
Method Details
-
initContent
- Overrides:
initContentin classComposite<GRID extends Grid<T>>
-
getWrappedGrid
Returns the wrapped grid.- Returns:
- the wrapped grid, never
null
-
configure
Passes the wrapped grid to the given customizer, allowing direct configuration of the grid.- Parameters:
customizer- a consumer that configures the wrapped grid
-