package jalview.io.cache;
-import javax.swing.JComboBox;
-import javax.swing.JComponent;
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
* @return
*/
public String getCacheKey();
-
- /**
- * Get next focusable component. Required to delegate focus while updating the
- * cacheable component cache
- *
- * @return
- */
- public JComponent getNextFocusableElement();
-
}