Class DriverPanelCache

java.lang.Object
com.vividsolutions.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 Details

    • DRIVER_CACHE_KEY

      public static final String DRIVER_CACHE_KEY
      This value is set by the DriverDialog. It always exists.
      See Also:
    • 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:
  • Constructor Details

    • DriverPanelCache

      public DriverPanelCache()
  • Method Details

    • get

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

      public void put(String cacheKey, Object cachedValue)
    • addAll

      public void addAll(DriverPanelCache otherCache)