Class 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 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
    • Constructor Detail

      • DriverPanelCache

        public DriverPanelCache()
    • Method Detail

      • 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)