*/
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 the id of the default URL
+ * Get names and urls as strings for display
*
- * @return id of the default URL
*/
- String getDefaultUrl();
+ List<UrlLinkDisplay> getLinksForTable();
+
+ /**
+ * Set names and urls from display settings
+ */
+ void setUrlData(List<UrlLinkDisplay> links);
/**
* Get the link for the default URL
String getDefaultUrl(String seqid);
/**
+ * Get the default URL id
+ *
+ * @return id for default URL
+ */
+ String getDefaultUrlId();
+
+ /**
* Get the target of thelink for the default URL
*
* @seqid sequence id for which to build link
*
* @return string representation of available URLs
*/
- String writeUrlsAsString();
-
- /**
- * Set URL links from pair of collections
- *
- * @param names
- * @param urls
- */
- void setUrlLinks(Vector<String> names, Vector<String> urls)
- throws IllegalArgumentException;
+ String writeUrlsAsString(boolean selected);
/**
* Choose the default URL in the event of the selected default being
* @return id of chosen default url
*/
String chooseDefaultUrl();
+
+ /**
+ * Determine if id is for a user-defined URL
+ */
+ boolean isUserEntry(String id);
}