Class LegacyTwinColGrid<T>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.orderedlayout.VerticalLayout
com.flowingcode.vaadin.addons.twincolgrid.TwinColGrid<T>
com.flowingcode.vaadin.addons.twincolgrid.LegacyTwinColGrid<T>
- All Implemented Interfaces:
AttachNotifier,ClickNotifier<VerticalLayout>,DetachNotifier,HasComponents,HasElement,HasEnabled,HasOrderedComponents<VerticalLayout>,HasSize,HasStyle,HasValidation,HasValue<HasValue.ValueChangeEvent<Set<T>>,,Set<T>> HasValueAndElement<HasValue.ValueChangeEvent<Set<T>>,,Set<T>> FlexComponent<VerticalLayout>,ThemableLayout,Serializable
Deprecated.
Implementation of
TwinColGrid with deprecated methods from version 2.9.0.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.flowingcode.vaadin.addons.twincolgrid.TwinColGrid
TwinColGrid.OrientationNested classes/interfaces inherited from interface com.vaadin.flow.component.orderedlayout.FlexComponent
FlexComponent.Alignment, FlexComponent.JustifyContentModeNested classes/interfaces inherited from interface com.vaadin.flow.component.HasValue
HasValue.ValueChangeEvent<V extends Object>, HasValue.ValueChangeListener<E extends HasValue.ValueChangeEvent<?>> -
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.Use getAvailableGrid()protected ListDataProvider<T>Deprecated.Use getAvailableGrid().getDataProvider()Deprecated.Use getSelectionGrid()protected ListDataProvider<T>Deprecated.Use getSelectionGrid().getDataProvider() -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructs a new TwinColGrid with an emptyListDataProvider.LegacyTwinColGrid(@NonNull Grid<T> availableGrid, @NonNull Grid<T> selectionGrid) Deprecated.Constructs a new empty TwinColGrid, using the specified grids for each side.LegacyTwinColGrid(ListDataProvider<T> dataProvider, String caption) Deprecated.LegacyTwinColGrid(String caption) Deprecated.Deprecated.LegacyTwinColGrid(String caption, Supplier<Grid<T>> gridSupplier) Deprecated.LegacyTwinColGrid(Collection<T> options, String caption) Deprecated.LegacyTwinColGrid(Supplier<Grid<T>> gridSupplier) Deprecated.Constructs a new empty TwinColGrid, using the specified supplier for instantiating both grids. -
Method Summary
Modifier and TypeMethodDescriptionaddColumn(ItemLabelGenerator<T> itemLabelGenerator, String header) Deprecated.UseTwinColGrid.addColumn(ItemLabelGenerator).setHeader(header)addFilterableColumn(ItemLabelGenerator<T> itemLabelGenerator, SerializableFunction<T, String> filterableValue, String header, String filterPlaceholder, boolean enableClearButton) Deprecated.UseaddFilterableColumn(itemLabelGenerator, filterableValue)and configure the other properties on the returnedTwinColumn.addFilterableColumn(ItemLabelGenerator<T> itemLabelGenerator, SerializableFunction<T, String> filterableValue, String header, String filterPlaceholder, boolean enableClearButton, String key) Deprecated.UseaddFilterableColumn(itemLabelGenerator, filterableValue)and configure the other properties on the returnedTwinColumn.addFilterableColumn(ItemLabelGenerator<T> itemLabelGenerator, String header, String filterPlaceholder, boolean enableClearButton) Deprecated.UseaddFilterableColumn(itemLabelGenerator)and configure the other properties on the returnedTwinColumn.addFilterableColumn(ItemLabelGenerator<T> itemLabelGenerator, String header, String filterPlaceholder, boolean enableClearButton, String key) Deprecated.UseaddFilterableColumn(itemLabelGenerator)and configure the other properties on the returnedTwinColumn.voidaddLeftGridClassName(String classname) Deprecated.UsegetAvailableGrid().addClassName(classname)voidaddLeftGridSelectionListener(SelectionListener<Grid<T>, T> listener) Deprecated.UsegetAvailableGrid().addSelectionListener(listener);voidaddRightGridClassName(String classname) Deprecated.UsegetSelectionGrid().addClassName(classname)voidaddRightGridSelectionListener(SelectionListener<Grid<T>, T> listener) Deprecated.UsegetSelectionGrid().addSelectionListener(listener);addSortableColumn(ItemLabelGenerator<T> itemLabelGenerator, Comparator<T> comparator, String header) Deprecated.UseTwinColGrid.addColumn(ItemLabelGenerator).setHeader(header).setComparator(comparator)addSortableColumn(ItemLabelGenerator<T> itemLabelGenerator, Comparator<T> comparator, String header, String key) Deprecated.UseTwinColGrid.addColumn(ItemLabelGenerator).setHeader(header).setComparator(comparator).setKey(key)Deprecated.Deprecated.Deprecated.Deprecated.voidremoveLeftGridClassName(String classname) Deprecated.UsegetAvailableGrid().removeClassName(classname)voidremoveRightGridClassName(String classname) Deprecated.UsegetSelectionGrid().removeClassName(classname)protected voidsetDataProvider(ListDataProvider<T> dataProvider) Deprecated.voidsetLeftGridClassName(String classname) Deprecated.UsegetAvailableGrid().setClassName(classname)voidsetRightGridClassName(String classname) Deprecated.UsegetSelectionGrid().setClassName(classname)withLeftColumnCaption(String caption) Deprecated.withRightColumnCaption(String caption) Deprecated.Methods inherited from class com.flowingcode.vaadin.addons.twincolgrid.TwinColGrid
addColumn, addFilterableColumn, addFilterableColumn, addValueChangeListener, asList, clearAll, createFirstHeaderRow, forEachGrid, getAvailableGrid, getAvailableGridCaption, getCaption, getEmptyValue, getErrorMessage, getOrientation, getSelectionGrid, getSelectionGridCaption, getValue, isAutoResize, isInvalid, isReadOnly, isRequiredIndicatorVisible, isSelectionGridReorderingAllowed, selectRowOnClick, setAutoResize, setCaption, setErrorMessage, setInvalid, setItems, setItems, setMoveItemsByDoubleClick, setReadOnly, setRequiredIndicatorVisible, setSelectionGridReorderingAllowed, setValue, withAvailableGridCaption, withDragAndDropSupport, withOrientation, withoutAddAllButton, withoutAddButton, withoutRemoveAllButton, withoutRemoveButton, withSelectionGridCaption, withSelectionGridReordering, withSizeFullMethods inherited from class com.vaadin.flow.component.orderedlayout.VerticalLayout
addAndExpand, getAlignItems, getAlignSelf, getDefaultHorizontalComponentAlignment, getHorizontalComponentAlignment, setAlignItems, setAlignSelf, setDefaultHorizontalComponentAlignment, setHorizontalComponentAlignment, setPadding, setSpacingMethods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, 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.ClickNotifier
addClickListener, addClickShortcutMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.orderedlayout.FlexComponent
expand, getFlexGrow, getJustifyContentMode, replace, setFlexGrow, setJustifyContentModeMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAllMethods 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.component.HasOrderedComponents
getChildren, getComponentAt, getComponentCount, indexOfMethods 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.HasValue
clear, getOptionalValue, isEmptyMethods inherited from interface com.vaadin.flow.component.orderedlayout.ThemableLayout
getBoxSizing, getThemeList, isMargin, isPadding, isSpacing, setBoxSizing, setMargin
-
Field Details
-
leftGrid
Deprecated.Use getAvailableGrid() -
rightGrid
Deprecated.Use getSelectionGrid() -
leftGridDataProvider
Deprecated.Use getAvailableGrid().getDataProvider() -
rightGridDataProvider
Deprecated.Use getSelectionGrid().getDataProvider()
-
-
Constructor Details
-
LegacyTwinColGrid
public LegacyTwinColGrid()Deprecated.Constructs a new TwinColGrid with an emptyListDataProvider. -
LegacyTwinColGrid
Deprecated.Constructs a new empty TwinColGrid, using the specified supplier for instantiating both grids.- Parameters:
gridSupplier- a supplier for instantiating both grids
-
LegacyTwinColGrid
public LegacyTwinColGrid(@NonNull @NonNull Grid<T> availableGrid, @NonNull @NonNull Grid<T> selectionGrid) Deprecated.Constructs a new empty TwinColGrid, using the specified grids for each side.- Parameters:
availableGrid- the grid that contains the available itemsselectionGrid- the grid that contains the selected items
-
LegacyTwinColGrid
Deprecated.Constructs a new empty TwinColGrid with caption- Parameters:
caption- the component caption
-
LegacyTwinColGrid
Deprecated.Constructs a new TwinColGrid with data provider for options.- Parameters:
dataProvider- the data provider, notnullcaption- the component caption
-
LegacyTwinColGrid
Deprecated.Constructs a new empty TwinColGrid, using the specified supplier for instantiating both grids.- Parameters:
caption- the component captiongridSupplier- a supplier for instantiating both grids
-
LegacyTwinColGrid
@Deprecated public LegacyTwinColGrid(String caption, @NonNull @NonNull Grid<T> availableGrid, @NonNull @NonNull Grid<T> selectionGrid) Deprecated.Constructs a new empty TwinColGrid, using the specified grids for each side.- Parameters:
caption- the component captionavailableGrid- the grid that contains the available itemsselectionGrid- the grid that contains the selected items
-
LegacyTwinColGrid
Deprecated.Constructs a new TwinColGrid with caption and the given options.- Parameters:
caption- the caption to set, can benulloptions- the options, cannot benull
-
-
Method Details
-
setLeftGridClassName
Deprecated.UsegetAvailableGrid().setClassName(classname) -
addLeftGridClassName
Deprecated.UsegetAvailableGrid().addClassName(classname) -
removeLeftGridClassName
Deprecated.UsegetAvailableGrid().removeClassName(classname) -
setRightGridClassName
Deprecated.UsegetSelectionGrid().setClassName(classname) -
addRightGridClassName
Deprecated.UsegetSelectionGrid().addClassName(classname) -
removeRightGridClassName
Deprecated.UsegetSelectionGrid().removeClassName(classname) -
withRightColumnCaption
Deprecated.Sets the text shown above the grid with the available items.nullclears the caption.- Parameters:
caption- The text to show,nullto clear- Returns:
- this instance
-
withLeftColumnCaption
Deprecated.Sets the text shown above the grid with the available items.nullclears the caption.- Parameters:
caption- The text to show,nullto clear- Returns:
- this instance
-
getRightColumnCaption
Deprecated.Returns the text shown above the right column.- Returns:
- The text shown or
nullif not set.
-
getLeftColumnCaption
Deprecated.Returns the text shown above the left column.- Returns:
- The text shown or
nullif not set.
-
addLeftGridSelectionListener
Deprecated.UsegetAvailableGrid().addSelectionListener(listener); -
addRightGridSelectionListener
Deprecated.UsegetSelectionGrid().addSelectionListener(listener); -
getLeftGrid
Deprecated.UseTwinColGrid.getAvailableGrid(). Depending on the orientation, the "left grid" may not be located at the left side.Return the left grid component. -
getRightGrid
Deprecated.UseTwinColGrid.getSelectionGrid(). Depending on the orientation, the "right grid" may not be located at the right side.Return the right grid component. -
setDataProvider
Deprecated.- Overrides:
setDataProviderin classTwinColGrid<T>
-
addColumn
@Deprecated public LegacyTwinColGrid<T> addColumn(ItemLabelGenerator<T> itemLabelGenerator, String header) Deprecated.UseTwinColGrid.addColumn(ItemLabelGenerator).setHeader(header)Adds a new text column to thisGridwith a value provider. The column will use aTextRenderer. The value is converted to a String using the provideditemLabelGenerator.- Parameters:
itemLabelGenerator- the value providerheader- the column header- Returns:
- this instance
-
addSortableColumn
@Deprecated public LegacyTwinColGrid<T> addSortableColumn(ItemLabelGenerator<T> itemLabelGenerator, Comparator<T> comparator, String header) Deprecated.UseTwinColGrid.addColumn(ItemLabelGenerator).setHeader(header).setComparator(comparator)Adds a new sortable text column to thisGridwith a value provider. The column will use aTextRenderer. The value is converted to a String using the provideditemLabelGenerator.- Parameters:
itemLabelGenerator- the value providercomparator- the in-memory comparatorheader- the column header- Returns:
- this instance
-
addSortableColumn
@Deprecated public LegacyTwinColGrid<T> addSortableColumn(ItemLabelGenerator<T> itemLabelGenerator, Comparator<T> comparator, String header, String key) Deprecated.UseTwinColGrid.addColumn(ItemLabelGenerator).setHeader(header).setComparator(comparator).setKey(key)Adds a new sortable text column to thisGridwith a value provider. The column will use aTextRenderer. The value is converted to a String using the provideditemLabelGenerator.- Parameters:
itemLabelGenerator- the value providercomparator- the in-memory comparatorheader- the column headerkey- the column key- Returns:
- this instance
-
addFilterableColumn
@Deprecated public LegacyTwinColGrid<T> addFilterableColumn(ItemLabelGenerator<T> itemLabelGenerator, SerializableFunction<T, String> filterableValue, String header, String filterPlaceholder, boolean enableClearButton, String key) Deprecated.UseaddFilterableColumn(itemLabelGenerator, filterableValue)and configure the other properties on the returnedTwinColumn.Adds a new filterable text column to thisTwinColGrid, with a key. The value is converted to a String using the provideditemLabelGeneratorand matches are computed against the result offilterableValue. -
addFilterableColumn
@Deprecated public LegacyTwinColGrid<T> addFilterableColumn(ItemLabelGenerator<T> itemLabelGenerator, String header, String filterPlaceholder, boolean enableClearButton) Deprecated.UseaddFilterableColumn(itemLabelGenerator)and configure the other properties on the returnedTwinColumn.Adds a new filterable text column to thisTwinColGrid, with no key. The value is converted to a String using the provideditemLabelGeneratorand matches are computed against the result of the sameitemLabelGenerator. -
addFilterableColumn
@Deprecated public LegacyTwinColGrid<T> addFilterableColumn(ItemLabelGenerator<T> itemLabelGenerator, SerializableFunction<T, String> filterableValue, String header, String filterPlaceholder, boolean enableClearButton) Deprecated.UseaddFilterableColumn(itemLabelGenerator, filterableValue)and configure the other properties on the returnedTwinColumn.Adds a new filterable text column to thisTwinColGrid, with no key. The value is converted to a String using the provideditemLabelGeneratorand matches are computed against the result offilterableValue. -
addFilterableColumn
@Deprecated public LegacyTwinColGrid<T> addFilterableColumn(ItemLabelGenerator<T> itemLabelGenerator, String header, String filterPlaceholder, boolean enableClearButton, String key) Deprecated.UseaddFilterableColumn(itemLabelGenerator)and configure the other properties on the returnedTwinColumn.Adds a new filterable text column to thisTwinColGrid, with a key. The value is converted to a String using the provideditemLabelGeneratorand matches are computed against the result of the sameitemLabelGenerator.
-