com.vividsolutions.jump.workbench.ui
Class DriverPanelCache

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.DriverPanelCache

public class DriverPanelCache
extends java.lang.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
static java.lang.String DRIVER_CACHE_KEY
          This value is set by the DriverDialog.
static java.lang.String FILE_CACHE_KEY
          Most AbstractDriverPanels will set this value, but some do not (e.g.
 
Constructor Summary
DriverPanelCache()
           
 
Method Summary
 void addAll(DriverPanelCache otherCache)
           
 java.lang.Object get(java.lang.String cacheKey)
           
 void put(java.lang.String cacheKey, java.lang.Object cachedValue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DRIVER_CACHE_KEY

public static final java.lang.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 java.lang.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
Constructor Detail

DriverPanelCache

public DriverPanelCache()
Method Detail

get

public java.lang.Object get(java.lang.String cacheKey)
Returns:
the specied value, or null if no such key exists

put

public void put(java.lang.String cacheKey,
                java.lang.Object cachedValue)

addAll

public void addAll(DriverPanelCache otherCache)