|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sdsc.mbt.viewables.StructureDocument
This class implements the top-level container document for one or more Structure objects.
,
Serialized FormField Summary | |
Manager |
parent
|
Constructor Summary | |
StructureDocument(Manager c)
Constructs a StructureDocument object with no initial Structure objects. |
Method Summary | |
void |
addEntry(Entry entry)
Add an Entry to the list of managed/viewed structures,
then send an event to inform all registered Viewer objects. |
void |
addEntryRecord(Entry e)
|
void |
addViewer(Viewer viewer)
Add a Viewer to the list of viewers. |
boolean |
containsId(java.lang.String id)
|
boolean |
containsName(java.lang.String name)
|
java.util.ArrayList |
getEntriesByType(int type)
|
Entry |
getEntry(int index)
Returns one of the loaded Entries by index |
Entry |
getEntryById(java.lang.String id)
Returns a reference to an Entry by its id. |
Entry |
getEntryByName(java.lang.String name)
Returns a reference to an Entry by its name. |
int |
getEntryCount()
Returns count of Entries currently in the application |
java.util.Vector |
getEntryNames()
This method returns a list of currently loaded entry names and is used by the entry loading mechanism to check ahead of time whether a particular entry has been loaded. |
java.util.ArrayList |
getViewers()
|
void |
reloadContent()
|
void |
removeEntry(Entry entry)
Remove an Entry from this StructureDocument. |
void |
removeEntry(java.lang.String entryId)
Remove an Entry from this StructureDocument. |
void |
removeEntryByName(java.lang.String name)
|
void |
removeViewer(Viewer viewer)
Remove a Viewer from the list of viewers. |
void |
renameEntry(Entry entry,
java.lang.String name)
|
void |
renameSequence(Sequence sequence,
java.lang.String name)
This method is called when individual sequences from composite entries are renamed in the sequence viewer |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Manager parent
Constructor Detail |
public StructureDocument(Manager c)
Method Detail |
public void addEntry(Entry entry) throws java.lang.IllegalArgumentException
Entry
to the list of managed/viewed structures,
then send an event to inform all registered Viewer objects.
Reference hash is created only for database-loaded entries that have both sequence and structure
otherwise, it's left as null.
java.lang.IllegalArgumentException
public void removeEntry(Entry entry) throws java.lang.IllegalArgumentException
Entry
from this StructureDocument.
java.lang.IllegalArgumentException
public void removeEntry(java.lang.String entryId) throws java.lang.IllegalArgumentException
Entry
from this StructureDocument.
java.lang.IllegalArgumentException
public void removeEntryByName(java.lang.String name) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public int getEntryCount()
Entries
currently in the application
public java.util.Vector getEntryNames()
public Entry getEntry(int index)
Entries
by index
index
- integer index of the Entry
public Entry getEntryByName(java.lang.String name)
name
- Entry name as a String
public Entry getEntryById(java.lang.String id)
public void addViewer(Viewer viewer) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void removeViewer(Viewer viewer) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public boolean containsId(java.lang.String id)
public boolean containsName(java.lang.String name)
public java.util.ArrayList getEntriesByType(int type)
public void addEntryRecord(Entry e)
public void reloadContent()
public java.util.ArrayList getViewers()
public void renameSequence(Sequence sequence, java.lang.String name)
sequence
- name
- public void renameEntry(Entry entry, java.lang.String name)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |