X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Ffts%2Fapi%2FGFTSPanelI.java;fp=src%2Fjalview%2Ffts%2Fapi%2FGFTSPanelI.java;h=ce63576fc14cef7bcb4f70758f10a23adbac1eaf;hb=408b2821c8daf99245bf6358d06760701d90ddd8;hp=46121fc9f26f2e253d78251a183a3c884de4c4e8;hpb=f8e603128476ca6e093ea2fc65435d1294978c53;p=jalview.git diff --git a/src/jalview/fts/api/GFTSPanelI.java b/src/jalview/fts/api/GFTSPanelI.java index 46121fc..ce63576 100644 --- a/src/jalview/fts/api/GFTSPanelI.java +++ b/src/jalview/fts/api/GFTSPanelI.java @@ -33,8 +33,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 +96,35 @@ 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); }