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

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

public class StrataListModel
extends AbstractListModel
implements CoserListModel

Model contenant la liste des noms de strates (utilisé dans le detail de selection).

Version:
$Revision: 243 $ Last update : $Date: 2010-11-22 11:46:04 +0100 (Mon, 22 Nov 2010) $ By : $Author: chatellier $
Author:
chatellier
See Also:
Serialized Form

Field Summary
protected  List<String> strata
           
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
StrataListModel()
           
 
Method Summary
 Object getElementAt(int index)
           
 int getSize()
           
 List<String> getStrata()
           
 int indexOf(Object element)
          Return index of element.
 void setStrata(List<String> strata)
           
 
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

strata

protected List<String> strata
Constructor Detail

StrataListModel

public StrataListModel()
Method Detail

getStrata

public List<String> getStrata()

setStrata

public void setStrata(List<String> strata)

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-2012 Ifremer. All Rights Reserved.