*/
package jalview.urls;
-import java.io.File;
import java.util.List;
import java.util.Vector;
public interface UrlProviderI
{
- /*
- * Default sequence URL link label for EMBL-EBI search
- */
- public static final String DEFAULT_LABEL = "EMBL-EBI Search";
-
- /*
- * Default sequence URL link string for EMBL-EBI search
- */
- public static final String DEFAULT_STRING = DEFAULT_LABEL
- + "|http://www.ebi.ac.uk/ebisearch/search.ebi?db=allebi&query=$SEQUENCE_ID$";
-
- /*
- * Location of file for identifiers.org download
- */
- public static final String ID_ORG_FILE = System.getProperty("user.home")
- + File.separatorChar + ".jalview_identifiers";
-
/**
* Get names and urls in as strings for display
*
*/
- Vector<String> getLinksForDisplay();
+ Vector<String> getLinksForMenu();
/**
* Get names and urls as strings for display
void setUrlData(List<UrlLinkDisplay> links);
/**
- * Get the id of the default URL
- *
- * @return id of the default URL
- */
- String getDefaultUrl();
-
- /**
* Get the link for the default URL
*
* @seqid sequence id for which to build link
String writeUrlsAsString();
/**
- * Set URL links from pair of collections
- *
- * @param names
- * @param urls
- */
- void setUrlLinks(Vector<String> names, Vector<String> urls)
- throws IllegalArgumentException;
-
- /**
* Choose the default URL in the event of the selected default being
* unavailable
*
* Determine if id is for a user-defined URL
*/
boolean isUserEntry(String id);
+
+ /**
+ * Get list of column names to display in UI
+ *
+ * @return column names
+ */
+ List<String> getDisplayColumnNames();
}