org.norvelle.textcite.gui.adapter
Class CategoryListModelAdapter
java.lang.Object
javax.swing.AbstractListModel
org.norvelle.textcite.gui.adapter.ListModelAdapter
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
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
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 |
CategoryListModelAdapter
public CategoryListModelAdapter(ListModelAdaptee model)
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