fr.ifremer.coser.ui.selection.model
Class SpeciesTypesListModel
java.lang.Object
javax.swing.AbstractListModel
fr.ifremer.coser.ui.selection.model.SpeciesTypesListModel
- All Implemented Interfaces:
- CoserListModel, Serializable, ListModel
public class SpeciesTypesListModel
- extends AbstractListModel
- implements CoserListModel
Affiche la liste des types d'especes définie dans le projet.
- Version:
- $Revision: 404 $
Last update : $Date: 2010-12-14 14:55:38 +0100 (mar., 14 déc. 2010) $
By : $Author: chatellier $
- Author:
- chatellier
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
view
protected SelectionDetailsView view
types
protected List<String> types
typesComments
protected Map<String,String> typesComments
SpeciesTypesListModel
public SpeciesTypesListModel(SelectionDetailsView view)
getTypes
protected List<String> getTypes()
getComment
public String getComment(String species)
- Get species comment (used in renderer).
- Parameters:
species - species
- Returns:
- species comment
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 element)
- Description copied from interface:
CoserListModel
- Return index of element.
- Specified by:
indexOf in interface CoserListModel
- Parameters:
element - element to get index
- Returns:
- index of element
Copyright © 2010-2011 Ifremer. All Rights Reserved.