Class PersistenceHelper
java.lang.Object
org.eclipse.nebula.widgets.nattable.persistence.PersistenceHelper
Helper class for dealing with persistence of NatTable states.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddeleteState(String prefix, Properties properties) Deletes the keys for a state that is identified by given prefix out of the given properties.static Collection<String>getAvailableStates(Properties properties) As one Properties instance can contain several stored states of a NatTable instance, this method can be used to retrieve the names of the containing states.
-
Method Details
-
deleteState
Deletes the keys for a state that is identified by given prefix out of the given properties.- Parameters:
prefix- The prefix for the keys the state consists of. Can be interpreted as state configuration name.properties- The properties containing the state configuration.
-
getAvailableStates
As one Properties instance can contain several stored states of a NatTable instance, this method can be used to retrieve the names of the containing states. In terms of NatTable states, you may also call the names prefixes.- Parameters:
properties- The Properties to retrieve the containing states of- Returns:
- Collection of all state prefixes that are contained in the given properties.
-