X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Ffts%2Fapi%2FGFTSPanelI.java;h=974cc8867771b6540b65cc16e2165ac37ccd75ba;hb=3587df3dbcbd892eedd41a42d9f4e02a8b1e96ce;hp=46121fc9f26f2e253d78251a183a3c884de4c4e8;hpb=007af0c9001900071f6d8e9214143f79e10f4938;p=jalview.git diff --git a/src/jalview/fts/api/GFTSPanelI.java b/src/jalview/fts/api/GFTSPanelI.java index 46121fc..974cc88 100644 --- a/src/jalview/fts/api/GFTSPanelI.java +++ b/src/jalview/fts/api/GFTSPanelI.java @@ -21,6 +21,8 @@ package jalview.fts.api; +import java.util.Map; + import javax.swing.JTable; /** @@ -33,8 +35,12 @@ public interface GFTSPanelI /** * Action performed when a text is entered in the search field. + * + * @param isFreshSearch + * if true a fresh search is executed else a pagination search is + * executed */ - public void searchAction(); + public void searchAction(boolean isFreshSearch); /** * Action performed when search results are selected and the 'ok' button is @@ -92,4 +98,58 @@ public interface GFTSPanelI * @param isSearchInProgress */ public void setSearchInProgress(Boolean isSearchInProgress); + + /** + * Action performed when previous page (<<) button is pressed pressed. + */ + public void prevPageAction(); + + /** + * Action performed when next page (>>) button is pressed pressed. + */ + public void nextPageAction(); + + /** + * Checks if the current service's search result is paginate-able + * + * @return true means the service provides paginated results + */ + public boolean isPaginationEnabled(); + + /** + * Updates the 'enabled' state for the previous page button + * + * @param isEnabled + */ + public void setPrevPageButtonEnabled(boolean isEnabled); + + /** + * Updates the 'enabled' state for the next page button + * + * @param isEnabled + */ + public void setNextPageButtonEnabled(boolean isEnabled); + + /** + * The HashMap used to store user preferences for summary table columns, + * window size and position + * + * @return + */ + public Map getTempUserPrefs(); + + /** + * Returns unique key used for storing an FTSs instance cache items in the + * cache data structure + * + * @return + */ + public String getCacheKey(); + + /** + * + * @return user preference name for configuring this FTS search's autosearch + * checkbox + */ + public String getAutosearchPreference(); }