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

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by 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

Field Summary
protected  List<String> types
           
protected  Map<String,String> typesComments
           
protected  SelectionDetailsView view
           
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
SpeciesTypesListModel(SelectionDetailsView view)
           
 
Method Summary
 String getComment(String species)
          Get species comment (used in renderer).
 Object getElementAt(int index)
           
 int getSize()
           
protected  List<String> getTypes()
           
 int indexOf(Object element)
          Return index of element.
 
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

view

protected SelectionDetailsView view

types

protected List<String> types

typesComments

protected Map<String,String> typesComments
Constructor Detail

SpeciesTypesListModel

public SpeciesTypesListModel(SelectionDetailsView view)
Method Detail

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.