public interface BookmarksUtil
Module: property-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>property-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
boolean |
containsBookmarks(Bookmarks pBookmarks,
String pCategoryName,
DataSource pDataSource)
Check if a bookmark is in the bookmarks.
|
boolean |
deleteBookmark(Bookmarks pBookmarks,
String pCategoryName,
DataSource pDataSource)
Delete a bookmark (pDataSource) from the category (pCategoryName) in the bookmarks object (pBookmarks)
|
String |
getAttribute(DataSource source,
String attrName)
Given the attribute name, return the value in a bookmark
|
Category |
getCategory(String categoryName,
List<Category> categoryList)
Select specific category from a list of categories.
|
List<DataSource> |
getDataSourceList(String categoryName,
List<Category> categoryList)
Traverse bookmark tree and get a list of data sources from the specified
category.
|
String |
getProvider(DataSource pDataSource)
Get the provider name from DataSource object
|
void |
saveBookmark(Bookmarks pBookmarks,
String pCategoryName,
DataSource pDataSource)
Store a bookmark object in bookmarks object
|
void |
saveBookmark(Bookmarks pBookmarks,
String pCategoryName,
DataSource pDataSource,
String pProvider)
Store a bookmark object in bookmarks object
|
List<DataSource> getDataSourceList(String categoryName, List<Category> categoryList)
categoryName
- the specified category to get a list of data sources from.categoryList
- the list of categories to traverse for the specified category.Category getCategory(String categoryName, List<Category> categoryList)
categoryName
- the category to select.categoryList
- the list of categories to select from.Category
that was selected.String getAttribute(DataSource source, String attrName)
source
- a bookmark objectattrName
- an attribute namevoid saveBookmark(Bookmarks pBookmarks, String pCategoryName, DataSource pDataSource)
pBookmarks
- bookmarks objectpCategoryName
- category namepDataSource
- a single bookmarkvoid saveBookmark(Bookmarks pBookmarks, String pCategoryName, DataSource pDataSource, String pProvider)
pBookmarks
- bookmarks objectpCategoryName
- category namepDataSource
- a single bookmarkpProvider
- the name of providerboolean deleteBookmark(Bookmarks pBookmarks, String pCategoryName, DataSource pDataSource)
pBookmarks
- Bookmark object, which hold a set of bookmarkpCategoryName
- category namepDataSource
- a single bookmark objectboolean containsBookmarks(Bookmarks pBookmarks, String pCategoryName, DataSource pDataSource)
pBookmarks
- bookmarks objectpCategoryName
- category namepDataSource
- a bookmarkString getProvider(DataSource pDataSource)
pDataSource
- a single bookmarkCopyright 2011-2015 Cytoscape Consortium. All rights reserved.