fr.ifremer.coser.ui.selection.model
Class SizeAllYearSpeciesListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by fr.ifremer.coser.ui.selection.model.SizeAllYearSpeciesListModel
All Implemented Interfaces:
CoserListModel, Serializable, EventListener, ListSelectionListener, ListModel

public class SizeAllYearSpeciesListModel
extends AbstractListModel
implements ListSelectionListener, CoserListModel

Specy list model with size all year.

Version:
$Revision: 404 $ Last update : $Date: 2010-12-14 14:55:38 +0100 (Tue, 14 Dec 2010) $ By : $Author: chatellier $
Author:
chatellier
See Also:
Serialized Form

Field Summary
protected  Collection<String> sizeAllYearSpecies
           
protected  List<String> species
           
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
SizeAllYearSpeciesListModel()
           
 
Method Summary
 Object getElementAt(int index)
           
 int getSize()
           
 List<String> getSpecies()
           
 int indexOf(Object o)
          Return index of element.
 void setSizeAllYearSpecies(Collection<String> sizeAllYearSpecies)
           
 void setSpecies(List<String> species)
           
 void valueChanged(ListSelectionEvent event)
           
 
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
 

Field Detail

species

protected List<String> species

sizeAllYearSpecies

protected Collection<String> sizeAllYearSpecies
Constructor Detail

SizeAllYearSpeciesListModel

public SizeAllYearSpeciesListModel()
Method Detail

getSpecies

public List<String> getSpecies()

setSpecies

public void setSpecies(List<String> species)

setSizeAllYearSpecies

public void setSizeAllYearSpecies(Collection<String> sizeAllYearSpecies)

getSize

public int getSize()
Specified by:
getSize in interface ListModel

getElementAt

public Object getElementAt(int index)
Specified by:
getElementAt in interface ListModel

indexOf

public int indexOf(Object o)
Description copied from interface: CoserListModel
Return index of element.

Specified by:
indexOf in interface CoserListModel
Parameters:
o - element to get index
Returns:
index of element

valueChanged

public void valueChanged(ListSelectionEvent event)
Specified by:
valueChanged in interface ListSelectionListener


Copyright © 2010-2012 Ifremer. All Rights Reserved.