Interface PersistTableStateService
-
- All Known Implementing Classes:
PersistTableStateServiceImpl
public interface PersistTableStateService
A service which persists the state of a table.- Author:
- Johannes Faltermeier
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
PersistTableStateService.PersistTableStateServiceVAttachment
Marker interface required by theregisterAdditionalControls(VControl...)
method.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<VAttachment>
getPersistedState(VControl control)
This methods gives access to previsouly persisted state attachments.void
registerAdditionalControls(VControl... controls)
Use this method if a nonVTableControl
VControl
renders a table and wishes to persist the state.
-
-
-
Method Detail
-
registerAdditionalControls
void registerAdditionalControls(VControl... controls)
Use this method if a non
VTableControl
VControl
renders a table and wishes to persist the state. The service will look for anVAttachment
with thePersistTableStateService.PersistTableStateServiceVAttachment
marker interface and will persist this attachment for the given control.This method may be called multiple times.
- Parameters:
controls
- the additional controls to registers.
-
getPersistedState
Optional<VAttachment> getPersistedState(VControl control)
This methods gives access to previsouly persisted state attachments.- Parameters:
control
- the control- Returns:
- the attachment, if present
-
-