public abstract class AbstractBookmarksManager extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
BOOKMARK_COUNT
the property for the number of bookmarks stored.
|
static String |
BOOKMARK_PREFIX_DIR
the property prefix for a bookmark directory.
|
static String |
BOOKMARK_PREFIX_NAME
the property prefix for a bookmark name.
|
protected AbstractPropertiesHandler |
m_Handler
the props handler to use.
|
protected Properties |
m_Properties
the properties.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBookmarksManager(AbstractPropertiesHandler handler)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Properties |
getProperties()
Returns the underlying properties.
|
List<Bookmark> |
load()
Loads all the bookmarks that are currently stored in the properties.
|
boolean |
save(List<Bookmark> bookmarks)
Saves all the bookmarks in the properties.
|
public static final String BOOKMARK_COUNT
public static final String BOOKMARK_PREFIX_NAME
public static final String BOOKMARK_PREFIX_DIR
protected Properties m_Properties
protected AbstractPropertiesHandler m_Handler
protected AbstractBookmarksManager(AbstractPropertiesHandler handler)
handler - the handler to usepublic List<Bookmark> load()
public boolean save(List<Bookmark> bookmarks)
bookmarks - the current bookmarkspublic Properties getProperties()
Copyright © 2016. All rights reserved.