2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
22 package jalview.fts.api;
24 import javax.swing.JTable;
31 public interface GFTSPanelI
35 * Action performed when a text is entered in the search field.
37 public void searchAction();
40 * Action performed when search results are selected and the 'ok' button is
43 public void okAction();
46 * Return the entered text
48 * @return the entered text
50 public String getTypedText();
53 * The JTable for presenting the query result
57 public JTable getResultTable();
60 * Return the title to display on the search interface main panel
62 * @return String - the title
64 public String getFTSFrameTitle();
67 * Return a singleton instance of FTSRestClientI
69 * @return FTSRestClientI
71 public FTSRestClientI getFTSRestClient();
74 * Set error message when one occurs
77 * the error message to set
79 public void setErrorMessage(String message);
82 * Updates the title displayed on the search interface's main panel
86 public void updateSearchFrameTitle(String newTitle);
89 * Controls the progress spinner, set to 'true' while search operation is in
90 * progress and 'false' after it completes
92 * @param isSearchInProgress
94 public void setSearchInProgress(Boolean isSearchInProgress);