Class DriverPanelCache
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.DriverPanelCache
-
public class DriverPanelCache extends Object
A cache of the state of a DriverPanel. Used to restore a DriverPanel to a past state, to minimize re-typing for the user. Different DriverPanels can even use each other's cached values, whenever the cache keys match. For each DriverDialog, one DriverPanelCache is associated with one Layer.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DRIVER_CACHE_KEY
This value is set by the DriverDialog.static String
FILE_CACHE_KEY
Most AbstractDriverPanels will set this value, but some do not (e.g.
-
Constructor Summary
Constructors Constructor Description DriverPanelCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAll(DriverPanelCache otherCache)
Object
get(String cacheKey)
void
put(String cacheKey, Object cachedValue)
-
-
-
Field Detail
-
DRIVER_CACHE_KEY
public static final String DRIVER_CACHE_KEY
This value is set by the DriverDialog. It always exists.- See Also:
- Constant Field Values
-
FILE_CACHE_KEY
public static final String FILE_CACHE_KEY
Most AbstractDriverPanels will set this value, but some do not (e.g. those that retrieve data from the web instead of a file). Thus, it almost always exists.- See Also:
- Constant Field Values
-
-
Method Detail
-
addAll
public void addAll(DriverPanelCache otherCache)
-
-