|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.gui.srcwin.tags.TagsetManager
public class TagsetManager
The TagsetManager keeps track of the tagsets available for frysk, as well as maintaining the association between tagsets and what executable command they are applicable to.
Field Summary | |
---|---|
static TagsetManager |
manager
|
private UniqueHashMap |
nameHash
|
private ObservableLinkedList |
tagsets
|
private static File |
TAGSETS_DIR
|
private File |
tagsetsDir
|
Constructor Summary | |
---|---|
TagsetManager(File tagsetsDir)
Create a new TagsetManager |
Method Summary | |
---|---|
void |
addTagset(Tagset toAdd)
Adds the tagset to the manager. |
boolean |
containsTagset(Tagset set)
Checks for the presence of the given tagset in the TagsetManager |
ObservableLinkedList |
getListTagsets()
|
Tagset |
getTagsetByName(String name)
Returns the tagset that matches the name |
Iterator |
getTagsets()
|
Iterator |
getTagsets(String command)
Returns all of the tagsets applicable to the provided command |
void |
load()
Loads tag sets from disk and registers loaded tag sets with the manager. |
void |
removeTagset(Tagset tagSet)
Removes the tagset from the manager. |
void |
save()
Saves the registered tag sets in the manager to disk |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static TagsetManager manager
private static final File TAGSETS_DIR
private ObservableLinkedList tagsets
private UniqueHashMap nameHash
private File tagsetsDir
Constructor Detail |
---|
public TagsetManager(File tagsetsDir)
Method Detail |
---|
public void save()
public void load()
public void addTagset(Tagset toAdd)
toAdd
- The tagset to store.public void removeTagset(Tagset tagSet)
tagSet
- The tagset to remove.public Iterator getTagsets(String command)
command
- The command to get the tagsets for
public Iterator getTagsets()
public ObservableLinkedList getListTagsets()
public Tagset getTagsetByName(String name)
name
- The name of the tagset
public boolean containsTagset(Tagset set)
set
- The Tagset to look for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |