public class YearListModel extends AbstractListModel implements CoserListModel
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
years |
listenerList| Constructor and Description |
|---|
YearListModel() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getElementAt(int index) |
int |
getSize() |
List<String> |
getYears() |
int |
indexOf(Object element)
Return index of element.
|
void |
setYears(List<String> years) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListDataListener, removeListDataListenerpublic Object getElementAt(int index)
getElementAt in interface ListModelpublic int indexOf(Object element)
CoserListModelindexOf in interface CoserListModelelement - element to get indexCopyright © 2010–2014 Ifremer. All rights reserved.