X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2Fcache%2FCacheable.java;h=0287457d903cca0005840ffc69e324883a68f585;hb=7b10124f09af29607ea0150726ad5d63da09fdaf;hp=d17cab47717ec25bea452edabadd620c0dea53f3;hpb=0ce95d9c8581b19c1d636f67f67dd670e41f1ca9;p=jalview.git diff --git a/src/jalview/io/cache/Cacheable.java b/src/jalview/io/cache/Cacheable.java index d17cab4..0287457 100644 --- a/src/jalview/io/cache/Cacheable.java +++ b/src/jalview/io/cache/Cacheable.java @@ -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 getCacheComboBox(); + public CacheBoxI 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(); - }