org.norvelle.textcite.gui.adapter
Class CategoryListModelAdapter

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.norvelle.textcite.gui.adapter.ListModelAdapter
          extended by org.norvelle.textcite.gui.adapter.CategoryListModelAdapter
All Implemented Interfaces:
java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel, ListModelChangeListener

public class CategoryListModelAdapter
extends ListModelAdapter

CategoryListModelAdapter: A special ListModelAdapter that modifies how Categories are displayed in the list box in the CitationDialog. Instead of just showing the name of the category, the Category path is also shown, indicating the hierarchy of the categories, so that it is obvious what meaning the Category has.

Author:
Erik Norvelle
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.norvelle.textcite.gui.adapter.ListModelAdapter
model, selectedItem
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
CategoryListModelAdapter(ListModelAdaptee model)
           
 
Method Summary
 java.lang.Object getElementAt(int pos)
           
 
Methods inherited from class org.norvelle.textcite.gui.adapter.ListModelAdapter
destroy, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getAdapteeClass, getId, getSelectedItem, getSize, setSelectedItem
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
 

Constructor Detail

CategoryListModelAdapter

public CategoryListModelAdapter(ListModelAdaptee model)
Method Detail

getElementAt

public java.lang.Object getElementAt(int pos)
                              throws java.lang.ArrayIndexOutOfBoundsException
Specified by:
getElementAt in interface javax.swing.ListModel
Overrides:
getElementAt in class ListModelAdapter
Throws:
java.lang.ArrayIndexOutOfBoundsException