Class BrowserColumnPreferenceStorage

java.lang.Object
org.vaadin.addons.antlerflow.grid.columns.storage.BrowserColumnPreferenceStorage
All Implemented Interfaces:
Serializable, ColumnPreferenceStorage

public final class BrowserColumnPreferenceStorage extends Object implements ColumnPreferenceStorage
Stores preferences in the browser's Web Storage (localStorage or sessionStorage) as {"version":1,"columns":{"<id>":true|false}}. Use ColumnPreferenceStorage.localStorage() or ColumnPreferenceStorage.sessionStorage().

Storage errors in the browser (private mode, quota, corrupted JSON) are handled there: a failed read yields an empty preference and a failed write leaves the choice in effect for the current view only.

See Also: