|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.norvelle.textcite.model.CitationCategoryCollection
public class CitationCategoryCollection
Holds the CitationCategory objects currently associated with a given Citation. Descended from ListModelAdaptee so that it can serve directly as the Model for the JList GUI object on the Citation edit form.
Nested Class Summary | |
---|---|
static class |
CitationCategoryCollection.CitationCategoryCollectionConverter
CitationCategoryCollectionConverter is an inner class used for serializing CitationCategoryCollection objects via XStream. |
Constructor Summary | |
---|---|
CitationCategoryCollection()
This constructor is used by collect a set of categories, without necessarily associating them with a Citation |
|
CitationCategoryCollection(Citation parent)
The constructor associates the new CitationCategoryCollection with the parent citation. |
Method Summary | |
---|---|
void |
addAdapter(ListModelChangeListener adapter)
|
void |
clear()
|
java.util.Iterator<Category> |
getCategoryIterator()
|
java.lang.Object |
getElementAt(int i)
|
int |
getPosInList(java.lang.Object item)
|
int |
getSize()
|
void |
recreateAdapterCollection()
After loading a new file, the AdapterCollection (which is marked as transient) will not be recreated during the deserialization process. |
void |
registerCategory(Category category)
Add a CitationCategory to the list of categories associated with the parent Citation. |
void |
removeAdapter(ListModelChangeListener adapter)
|
void |
setParent(Citation parent)
Associate this CategoryList with a Citation. |
java.lang.String |
toString()
Produce a String value for this CategoryList by concatenating the category names with commas. |
void |
unregisterCategory(Category category)
Unlink a given category from those associated with the parent Citation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CitationCategoryCollection(Citation parent)
parent
- public CitationCategoryCollection()
Method Detail |
---|
public void registerCategory(Category category)
public void unregisterCategory(Category category)
category
- The Category object that is to be dissociated.public java.lang.String toString()
toString
in class java.lang.Object
public int getSize()
getSize
in interface ListModelAdaptee
public java.lang.Object getElementAt(int i)
getElementAt
in interface ListModelAdaptee
public int getPosInList(java.lang.Object item)
getPosInList
in interface ListModelAdaptee
public java.util.Iterator<Category> getCategoryIterator()
public void clear()
public void setParent(Citation parent)
public void addAdapter(ListModelChangeListener adapter)
addAdapter
in interface ListModelAdaptee
public void removeAdapter(ListModelChangeListener adapter)
removeAdapter
in interface ListModelAdaptee
public void recreateAdapterCollection()
recreateAdapterCollection
in interface ListModelAdaptee
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |