JAL-1648 Added improvement to persist cache items to properties file beyound a Jalvie...
[jalview.git] / src / jalview / io / cache / Cacheable.java
index d17cab4..0287457 100644 (file)
@@ -1,7 +1,5 @@
 package jalview.io.cache;
 
-import javax.swing.JComboBox;
-import javax.swing.JComponent;
 
 public interface Cacheable
 {
@@ -9,14 +7,19 @@ public interface Cacheable
   /**
    * method executed on cache initialisation
    */
-  public void init();
+  public void initCache();
+
+  /**
+   * method executed on cache update
+   */
+  public void updateCache();
 
   /**
    * Combo-box instance for the cache component
    * 
    * @return
    */
-  public JComboBox<String> getCacheComboBox();
+  public CacheBoxI<String> getCacheComboBox();
 
   /**
    * The unique key that will be used for storing user input for this cacheable
@@ -25,13 +28,4 @@ public interface Cacheable
    * @return
    */
   public String getCacheKey();
-
-  /**
-   * Get next focusable component. Required to delegate focus while updating the
-   * cacheable component cache
-   * 
-   * @return
-   */
-  public JComponent getNextFocusableElement();
-
 }